Prince Osei Aboagye
Reference

Data and model cards

Sources, licences as recorded in my notebook, uses and limitations of every dataset and base model in the project, followed by a card for each of my checkpoints with its training, evaluation, intended use and limitations.

This page lists every dataset and base model the project used, then gives a card for each of my checkpoints. “Licence” gives what my notebook’s data entries record. Where it says not recorded, I did not record a licence; check the source’s own card before reusing it.

// § 01

Datasets at a glance

Dataset Source (pinned) Licence (as recorded) Used for
FineWeb-Edu sample/10BT HuggingFaceFW/fineweb-edu, files 000–004, SHA-256 checked ODC-By Pretraining and its 1% hold-out
OpenMathInstruct-2 augmented_gsm8k nvidia/OpenMathInstruct-2, revision 469216e3 CC BY 4.0; the teacher’s outputs fall under the Llama 3.1 licence’s §1.b.i SFT
MAWPS, MultiArith, ASDiv, SVAMP, MATH, GSM8K Hugging Face datasets at pinned revisions (below) MATH, GSM8K, SVAMP: MIT; ASDiv: CC BY-NC 4.0; MAWPS, MultiArith: not recorded The RL curriculum and the six test sets
Generated arithmetic code/rl/curriculum.py Mine The warm-up tier
PocketRL’s MATH training set and six test sets Raw files at pinned SHA-256, from PocketRL commit 82ffdcc5’s source list PocketRL’s code: Apache-2.0; the data: not recorded The control run
MiniMind’s data Dataset revision 312afb4f Not recorded The laptop’s smoke tests
// § 02

Pretraining data: FineWeb-Edu

  • Source. HuggingFaceFW/fineweb-edu, subset sample/10BT. I downloaded files 000–004 of its 14 and checked each against Hugging Face’s listed size and SHA-256.
  • Licence. ODC-By, from the dataset card.
  • Preparation (code/scripts/prepare_pretrain_data.py), per document:
    • mask e-mail addresses and IPv4 addresses;
    • drop it if any 10 consecutive words occur in a question of any of the six test sets (212,854 10-grams);
    • put it in validation if a hash of its id falls in 1 of 100 buckets;
    • tokenize it with the Llama 3.2 tokenizer and append <|end_of_text|>.
  • Result. 2,600,591,645 training tokens from 2,594,765 documents, and 26,012,769 validation tokens from 26,094 documents. 1,141 documents were dropped (0.044%), and 75,946 e-mails and 21,665 IP addresses were masked. Files 000–002 and part of 003 were used.
  • Limitations.
    • It is general educational web text, with no math corpus.
    • 2.6B tokens is about a tenth of the compute-optimal amount for 1.2B active parameters.
    • The 10-gram rule over-drops pages that contain stock number runs, such as “0 1 2 3 4 5 6 7 8 9”. In the pilot it removed 0.033% of documents.
    • The masking covers e-mail and IPv4 addresses only.
// § 03

The tokenizer: Llama 3.2

  • Source. The copy in unsloth/Llama-3.2-1B, the ungated copy the HF MoE handbook uses, with the same vocabulary and token IDs as Meta’s. 128,256 tokens; <|end_of_text|> has id 128001.
  • Licence. The Llama 3.2 Community License. Its §1.b.i, identical in the Llama 3.1 licence, applies when a model built with Llama materials or their outputs is distributed or made available. Its name must then begin with “Llama”, and the clause also asks for “Built with Llama” and a copy of the agreement. “Llama Materials” covers “any portion” of Llama 3.2, so the tokenizer arguably brings that obligation already.
  • Use. Every stage of my own model.
  • Measured. 0.9804 Llama tokens per GPT-2 token on a 1,000-document FineWeb-Edu sample.
// § 04

SFT data: OpenMathInstruct-2 augmented_gsm8k

  • Source. nvidia/OpenMathInstruct-2, Hub revision 469216e3 (Toshniwal et al., arXiv:2410.01560). The augmented_gsm8k part holds 73,643 new questions with 2,111,683 teacher solutions, written by Llama-3.1-405B-Instruct.
  • Licence. CC BY 4.0, from the dataset card. The solutions are Llama 3.1 outputs, so §1.b.i above applies to any distributed model trained on them.
  • Use. Build 5 is the final SFT set: 55,083 questions (53,970 train, 1,113 validation), one checked solution each, in the <think>…</think><answer>…</answer> format. It holds 5.92M response tokens, 107.5 per answer on average. For Megatron, the examples are packed about 24 to a 4,096-token line, 2,210 lines in all.
  • Checks. A fresh blind check of 50 labels found 0 wrong, a 95% upper bound of 7.1%.
  • Limitations.
    • The new questions’ labels are majority votes among the teacher’s 32 generations, not ground truth.
    • About 11% had no exact answer: I dropped 7,997 of 73,643, where at least half of the teacher’s solutions had to round.
    • NVIDIA’s decontamination keeps changed-number copies of test questions. 78 questions share a 10-word run with my test sets, and 2 of 10 sampled were template copies of GSM8K test questions. My build adds a 10-word check with every number masked and an embedding search for the nearest test question.
    • The validation split comes from the same source, so its loss measures the fit, not generalization.
    • Math-only SFT raised hold-out perplexity on general text from 20.97 to 22.74 (+8.4%).
  • Also used: sentence-transformers/multi-qa-MiniLM-L6-cos-v1 (revision b2073673), the retriever the dataset’s paper names, in my near-duplicate check. Licence: not recorded.
