MagicEightBall FP32 Base
a compact model for policy checking and text classification
2 min read
The MagicEightBall model evaluates a fixed support policy and returns a boolean response, a category, and a suggested action. The base FP32 file is only 1,832 bytes, and the included CPU runner supports processing up to 131,072 Needle 3 tokens. The graph reads seven FP32 facts and returns seven corresponding logical inferences. This tool is useful for developers who need ultra-lightweight text prompt checking and rule-based routing without heavy models.
Key features
- Full precision: a dense logical reference model based on FP32 that compiles support rules.
- Large context length: supports incoming sequences of up to 131,072 Needle 3 tokens.
- Ready-to-use CPU runner: includes a CLI for quick validation and local execution.
- Proven reliability: tested across 128 fact assignments, 128 short text fixtures, and spot documents.
What you can do
- Run in a local CLI: execute the script via Python for rapid request classification (for example, in billing).
- Check text rules: evaluate whether a prompt falls under specific policies using the built-in engine.
- Test ONNX integration: use the model as an ultra-compact example for ONNX Runtime.
Example
python -m pip install numpy sentencepiece onnxruntime
python portable_runtime.py model.onnx --text "Duplicate charge. Review authorized."
Read more
DetailsBenchmarks: passed 128 facts and 128 text fixtures, deviation above 131,073 tokens.
Hardware requirements: extremely low (the model weighs 1,832 bytes, a CPU runner is used).
License: decision rules and runner are distributed under the MIT license, Cactus Compute Needle 3 tokenizer under Apache-2.0.










Comments