The base model plus 80 GRPO steps (16 prompts × 16 samples, Dr.GRPO aggregation, clip 0.2/0.28, β=0 with KL logged, LR 1e-5), using an exact-answer reward and a curriculum that widened from 4 to 4–6 digits. At temperature 1, pass@1 rose 93.9→97.6% (4 digits) and 91.2→97.6% (5 digits), and right answers built on invalid steps halved (6.9→3.5%). pass@16 at 6 digits fell slightly (13.5→11.9%): RL sharpened what the model could already do and did not extend it. Under greedy decoding it matches the base model (table below).
Part of a fully observed training run from random initialisation. Every step's telemetry is published as the dataset syedazeez/glassbox-135m-telemetry: ~1,000 signals including per-layer activations, per-head attention logits/entropy, update ratios, gradient noise scale, spectral rank, logit lens, NVML power and clocks, every RL rollout, and fault-injection runs.
Siblings: base · sft · rl-arith
<|endoftext|>=0, <|pad|>=1, <think>=2,
</think>=3, <answer>=4, </answer>=5, <|user|>=6, <|assistant|>=7.sample/10BT (files 000–002 train, 013 held out), 2.30B tokens, quality
scores 3–5; 150M tokens of synthetic arithmetic. Held-out web bits-per-byte: 1.134 → 0.968.Greedy decoding, 16 problems per cell (so each cell has a ±~12 pt sampling error), evaluated on CPU from this
exact model.safetensors via the bundled modeling_glassbox.py (not the training code). "Faithful steps" = every
scratchpad step re-derived from the operands by a process verifier and the final answer equals the last step.
| Set | Accuracy | Faithful steps |
|---|---|---|
| add/3d | 100% | 100% |
| add/4d | 100% | 100% |
| add/5d | 100% | 100% |
| add/6d | 0% | 0% |
| add/7d | 0% | 0% |
| sub/3d | 100% | 100% |
| sub/4d | 100% | 100% |
| sub/5d | 100% | 100% |
| sub/6d | 0% | 0% |
| sub/7d | 0% | 0% |
| mul1/3d | 100% | 100% |
| mul1/4d | 100% | 100% |
| mul1/5d | 100% | 100% |
| mul1/6d | 19% | 0% |
| mul1/7d | 19% | 0% |
| add/unequal-len | 0% | 0% |
transformers)pip install torch safetensors tokenizers
python generate.py --model-dir . --prompt "<|user|>Compute 4721+3890.<|assistant|>"
modeling_glassbox.py is the exact training model definition (it includes a KV cache and probe hooks).
Prompt format: <|user|>Compute A+B.<|assistant|> → <think>…column steps…</think><answer>N</answer>.
Each step reads a+b+carry=s wD cC (write digit D, carry C), right to left.
4721+389 → 8620). Every training problem had equal-length
operands; the model copies the wrong digit of the shorter number.