// § 05

The RL curriculum and the six test sets

Every Hugging Face dataset is loaded at a pinned revision, and an offline rebuild at those revisions reproduced all 11 curriculum files byte for byte.

Dataset Hugging Face id, revision Training tier Held-out test set
MAWPS MU-NLPC/Calc-mawps, 38c10053 Easy (train split) 520
MultiArith ChilleD/MultiArith, 144d44c3 Easy (train split) 180
ASDiv EleutherAI/asdiv, 8f958072 Medium (80%, by a hash of the question) 407 (the other 20%)
SVAMP ChilleD/SVAMP, 5e0bf1e5 Medium (train split) 300
MATH EleutherAI/hendrycks_math, 21a56338 Hard (levels 1–3, train split) 5,000 (scored on 4,981)
GSM8K openai/gsm8k, 740312ad Hard (train split) 1,319
Generated arithmetic code/rl/curriculum.py, levels 1–2 Warm-up —
  • Tiers. Easy 1,195, medium 1,905, hard 10,391 after 9 LaTeX problems were dropped, and warm-up 2,000.
  • Licence. MATH, GSM8K and SVAMP: MIT. ASDiv: CC BY-NC 4.0, which does not allow commercial use. MAWPS and MultiArith: not recorded.
  • Use. The main run’s GSPO trained on the medium tier only; the six test sets are the held-out evaluation.
  • Limitations.
    • The datasets overlap. MultiArith is part of MAWPS, and SVAMP builds several variations of each ASDiv problem. The build removed 59 duplicates and 1,316 overlaps with the held-out sets.
    • The 10-word rule errs toward removing too much.
    • 28 MATH problems were flagged by the grader audit: 9 dropped from training, 19 excluded from the MATH test score.
    • Always giving each set’s most common answer scores up to 8.33% (SVAMP): the floor any gain must beat.
// § 06

The control run’s data (PocketRL’s)

  • Source. The same raw files and SHA-256 digests as PocketRL’s own source list (commit 82ffdcc5).
    • MATH training problems: rasbt/math_full_minus_math500.
    • MATH-500: rasbt/reasoning-from-scratch.
    • AIME 2024, AIME 2025, AMC 2023, Minerva Math and OlympiadBench: stephen-chung-mh/thinker-task.
    • PocketRL’s own list of held-out ids.
  • Licence. My preparation script ports PocketRL’s pipeline, and its grader is vendored unchanged; PocketRL is Apache-2.0. The problems come from MATH, which is MIT-licensed; the repackaged files’ own terms and the other five test sets’ licences are not recorded.
  • Use. 8,552 training problems: MATH levels 3–5, minus PocketRL’s held-out ids and every MATH-500 problem. The six test sets hold 500, 30, 30, 40, 272 and 675 problems, 1,547 in all.
  • Limitations. The AIME sets have 30 problems each, so one problem is 3.3 points. Training is math only.
// § 07

Base models

MiniMind 64M dense (laptop studies)

Field Value
Source MiniMind code at commit 858008e; the released SFT weights full_sft_768.pth from jingyaogong/minimind-3-pytorch, model revision edba70ec
Shape 63.91M parameters: hidden 768, 8 layers
Licence Not recorded
Used for The laptop’s GSPO studies, which started from the released SFT weights
Limitations MiniMind’s own data is Chinese, and my smoke-test model answered in Chinese; its results say nothing about the 6.86B model

Qwen2.5-Math-1.5B (control run)

Field Value
Source Qwen/Qwen2.5-Math-1.5B, revision 4a83ca6e
Shape 28 layers, hidden 1,536, FFN 8,960, 12 heads in 2 key-value groups of 128 dims; RoPE base 10,000; tied embeddings
Vocabulary 151,665 tokens, padded by Megatron to 151,680; the converter keeps the embedding’s first 151,680 of 151,936 rows
Licence Apache-2.0
Used for The control run’s base model, converted to Megatron by my own converter
Conversion check Teacher-forced log-probs against Hugging Face: mean absolute difference 0.034 nats, 0.92% of tokens over 0.5
Limitations Its generation_config.json (do_sample false) made Megatron decode greedily, so my tokenizer copy leaves that file out. Its pad token equals its end token, so my copy pads with <|vision_pad|> (151654)

Thinking Machines avoided Qwen2.5 and Qwen3 when measuring RL, because those models were “pretrained on data that improves their math performance” (LoRA Without Regret).

// § 08

My checkpoints

