All results
The complete results list: the laptop studies, the data, the one-GPU rehearsal, the 8×H100 main run and the control run. Each row gives the numbers, how much noise they carry, and where the full story is told.
This page lists every result I measured, in five stages. Each row gives the numbers, a yardstick (what the noise is, or what the result rests on) and the series post that tells the full story. The source of every row is my lab notebook.
How to read the rows.
- On 2026-11-24 I audited the whole notebook and corrected rows that claimed more than the data showed. Where a row carries such a correction, the corrected value is shown and the row is marked (audited).
- “Points” means percentage points. “[a, b]” is a 95% interval. The tests behind the p-values and intervals are explained in the statistics primer.
- One seed means one training run. A bootstrap over problems covers evaluation noise only, not retraining.
- The metrics glossary defines every metric named here.
Stage 1: the laptop (MiniMind 64M dense, RTX 3060 with 6 GB)
These runs used MiniMind’s 64M dense model on a laptop RTX 3060 (6 GB). They de-risked the H100 run: the numerics, the GSPO trainer and the memory limits. Their numbers say nothing about the 6.86B model.
Numerics, batch effects and the sampler
| Result | Numbers | Yardstick | Post |
|---|---|---|---|
| The batch-composition bug: the same weights scored the same answers differently in two batch layouts | The same 8 answers, scored as their own batch and inside a 32-row batch: 0.028 nats/token on average (max 0.312); 7 of 8 sequences outside a ±4e-4 window. (audited: the mask also covered positions after each answer’s end; the output was not saved) | One diagnostic on one group | Part 5 |
| The fix: score the old, new and reference models in identical mini-batches | First mini-batch ratio exactly 1 and KL exactly 0. In the 3 steps that had later mini-batches, those clipped 70%, 81% and 0% of their tokens. (audited: 26 of the 29 updating steps had one mini-batch) | Exact invariant | Part 5 |
| An fp16 checkpoint run in bf16 | 13.04% of the 63,912,192 parameters sit on bf16 ties; one update at LR 1e-7 flips 6.52% of bf16 values. (audited: 13.016% counted the tied embedding twice; the “predictions” were written after the measurement) | One checkpoint, one update | Part 5 |
| Learning-rate scaling test, one update at 1e-6 vs 1e-7 | The fp32 weight change scales 10.3×; the bf16 change does not scale: rounding, not learning | One update per rate | Part 5 |
| Adam’s first update is sign descent | About 90–91% of weights moved by the learning rate, within ±1% (audited wording) | One update | Part 5 |
| The K3 KL is a tail statistic | On the 824 trained tokens, the top 1% of tokens hold 77% (fp32) and 100% (bf16) of the mean; on the 2,747 untrained tokens of the same rollout, 35–36% and 63–66% (audited) | One rollout | Part 9 |
| The same-weights re-scoring gap | bf16: 0.064–0.189 nats/token (20-step means; per step 0.021–0.261). fp32: mean 2.32e-6 (max 3.33e-6). (audited: two forward passes over finished answers in different batch layouts, not the sampler’s own log-probs) | 20-step means | Part 5 |
| Speed of the fp32 sampler | Run means 2.69 vs 2.10 s per step (1.28×), not isolated: the two runs generated different lengths, and at similar lengths no slowdown shows (audited) | Two runs | Part 5 |
| Later mini-batches after one update | Leaving out the first mini-batch: up to +1.04% (fp32 sampler, step 17) and +15.5% (bf16 sampler, step 1, the first Adam update; ±0.3% at step 56). GSPO’s window is −0.03% / +0.04%. (audited: the sampler’s effect is not isolated) | Per-step maxima | Part 5 |
| The same-weights gap over 60 fp32 steps | 2.9–3.5e-6 nats/token, with no growth (second half over first half 0.83–0.97 at all three rates). (audited: a re-scoring gap, so it does not test the drift claim in the Microsoft AI post) | One measurement (Run 2b repeats Run 2 bit for bit) | Part 5 |
| The batch-composition effect in fp32 | 2.5e-6 nats/token (audited: not like for like with the bf16 0.028, which came from another rollout) | One rollout | Part 5 |
| Logging is neutral; training is not guaranteed deterministic | With every new metric on, 180 of 180 steps were bit-identical to Run 2. Three default-mode runs agreed for 40 steps, then differed inside one update. Deterministic mode took 1.20× as long per step on identical rollouts (generation 1.23×, update 1.04×). (audited) | Three default runs, two deterministic runs | Part 5 |
| Re-evaluating saved fp32 weights reproduces an in-run evaluation | 0 of 200 problems differ (Run 3 at step 300) | Exact | Part 13 |
| Evaluation with a fixed seed | Two step-0 evaluations identical on every problem. (audited: the check after the state restore could not fail; turning evaluation on removes 200 problems from the training pool) | Exact | Part 13 |
| My rollout engine reproduces MiniMind’s sampler | Identical tokens on all 128 answers of a real batch on the GPU | Exact | Part 10 |
| On-policy sampling leaves a negligible sampler–learner mismatch | Temperature 1, no truncation, fp32: mean absolute log-prob difference 4.5e-6 per token (worst 5.6e-5); KL (k3) 2.7e-11; the largest answer-level log-ratio 4.5e-6, about 70× inside GSPO’s 3e-4 window | One batch of 128 answers | Part 5 |
| The old sampler made every earlier GSPO run off-policy | Temperature 0.8, top-k 50, top-p 0.85: 0.121 nats/token on average (worst token 0.97); all 128 answers outside GSPO’s window; mean answer log-ratio −0.145, about 480× the window | One batch of 128 answers | Part 5 |
| fp32 generation takes 1.65× as long as bf16 | 9.25 s vs 5.60 s per 128-answer batch at 256 tokens. Kept fp32, because bf16 adds a 0.02–0.26 nats/token gap | One batch each | Part 5 |
| On-policy sampling stays exact over 1,200 training steps | Off-policy gap exactly 0 in every step; sampler–learner mean absolute log-prob difference at most 5.9e-6 per token; no answer outside GSPO’s window | 1,200 steps | Part 5 |
GSPO with the old, off-policy sampler (Runs 2 to 3b)
| Result | Numbers | Yardstick | Post |
|---|---|---|---|
| Group signal on the warm-up tier | 11–18% of groups mixed (the gate wants at least 30%) | Per-step shares | Part 9 |
| Clipping against the learning rate | Later mini-batches: 13.5% / 27.5% / 38.4% at 1e-7 / 3e-7 / 1e-6 (the GSPO paper’s average is 15%). Steps with 4 mini-batches: 20% / 29% / 34%, from 1 / 6 / 12 steps. (audited) | 60 steps per rate | Part 9 |
| Generation’s share of step time | 91–93% (synchronous, colocated loop) | 60 steps per rate | Part 10 |
| Drift against the learning rate on fixed inputs | First update: K3 9.0× and 100× for 3× and 10× the rate (theory, LR²: 9× and 100×); after 80 updates 7.1× and 32× | One run per rate | Part 9 |
| Sequences outside GSPO’s window after one update | 33% / 48% / 79% at 1e-7 / 3e-7 / 1e-6. (audited: that update ran at one fifth of the rate, in warm-up) | One update per rate | Part 9 |
| Clipping by staleness k (updates since the rollout) | Within the same steps: 3e-7: 13% / 55% / 49% at k = 1 / 2 / 3 (6 steps); 1e-6: 36% / 47% / 53% (12 steps); 1e-7: 10% / 23% / 18% (k = 3 from one step). (audited) | 1–12 steps per value | Part 10 |
| Gradient clipping at 1.0 | Median pre-clip norm 13–18; clipped on 97–100% of updates | Per-run medians | Part 9 |
| The reward gain was mostly the length penalty | At 1e-6: +0.112 = +0.027 from solving + 0.085 from length; of the 0.085, about 0.075 from fewer truncated answers (11% → 3%) and 0.010 from the 193–255-token soft band (audited) | One run | Part 8 |
| Generation is set by the longest answer | About 9.25 s per step at every rate, with the laptop GPU at its 60 W cap (SM clock about 1.18 of 2.1 GHz). In Run 3, steps without a capped answer took 3.0 s (longest answer 114 tokens) to 9.1 s (254 tokens). (audited) | Per-step times | Part 10 |
| Run 3, a held-out test fixed in advance (1e-6, 300 steps) | No learning claim: the collapse rule (median answer under 20 tokens) fired at step 18, before the first evaluation after step 0. Direct answers are 6–12 tokens, so the verdict stands. (audited) | Rule fixed before the run | Part 9 |
| Run 3’s held-out accuracy, exploratory | 0.81% → 3.81% at step 300: +3.0 points, bootstrap 95% [+1.375, +4.875] with 10,000 resamples (audited). “57 + 10” went from 1 to 7 of 8 correct by step 50, and was 5 of 8 at step 300 | Bootstrap over problems; one seed | Part 9 |
| Answer length under a last-number grader | Median 81–118 tokens → about 10 within 20 steps → 63.5 over steps 201–300 | One run | Part 9 |
| The KL penalty at β = 0.01 | Run 3: per-token KL levels off near 0.3 (highest 10-step mean 0.486); fixed-probe K3 still rising at 640 updates (0.238). Run 3b: 0.209 → 0.479 (highest 10-step mean 0.598). (audited) | Two runs | Part 9 |
| Generation waits for the longest answer | 89% of step time over steps 21–120, where the median answer was 10 tokens; 77 of those 100 steps had an answer at the 256-token cap | 100 steps | Part 10 |
| Run 3’s gain is new right numbers, exploratory | Format share −0.37 [−1.00, +0.03]; the right number written anywhere 2.8% → 7.0% against correct 0.8% → 3.8%. At step 50 the format share was 0.29 [0.08, 0.58]. (audited) | Bootstrap over problems | Part 9 |
| The short phase was bare equations | Step 50: median 9 tokens; “a + b = c” and “a − b = c” are 41% of answers; no empty answers; 1% at the cap. (audited: one snapshot, from a replay that diverged after step 40) | One snapshot | Part 9 |
| What drove the shortening is untested | Weighted by mixed groups, wrong answers were 6.7 tokens longer than correct ones in steps 1–10; the sign is not determined (audited) | Noisy step values | Part 9 |
| Run 3b: GSPO raised final-answer accuracy (test fixed in advance, passed) | 13 → 83 correct of 1,600 (0.81% → 5.19%): +4.37 points, bootstrap 95% [+2.44, +6.50]. The grader reads only the final number, and the whole gain is on one-operation problems. (audited, then corrected after an external review) | One seed; the bootstrap covers evaluation noise only; old tempered sampler | Part 9 |
| Run 3b: the right number newly appears in more answers | Format share −0.14 [−0.41, +0.11] (Run 3, exploratory: −0.37) (audited) | Bootstrap over problems | Part 9 |
| Run 3b: the short-answer phase came back, briefly | The median stayed under 20 tokens for 28 steps (14–41), against Run 3’s 99 (18–170) (audited) | Two runs | Part 9 |
| Run 3b: no collapse into identical texts, but answers converged, mostly onto wrong ones | Entropy proxy 0.57 → 0.80; distinct final numbers per group 6.3 → 4.2 of 8, while distinct texts stay near 7.5. On the 160 never-solved problems, distinct final numbers 6.95 → 4.93, and problems where one wrong number fills at least 4 of 8 answers 7 → 65. (audited) | One run | Part 9 |
On-policy GSPO (my rollout engine, steps 2 and 3)
| Result | Numbers | Yardstick | Post |
|---|---|---|---|
| A rule fixed in advance picks 1e-7 | 60 steps per rate. 1e-6: KL 0.43, later-mini-batch clipping 0.52. 3e-7: too fast by 2% (KL 0.102 in one 10-step window). 1e-7 passes (KL 0.019, clipping 0.10) | Rule fixed before the sweep | Part 9 |
| On-policy GSPO raised held-out final-answer accuracy in 3 of 3 seeds (test fixed in advance, passed) | 1e-7, 300 steps: 13 → 94 / 94 / 87 correct of 1,600 (0.81% → 5.9% / 5.9% / 5.4%): +5.06 [+3.19, +7.19], +5.06 [+3.06, +7.31], +4.62 [+2.75, +6.75] points; mean +4.92 | 3 training seeds; bootstrap over problems; shared held-out set | Part 9 |
| Which problem types moved | a × b +12.8 to +16.4 points; a + b +3.4 to +5.7; a − b +1.8 to +3.4; a + b − c +0.7 to +1.0 | Intervals not corrected for multiple comparisons | Part 9 |
| The gain is in the policy, not only in the evaluation sampler | At temperature 1 without truncation: +2.6 / +3.2 / +2.4 points, every interval above 0 | 3 seeds | Part 9 |
| The answers became one-line equations | Held-out median 89 tokens → 10 / 15.5 / 13. Format share of the gain (exploratory) 0.39, 0.31 and 0.26 | 3 seeds | Part 9 |
| A rate chosen on 60 steps does not bound a 300-step run | The 10-step KL stayed under 0.1 until steps 129 / 149 / 188, then reached 0.30–0.40; the median answer fell under 20 tokens in 2 of 3 seeds | 3 seeds | Part 9 |
| Exploratory 3e-7 | +5.94 [+3.56, +8.56] points, most of it by step 50 | One run, no claim | Part 9 |
| Generation waits for the longest answer, again | Steps 271–300: the mean answer was 45–51 tokens, but 25–30 of the 30 steps had an answer at the 256 cap; rollouts took 8.9–9.2 s; generated tokens per second fell from about 1,500 to about 650 | 30 steps | Part 10 |
| Training memory grows with the groups that carry signal | 8 answers per mini-batch: 3,082 MiB allocated (median step); 16 answers: about 4,790 MiB; 24 would exceed the 6 GB card | Median steps | Part 10 |
| No transfer claim: with a × b withheld from training, a × b moved only a little (the claim needed 3 of 3 seeds) | 5 → 13 / 14 / 11 correct of 312: +2.56 [+0.32, +5.13], +2.88 [−0.64, +7.69], +1.92 [0.00, +4.49] points, above 0 in 1 of 3 seeds | 3 seeds; test fixed in advance | Part 9 |
| Most of the headline gain was a × b | 45 / 51 / 40 of 81 / 81 / 74 new correct answers (54–63%). Without a × b in training, the overall gain was +3.50, +3.12 and +2.50 points | 3 seeds | Part 9 |
| The withheld type got shorter answers but kept its wording | 279–290 of 312 a × b answers still say “times”; the right product appears in 3.5–4.5% of them (with a × b trained: 15.7–17.9%) | Exploratory | Part 9 |
MoE slices, distillation and memory
| Result | Numbers | Yardstick | Post |
|---|---|---|---|
| A 198M MoE against the 64M dense model on short slices | The MoE is behind on held-out text. Pretraining: 5.4218 vs 5.3432 nats/token (+0.0758 [+0.0699, +0.0817]). SFT: 3.6894 vs 3.6093 (+0.0808 [+0.0750, +0.0864]) | One run each; the intervals cover the choice of test text only | Part 6 |
| Distillation with MiniMind’s defaults made a student worse | Held-out CE: MoE teacher 2.978, dense teacher 2.978, no teacher 2.940 (means). The MoE-teacher student is worse in 3 of 3 seeds, the dense-teacher one in 2 of 3. The likely cause, untested: the no-teacher arm has the full CE weight (alpha 1.0 vs 0.5) | 3 seeds per arm, paired (chance of 3 of 3 with no effect: 1/8) | Part 12 |
| Distilled students match the teacher at the training temperature | Held-out KL(teacher ‖ student) at T = 1.5 (× T²): below the no-teacher student in 6 of 6 seed–teacher pairs (by 0.82–0.95); at T = 1, in 1 of 6 | 6 pairs | Part 12 |
| Recomputing activations is bit-identical and nearly free | 0 of 40 log lines differ; training peak 3,087 → 1,578 MiB; reserved peak 5,510 → 3,572 MiB; +0.7% time per step | 30 steps, deterministic mode | Part 4 |
| On 6 GB, the MoE’s RL rollout, not its update, is the limit | Fixed memory: MoE 3,140 MiB, dense 1,087. The MoE update needs 4,653–4,702 MiB for 8–32 answers, but a full 128-answer rollout runs out of memory with every saving. MoE step 18.2 s against dense 10.2 s | Identical in both runs | Part 10 |
Stage 2: the data
| Result | Numbers | Yardstick | Post |
|---|---|---|---|
| Pretraining data prepared | 2,600,591,645 training and 26,012,769 validation tokens. 1,141 documents dropped by the 10-gram rule (0.044%). 75,946 e-mails and 21,665 IP addresses masked. 2.86M tokens/s on the laptop | Counts | Part 3 |
| The answer checker is tight on numbers | 0 of 20,528 numeric golds rejected; no wrong numeric or degenerate answer accepted; on LaTeX, 35 wrong answers accepted on 28 of 2,698 problems, 6 of them real holes. Free-score floors: SVAMP 8.33%, MultiArith 7.78% | Every problem checked | Part 8 |
| About 11% of NVIDIA’s new GSM8K-style questions have no exact answer | 7,997 of 73,643 dropped, because at least half of the teacher’s own solutions had to round (median 92%). 11 of 12 sampled are ill-posed | A sample of 12 | Part 3 |
| NVIDIA’s decontamination keeps changed-number copies of test questions | 78 questions share a 10-word run with my test sets (52 with GSM8K test); 2 of 10 sampled are template copies of GSM8K test questions with new numbers | A sample of 10 | Part 3 |
| Unit tests passed while two filters were wrong | Build 1: 9 of 10 sampled “LaTeX” rejects and all 10 sampled “false equation” rejects were good solutions. Build 4: 7–8 of 10 false flags | Samples of 10 | Part 3 |
| The final SFT set | 55,083 questions (53,970 train, 1,113 validation), 5.92M response tokens (mean 107.5). A fresh blind label check found 0 of 50 wrong, 95% upper bound 7.1% (build 3 had 4 of 50) | Exact (Clopper–Pearson) 95% interval on 50 labels | Part 3 |
Stage 3: the rehearsal (one H100, shrunk models)
The shrunk models (2 layers, hidden 512) tested that each step runs and records its metrics. Their speeds and losses say nothing about the full model.
| Result | Numbers | Yardstick | Post |
|---|---|---|---|
| An SSH shell is not the container’s environment | 12 variables against the container’s 114 (CUDA, Triton and NCCL paths among them); container_env.sh keeps 110, secrets left out |
Exact count | Part 4 |
| A configured metric is not a recorded one | The 40-iteration arms would have written no expert counts at interval 100 (8 records each at 10); TFLOP/s and step time reached the logged scalars only with --log-timers-to-tensorboard (21 → 27 TensorBoard tags) |
Exact count | Part 4 |
| Checking the arguments is not checking the config | The overlap arm stopped after 29 s in TransformerConfig’s own checks; check_flags.py now builds the config, and every main-run launch passes at expert parallelism 8 |
Pass or fail | Part 4 |
| The shrunk V4 arm’s balance gets worse within 40 iterations | Layer 1 MaxVio 1.744 → 2.187 → 2.996 → 3.000 at steps 10–40 (layer 0: 0.578 → 1.674); two experts at 0 and 14 tokens; the bias moves at most 1e-3 per step. (corrected 2026-11-26 from an approximate reading) | One arm | Part 6 |
| Save, resume and the RL restart work | Reloaded “at iteration 40”, logged 41 first, ran on to 80; the RL restart resumed at 8 once --finetune was removed |
Pass or fail | Part 4 |
| Megatron’s RL path needs packages the base image lacks | 7 start-up failures, each fixed from Megatron’s own lock file, CI or code | Pass or fail | Part 4 |
| The sampler–learner metric measured the wrong thing until fixed | With the IS correction off, Megatron put zeros in the batch, so the “gap” was −log p; after the patch, 0.0136 nats/token against an answer spread of 8.58 | One run | Part 5 |
| GSPO’s invariants hold on one GPU | First update: ratio exactly 1, KL exactly 0; gap 0.0133 nats/token (max 0.0195); 11.5% of answers at the 1,536-token stop | Exact invariant | Part 9 |
| Two failures that looked like success | An evaluation on random weights (loss 11.85, ln of the vocabulary) exited 0; --finetune made the RL restart start over (tracker 61 → 13). check_flags.py refuses both |
Pass or fail | Part 4 |
| The V4 expert-bias rule moves the policy with zero advantages | KL after update 1: 4.6e-4 at rate 1e-7, 3.6e-4 at 1e-6; the bias changed in 87–100% of entries; QAD’s KD loss 1.80e-3 → 2.04e-3 | One run per rate | Part 9 |
| For 4-bit deployment, take the codes from the QAT model | ModelOpt’s own codes: weight and layer-output gap 0.0. Codes recomputed from W: 99.94% agree, layer outputs up to about 4% off. Quantization error 11.7%, codes symmetric | One model | Part 12 |
| Distillation and serving run end to end | The KD student’s KL to the teacher 0.215 against the CE student’s 0.293; serving at batch 1: TTFT 137 ms, TPOT 71.2 ms; KV cache 1,024 bytes per token | Shrunk model only | Part 12 |
| GSPO trains one answer per forward pass in Megatron | Micro-batch 2 stops in Transformer Engine’s fused RoPE (“expected 3D tensor”). Batch invariance holds by construction (first-update ratio exactly 1); check_flags.py refuses micro-batch > 1 |
Exact invariant | Part 10 |
| A crashed RL run hangs instead of exiting | 24 min at 0% GPU, holding 25.9 GB, until killed; reproduced in ten lines of Python (a non-daemon child waits; a daemon exits in 0.1 s) | Reproduced | Part 10 |
| Megatron’s GSPO learns from a real signal | Tiny model, 16 steps at 1e-5: reward +0.236 above the control (z = 4.9); share of answers past 1,024 tokens 25.8% → 7.4%; mean length 624 → 390. With the balance loss off (the fix): +0.2935 above its control, z = 6.5 | Test against a control | Part 9 |
| The V4 expert-bias rule caused drift without learning, and hurt QAD | All advantages 0. KL after updates 1–3: 0.0 / 1.1e-6 / 7.0e-5 with the bias frozen, about 4.6e-4 / 8.6e-4 / 7.4e-4 with it on. QAD: 1.800e-3 frozen, 2.826e-3 on, plain 4-bit 1.815e-3 | One run per setting | Part 9 |
| The remaining drift came from the router’s balance loss | All advantages 0, bias frozen: KL 0.079 after 64 updates at 1e-5, first gradient norm 1.055. With the balance loss off too: gradient norm 0.000 on every update and KL exactly 0.0 | Exact | Part 9 |
| The coordinator fix: a crashed RL run now exits | The same crash exits about 1 s after its error (it had hung 24 min) | Reproduced | Part 10 |
| A ModelOpt 4-bit model cannot run in Megatron’s RL inference engine | flash_decode_and_prefill raises under ModelOpt’s attention wrapper, the engine’s only path; 4-bit GSM8K accuracy was left out |
Pass or fail | Part 12 |
Stage 4: the main run (8×H100, the full model)
The full model, 6.86B parameters in total and 1.22B active per token, went through every stage on one 8×H100 node. Every comparison here rests on one training run per arm.
| Result | Numbers | Yardstick | Post |
|---|---|---|---|
| Pretraining ran to plan once quantile balancing fixed the router | The V4 and aux-loss routers collapsed to MaxVio 7.0 (all 16 layers by step 10); V4 scores with quantile balancing pulled every layer out. 1,240 steps, 2.6×10⁹ tokens, 4.09 h; validation loss 3.046 (perplexity 21.0); 194.7 TFLOP/s per GPU (MFU 19.7%, Megatron’s count) | One run; MaxVio 7.0 is the maximum for 64 experts and top-8 | Part 6 |
| The base model answered nothing | 0 on every test set; its answers loop to the ~1,500-token stop | 200 problems per set, greedy | Part 6 |
| SFT teaches the format, not the arithmetic | Step 175 of 6 epochs kept (validation 0.748); GSM8K 2.0% greedy, 12.0% pass@8; hold-out perplexity 20.97 → 22.74 (+8.4%); RL’s group signal at 8 answers per problem: 1.6% of groups mixed (FAIL) | One run; validation is one batch of 46 packed rows | Part 7 |
| GSPO’s first update is not exactly on-policy at expert parallelism 8 | Before any weight change: median absolute log-ratio 4.9e-3 (p99 0.034), KL 0.0027 (the one-GPU rehearsal: exactly 1 and 0). The clip was raised to 2e-2 / 2.7e-2 | Against the one-GPU exact baseline | Part 10 |
| GSPO-A (45 steps, medium tier) improved the near test sets | Pooled pass@8 10.5% → 13.2% (p = 0.038); SVAMP 11.0% → 21.5% (p = 0.0025); greedy 1.9% → 2.6% (p = 0.24); whole SVAMP pass@8 12.0% → 18.0% (p = 0.04); hold-out perplexity 22.76 (no added forgetting) | Paired McNemar on the same 1,178 problems; one seed; the pooled pass@8 p is borderline after a Bonferroni correction (0.075) | Part 9 |
| Difficulty filtering (GSPO-B) sped up learning its own pool, not the held-out tests | 418 of 1,905 problems learnable; training solve-rate trend t 5.4 (GSPO-A: 1.7). B vs A: greedy p = 0.31, pass@8 p = 0.22. B vs SFT: greedy 1.9% → 3.3% (p = 0.02); whole ASDiv + SVAMP pass@8 12.6% → 19.1% (p < 0.005) | Paired McNemar; least-squares slope t on per-step solve rates (Welch t: B 4.24, A 1.68); one seed per arm | Part 9 |
| In avg@8 (PocketRL’s metric), GSPO-A’s gain is clearer | Six-set mean: SFT 1.46%, GSPO-A 2.04% (paired +0.58 points, p = 0.002), GSPO-B 1.73% (p = 0.11). Whole ASDiv + SVAMP: SFT 1.75% → GSPO-B 3.18% (p < 0.001) | Paired difference per problem, sign-flip p (20,000 flips); one seed per arm | Part 13 |
| RL generation was about 40× slower per GPU than PocketRL’s | GSPO-A: 2,078,901 tokens in 5,277 s on 8 GPUs, about 49 per GPU per second (mean answer 90 tokens; the longest per step, median 865). PocketRL’s 7B: about 2,000 on one H100 | PocketRL’s figure is from their 100-step profile, with answer lengths read off their Fig. 8 | Part 10 |
| Serving | Batch 1: 149 ms to the first token, 68.3 ms per token (no CUDA graphs). 512 requests at once on 8 GPUs: 1,731 tokens/s (216 per GPU) | One benchmark per mode | Part 11 |
| The router held through RL | Router z-loss 25.3 → 25.9 (+2.4%); entropy of the 8 selected weights 1.996 → 1.989 nats | One trace at the start and one at the end | Part 9 |
Stage 5: the control run (one H100, Qwen2.5-Math-1.5B)
The question was whether my small RL gain came from my weak base model or from my pipeline. I ran my Megatron GSPO code on Qwen2.5-Math-1.5B with PocketRL’s data, prompt and grader. Its own settings stayed (GSPO’s sequence ratio, KL 0.01, full Adam, learning rate 1e-6, gradient clipping 1.0); the batch shape was PocketRL’s: 16 prompts × 8 answers, one update per step, answers up to 3,000 tokens. The decision rule was fixed before any data.
The noise yardstick for MATH-500: the same weights, evaluated twice, moved avg@8 by −0.33 points (SE 0.86).
| Result | Numbers | Yardstick | Post |
|---|---|---|---|
| The whole chain checks out on the base model | MATH-500 avg@8 21.8% (PocketRL: 21.9%); greedy 33.6%; pass@8 69.6% | PocketRL’s published base number | Part 14 |
| My converter matches Hugging Face token by token | Teacher-forced log-probs: mean absolute difference 0.034 nats; 0.92% of tokens over 0.5 (limits 0.05 and 1%) | Thresholds fixed before the check | Part 14 |
| Megatron silently decoded greedily | Qwen’s generation_config.json (do_sample false) became top_k 1: 1.44 distinct answers per group of 8; without that file, 8.0 |
Distinct texts per group (8 expected) | Part 14 |
| The grader can hang training | sympy spun for good on one answer at update 16. Fixed by not grading cut-off training answers and a 10 s CPU-time limit (0 timeouts since) | Count of timeouts | Part 8 |
| My pipeline works: the base model explains my small gain | Update 50: MATH-500 avg@8 21.77% → 41.42%, +19.65 points (t 17.3; 95% bootstrap [+17.40, +21.93]); greedy 33.6% → 65.4%; about 85% of PocketRL Dense’s +23 at the same point. Rule: ≥ 11.5 → PASS | Paired over 500 problems; rule fixed before the run | Part 14 |
| Training improved steadily | Solve rate 24.5% (updates 1–25) → 34.0% (26–50), Welch t 5.49; +0.33 points per update (t 5.45); median greedy answer 1,030.5 → 517.5 tokens | Welch t and least-squares slope over updates | Part 14 |
| At update 100: level with PocketRL’s Dense arm | MATH-500 avg@8 21.77% → 53.95%, +32.17 points (t 22.9; 95% bootstrap [+29.45, +35.00]); greedy 33.6% → 68.8%. Dense: about 22% → 53.5% (+31.5) at the same point, read off their plot. Updates 51–100 mostly sharpened sampling (avg@8 +12.5, greedy +3.4) | Paired over 500 problems | Part 14 |
| Training kept improving to the end | Solve rate 29.3% (updates 1–50) → 48.6% (51–100), Welch t 11.95; +0.36 points per update (t 14.8); 0 grader timeouts | Welch t and least-squares slope | Part 14 |
| RL mostly sharpened; the reach it added came in the first 50 updates | MATH-500, base → 100: avg@8 +32.2; pass@8 69.6% → 84.0%; problems with all 8 samples right 2 → 63; net about +62 problems reached (80 new, 18 lost). From 50 to 100, reach was unchanged (24 new, 23 lost) | Noise floor between identical weights: 22 new, 21 lost | Part 14 |
| Evaluation noise, from the same weights evaluated twice | avg@8 −0.33 (SE 0.86, p 0.72); greedy 68.8% vs 67.0%; only 198 of 500 greedy texts identical (batch-dependent bf16 in dynamic batching) | This row is the noise floor | Part 13 |
| PocketRL’s six test sets: level with Dense at update 100 too | Six-set mean 9.67% → 23.21% (+13.54, t 15.2); Dense is about 23% at update 100 (their Fig. 4b). Significant on MATH-500, AMC, Minerva and OlympiadBench; AIME not (30 problems each). My base matches theirs per set (9.7% vs 10.0%) | Per-set paired t; AIME has 30 problems per set | Part 14 |
| The saved weights are the evaluated model | Dev split, greedy, saved vs in-run: 9 answers changed, 75 of 166 texts identical. In-run vs its own repeat: 5 and 63 | The in-run repeat | Part 14 |
| One gradient spike, caught and clipped | Update 36: gradient norm 5.77 (otherwise 0.18–1.04). Megatron’s re-run check reproduced it, so the batch caused it, not the GPU | Megatron’s re-run check | Part 14 |
What these results do not show
- Seeds. Every H100 comparison rests on one run per arm. Only the laptop studies had three seeds: the on-policy GSPO tests and the distillation arms.
- Final-answer graders. The laptop graders read only the final number, so “accuracy” there means the final answer, not the working.
- Plot readings. PocketRL’s curve values (Dense at updates 50 and 100) are read off their figures.
- Greedy noise. On MATH-500 in the control run, greedy accuracy carried about ±2 points of run-to-run noise; avg@8 averaged it away.