File size: 2,567 Bytes
43e1177
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b122aef
43e1177
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a74a79b
43e1177
71ed0db
 
 
 
a74a79b
71ed0db
43e1177
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---

language:
  - en
license: other
license_name: mit-and-apache-2.0
license_link: LICENSE
tags:
  - magiceightball
  - decision-model
  - rule-engine
  - fp32
---


# MagicEightBall FP32 Base

![Eight, a black billiards 8-ball, and Relay, a floating chip, light routes across their workbench.](./assets/workbench-motion.webp)

MagicEightBall evaluates a fixed support policy and returns a Boolean answer, a category, and a proposed action. The included CPU runner accepts up to **131,072 Needle 3 tokens**. The [FP32 Base model](./model.onnx) is **1,832 bytes**. The shared tokenizer, runner, and artwork have separate sizes.

Full-precision dense Boolean reference. The graph reads seven FP32 facts and returns seven FP32 Boolean outputs. The weights were compiled from the support rules and use FP32 throughout.

CPU verification passed all **128 fact assignments**, **128 short text fixtures**, two exact-limit documents, and rejection at 131,073 tokens. [Verification report](./verification.json)

## Try the policy

Download the files together and run the provided CLI from that directory.

```bash

python -m pip install numpy sentencepiece onnxruntime

python portable_runtime.py model.onnx --text "Duplicate charge. Review authorized."

```

Expect `may_route=true`, `category=billing`, and `action=review_billing`. Try appending `Do not route.` to the same input. The answer becomes false and the action becomes empty. The category remains `billing`. An unrelated request has no category or action.

The model finds the policy's declared phrases. The caller receives the proposed action as data for review. [Measured CPU and NCS1 runtimes](https://huggingface.co/tablinum/MagicEightBall#runtime-comparison) For physical Intel NCS1 execution and industry starter packs, use the native model page. [Native NCS1 and industry packs](https://huggingface.co/tablinum/MagicEightBall) 路 [ONNX](https://huggingface.co/tablinum/MagicEightBall-ONNX) 路 [GGUF](https://huggingface.co/tablinum/MagicEightBall-GGUF) 路 [Still banner](./assets/workbench.webp)

## File size comparison

![Portable CPU model files. ONNX 192 bytes, GGUF 1,024, FP32 dense 1,832.](./assets/size-portable-cpu.webp)

[Native and published size comparisons](https://huggingface.co/tablinum/MagicEightBall#size-comparisons)

## License

The decision rules and runner are MIT-licensed. The losslessly repackaged Cactus Compute Needle 3 tokenizer is Apache-2.0. [License](./LICENSE) 路 [Tokenizer provenance](./NOTICE.txt) 路 [Checksums](./SHA256SUMS.txt)