The weights-only checkpoints of my model are bf16, in Megatron’s torch_dist format. Every stage that loads them must use the main run’s router flags (MAIN_ROUTER=qb): the score function and the balancing bias are part of the routing.

Pretrained base (main run, iteration 1,240)

Field Value
Architecture 16 layers, hidden 2,048; 32 query heads in 4 key-value groups of 64 dims; QK-norm; RoPE base 500,000; 64 routed experts per layer (FFN 1,024), top-8, no shared expert; SwiGLU clamped at 10; tied embeddings
Router sqrt-softplus scores, quantile balancing, routed scaling 2.5
Size 6.86B parameters in total, 1.22B active per token
Training 1,240 steps of 512 × 4,096 tokens: 2.6B tokens of FineWeb-Edu, 4.09 h on 8×H100
Evaluation Validation loss 3.046 (perplexity 21.0); hold-out perplexity 20.97; 0 on all six test sets; no rogue expert (largest mean output norm 3.47× its layer’s median)
Files 15 files, 13,743,073,344 bytes
Intended use Research: the starting point for SFT, and a subject for MoE pretraining and routing studies
Limitations Does not follow instructions or stop: its answers loop to the ~1,500-token limit. English web text only, about a tenth of the compute-optimal token count

SFT (step 175 of a 6-epoch run)

Field Value
Starting point The pretrained base
Training SFT on the 55,083-question set, 6 epochs in one cosine schedule over 208 steps; step 175 kept for the lowest validation loss (0.748)
Evaluation GSM8K 2.0% greedy and 12.0% pass@8 (subset of 200); whole SVAMP 3.3% / 12.0%; whole ASDiv 5.7% / 13.0%; format compliance 92% on GSM8K; six-set avg@8 1.46%; hold-out perplexity 22.74 (+8.4%)
Files 11 files, 13,725,863,255 bytes
Intended use The starting point and the KL reference for GSPO
Limitations SFT taught the answer format, not the arithmetic: after one epoch, the model copied the question’s first number. Only 1.6% of groups were mixed at 8 answers per problem, too few for GSPO. Mild forgetting of general text

GSPO-A

Field Value
Starting point SFT step 175
Training 45 GSPO steps (177 updates) on the medium tier (ASDiv and SVAMP training problems), held fixed; 16 prompts × 32 answers; LR 1e-6; clip 2e-2 / 2.7e-2; KL weight 0.01; router balancing frozen
Evaluation Pooled pass@8 10.5% → 13.2% (p = 0.038); greedy 1.9% → 2.6% (p = 0.24); whole SVAMP pass@8 12.0% → 18.0% (p = 0.04); six-set avg@8 1.46% → 2.04% (p = 0.002); hold-out perplexity 22.76
Router z-loss 25.3 → 25.9 and selected-weight entropy 1.996 → 1.989 nats from the start to the end of RL
Files 16 files, 13,743,074,481 bytes
Intended use Research; the model of the serving benchmark
Limitations One seed. Gains are on the near sets; GSM8K and MATH did not move. Absolute accuracy stays at a few percent

GSPO-B (difficulty filtering)

Field Value
Starting point SFT step 175
Training GSPO-A’s settings on the 418 learnable medium-tier problems (1–15 of 16 samples right): 46 steps, 181 updates
Evaluation Greedy 1.9% → 3.3% (p = 0.02); pooled pass@8 11.5% (p = 0.40 against SFT); whole ASDiv + SVAMP pass@8 12.6% → 19.1% (p < 0.005); six-set avg@8 1.73% (p = 0.11); hold-out perplexity 22.76
Against GSPO-A Cannot be told apart: greedy p = 0.31, pass@8 p = 0.22
Files 16 files, 13,743,074,608 bytes
Intended use Research: the difficulty-filtering arm
Limitations One seed; its pool is small, about 410 problems after the dev split, each drawn about 1.5 times

Control run: Qwen2.5-Math-1.5B after my GSPO (updates 50 and 100)

Field Value
Starting point Qwen2.5-Math-1.5B
Training My Megatron GSPO with its own learning rate, KL weight and clipping, and PocketRL’s batch shape: 16 prompts × 8 answers, one update per step, LR 1e-6, KL weight 0.01; PocketRL’s 8,552 problems, prompt and boxed-answer reward; up to 3,000 new tokens
Evaluation, update 50 MATH-500 avg@8 41.42% (+19.65 points); greedy 65.4%; pass@8 83.2%
Evaluation, update 100 MATH-500 avg@8 53.95% (+32.17 points); greedy 68.8%; pass@8 84.0%; PocketRL’s six-set mean 23.21% (base 9.67%)
Files Megatron’s single-file torch format; the update-50 file is 3.09 GB; SHA-256 78b2a203… (update 50) and b7ac66c3… (update 100). Optimizer states not kept
Intended use A check of my RL pipeline against PocketRL’s Dense arm, not a new math model
Limitations One seed and 100 updates, math only. On MATH-500, greedy accuracy carries about ±2 points of run-to-run noise