You need: the decoder block and next-token prediction (The transformer from zero); AdamW and what a learning-rate schedule is (Optimisers and learning-rate schedulers). Reading: 34 minutes, plus 14 in closed details (about 4 of the 33 are the step lists of the figures' other modes); the Speedrun records tab is an explorer, not a read.
Learning rate (line, share of peak) and data mix (bands) against tokens, to scale, from the SmolLM3 blog. The numbered marks are the decisions this page takes in order. 1 The budget: 6 × 3.08B parameters × 11.2T tokens = 2.07 × 1023 FLOPs on 384 H100s for 24 days, at 3,642 tokens per parameter, about 180 times Chinchilla's 20 (section 3). 2 Warmup over 2,000 steps (4.7B tokens) to a flat 2e-4 (section 6). 3 The mix changes at 8T and 10T without touching the learning rate (section 4). 4 The last 10%: the learning rate falls linearly to zero while maths and code are upsampled, the anneal (section 5). 5 100B tokens of long context, 4K to 64K, then 140B tokens of reasoning mid-training before SFT (grey: rates and mixes not given). derived 6ND and the ratios, from the blog's numbers and the released checkpoint's 3,075,098,624 parameters.
Predict first: at 512 tokens, how many positions does span corruption score? Each objective shows the sentence going in, what the model sees, what it must produce, and which positions carry a loss (orange underline).
Tokens are words for readability illustrative; hidden positions are fixed for the demo. Per 512 tokens derived: masked LM hides round(0.15 × 512) = 77; span corruption at mean span 3 makes round(77 / 3) = 26 spans, so the input is 512 − 77 + 26 + 1 = 462 tokens and the target 77 + 26 + 1 = 104 (T5's own code, run on the T5 paper page beside the BERT-style objective it replaced, does the same arithmetic).
Every generative LLM is pretrained with causal language modelling: predict every token from the tokens before it, with cross-entropy over the vocabulary, on text nobody labelled. Every position of every sequence carries a training signal, and the trained model generates by the same rule it was trained on. It is the most expensive stage by far, and it sets the ceiling every later stage works under (the root page, Topic: llm-training-and-post-training, Axis 1, shows reinforcement learning sharpening what pretraining put there rather than adding to it). The alternatives use the same loss and differ only in what the model sees and which positions it must predict; the figure runs one sentence through each, four steps per objective.
How much the choice is worth, measured. T5 moved only the objective, holding architecture, data, compute and evaluation fixed (Raffel et al., section 3.3): the gap between objective families is large, the gap within denoising is noise.
So pick a denoising variant on cost, not quality. The same paper is also a measured result against the field's habit: at matched compute an encoder-decoder (83.28 GLUE) beat a decoder-only prefix LM (81.82), both trained with denoising, and the field went decoder-only anyway, for in-context learning and serving reasons the comparison did not test (Table 2).
GLUE average on T5's validation sets, Tables 4 to 7 of the T5 paper, transcribed (they match by construction), each panel on the same 72 to 86 scale. The grey band is ±1 standard deviation of the baseline over 10 reruns (0.235, Table 1). derived ranges: families 82.96 − 73.17 = 9.79 points (about 42 standard deviations); corruption rates 10 to 25%: 83.28 − 82.82 = 0.46 (about 2); span lengths 2 to 5: 0.14; only a 50% rate and spans of 10 are worse.
Downstream ability tracks loss smoothly enough for scaling laws to work: a run's loss at a given size and token count can be forecast from small runs, and the Llama 3 paper forecast benchmark accuracy from it in two steps. Three cautions keep the number honest:
toy Seed 1 of the 0.8M-parameter character model of section 5. The passage is held-out text from the end of Pride and Prejudice plus three held-out sums, 96 characters; the figure draws its last 41, and the numbers in the steps are means over the whole passage (the first character has no prediction). Colours: word starts, inside words, spaces and punctuation, operand digits, answer digits.
The budget. A dense transformer costs about 6 FLOPs per parameter per token: 2 for the forward pass (a multiply and an add per weight) and 4 for the backward pass. So a run's compute budget is C ≈ 6ND. Llama 3.1 405B: 6 × 405.85B × 15.6T = 3.80 × 1025 FLOPs, the paper's own 3.8 × 1025 (Llama 3, section 3.2.1) derived, independently. A mixture of experts counts only the parameters a token passes through: DeepSeek-V3 is 6 × 37B active × 14.8T = 3.3 × 1024, not 6 × 671B × 14.8T = 6.0 × 1025. Wall-clock is C divided by the hardware's dense peak times the share of it the run sustains (MFU); the root page's Scaling calculator checks that against the GPU-hours labs published, run by run.
The question. For a fixed C, which N (and so D = C / 6N) gives the lowest loss? A bigger model learns more per token but sees fewer tokens. Chinchilla's answer (Hoffmann et al. 2022) fits loss as three terms:
With Besiroglu et al.'s refit of the constants (E 1.8172, A 482.01, B 2085.43, α 0.3478, β 0.3658; Besiroglu et al. 2024), a = 0.513, and at Chinchilla's budget of 5.76 × 1023 FLOPs the optimum is 72.2B parameters on 1.33T tokens, 18 tokens per parameter. Chinchilla itself was 70B on 1.4T, exactly 20. Gopher (280B) had spent the same budget on four times the parameters, and Chinchilla beat it. derived The figure draws that formula as a surface.
Why Kaplan got it wrong. Kaplan et al. 2020 found the same power laws but concluded that size should grow faster than tokens (N ∝ C0.73): at Chinchilla's budget, 485B parameters on 198B tokens, with a predicted loss 1.9% above the optimum's. Each of their shorter runs had been read off a cosine schedule planned for a longer one, so it was never annealed and looked worse than it was, which made small token counts look worse and pushed the answer towards big models. Chinchilla trained each run with a schedule matched to its length and found a ≈ 0.5: double the budget and both N and D grow by √2, keeping D ≈ 20N. Gopher's 280B sits between the two rules.
The valley is flat, and its position depends on the data. At Llama 3.1 405B's budget the refit says 619B on 10.2T tokens; Meta's own IsoFLOP fit on its own data and tokenizer said 402B on 16.55T, and Meta chose 405B because the curves "become flatter around the minimum as the compute budget increases". Under the refit, 405B is only 0.045% worse in loss than 619B. Two lessons: a few tens of percent off the optimal size costs almost nothing in loss, and a fit's constants belong to the data and tokenizer it was fitted on, so labs refit on their own small runs (Llama 3 paper page rebuilds that fit).
Hoffmann et al. estimated the split three ways. Approaches 1 and 2 (training-curve envelopes and IsoFLOP valleys) found the optimal size growing as C0.50, so tokens per parameter stays roughly constant; Chinchilla, 70B on 1.4T, is exactly 20 (1.4T / 70B), and Table 3 puts 67B on 1.5T at the same budget. Approach 3 fits the surface above, and with the paper's own constants its exponent is a = 0.457 (0.452 with the rounded Eq. 10 values), so tokens per parameter rise with compute: 59 at Gopher's budget, where it gives a 40B model (32B and 93 with the rounded constants). Besiroglu et al. refitted Approach 3 on 245 points they parsed from the vector graphics of the paper's Figure 4, found that the original optimiser had stopped early, and got a = 0.513, which brings it back to about 20 and agrees with Approaches 1 and 2. The Chinchilla paper page refits it in the browser (its Refit Approach 3 tab) and lists the paper's table discrepancies. derived from the constants above.
One curtain of Fig. 3 in full loss: L(N, C/6N) under the refit, every point spending the same C. Filled dot: the optimum. Ring: 20 tokens per parameter. Square: Kaplan et al.'s rule, N ∝ C0.73, as Chinchilla's Appendix D.4 reads it (1.3 × 109 × (C/2 in PF-days)0.73, which gives their 4.68B at 1021). Published models appear at their own budget. Loss is in nats per token on Chinchilla's MassiveText with its tokenizer: compare points on one fit, never with another model's loss. derived from the formula above; the fit was made on runs up to about 16B parameters, so the right of the valley at large budgets is an extrapolation. Defaults reproduce Chinchilla's 70B on 1.4T within 3% and 5%, independently (the refit uses points read from the paper's Figure 4, not Chinchilla's own size).
Top: the iso-loss curve L(N, D) = ℓ in (N, D), every point as good as the Chinchilla-optimal model of the chosen size on the chosen fit's frontier (with Hoffmann et al.'s constants that frontier is above 20 tokens per parameter; the counters show how many). Bottom: training and inference FLOPs of both choices on one scale. Solved by a one-dimensional search along the curve. With Hoffmann et al.'s unrounded constants, which Sardana et al. used, it reproduces their example: a 13B-quality model with 2 × 1012 inference tokens becomes (they report 7B and 1.7 × 1022 FLOPs, 17%; their other two examples, 7B at 1011 and 30B at 1013, land within 5%). The Besiroglu et al. refit, used for the rest of this section, moves further from Chinchilla because extra tokens buy more under it. derived
Chinchilla's split minimises training compute for a given loss. A model that will be served pays about 2N FLOPs for every token it ever reads or writes, so labs buy a smaller model with more training tokens: Llama 3.1 8B saw about 15T tokens, 1,868 per parameter (model card; 15T / 8.03B); SmolLM3 3,642; Qwen3-235B-A22B about 1,600 per active parameter. derived The question becomes: at the same loss, what does each extra token per parameter cost in training and save in serving? Sardana et al. 2024 solve for the optimum given a lifetime demand (their Eq. 3): fix the loss ℓ, and on the iso-loss curve L(N, Dtr) = ℓ choose the size and training tokens that minimise 6NDtr + 2NDinf, where Dinf is every token the model will ever process at inference. Their example: a developer who plans a 13B model and expects 2 × 1012 inference tokens can cut total compute by 1.7 × 1022 FLOPs (17%) by training a 7B model on more data instead. Their 47 models (150M to 6B) show the loss still falling out to 10,000 tokens per parameter (their §4; only the 150M model went that far, larger ones stopped at 1,000 or less): the curve flattens but keeps improving, and fits made only on typical ratios overestimate what extra tokens buy at extreme ones, because the fitted curves flatten as more extreme runs enter the fit (§5); the Chinchilla paper page charts tokens per parameter for eleven models (its Then and now tab). The figure solves their problem as demand grows, first keeping the Chinchilla model, then re-optimising; its numbers follow the quality and fit chosen on it.
Over-training, priced. The figure walks the green line of Fig. 3 step 4. Every point has the loss of the compute-optimal model at Chinchilla's budget (1.974 under the refit); the model size that reaches it at each ratio is solved from the formula, and both lines are multiples of the compute-optimal model (72.2B on 1.33T). Training compute 6ND; serving 2N per token, so its multiple is the size ratio. Break-even: the served tokens at which the serving saving, 2(Nopt − N) per token, repays the extra training, C − Copt. At 1,868 tokens per parameter: 17.0B parameters, 5.64 times the training compute, 0.24 times the serving cost, repaid after 24T served tokens. However many tokens, no model below 10.6B reaches this loss: (A / (L − E))1/α. derived; far outside the ratios the fit was made on, so read the shape, not the third digit.
Training compute and serving cost as multiples of the compute-optimal model, at Chinchilla's loss under the refit. derived
Tokens are not interchangeable. The law above treats every token alike, and that is the term doing most of the work now: decomposing progress from 2019 to 2025 attributes 3.24 times more compute-efficiency gain to data improvements than to model improvements (12.0 times for 2025's corpus under the GPT-2 recipe, 3.7 times for 2025's recipe on the 2019 corpus, at a 1019-FLOP budget, 12.0 / 3.7 derived; Dwarkesh Patel and Jerry Han, September 2026, 12 min). The two are additive in benchmark points, not in compute: together they saved 15 times, not the 45 of their product, because on the 2025 corpus the 2025 recipe adds only 1.25 times (small models, one benchmark suite; our reading). And fresh tokens run out: repeating data up to about 4 epochs is nearly as good as fresh (Muennighoff et al.'s law: four epochs are worth 3.73 fresh epochs), about 16 is the useful limit, and the law and a token-budget planner live on Data mixing. Allocation is largely solved; the mixture is not, which is why sections 4 and 5 are about data.
Scaling laws also set hyperparameters. Fit on small runs, then predict the big run's loss and pick its settings. muP (μTransfer, Yang et al. 2022) parameterises the network so the best learning rate and initialisation found on a narrow model transfer to wider ones; used by many 2024+ labs unconfirmed as a count (labs rarely say), and visible in the speedrun's "zero-init projections (muP-like)".
A 2020 run read one fixed mix from start to end. A 2025 run changes the mix as it goes: a bulk stage of filtered web, code and papers (about 90% of tokens or more); an anneal (mid-training) that up-weights the best data (curated maths, instruction-like text, synthetic data) while the learning rate decays (OLMo 2's Dolmino mix; Llama 3 over its final 40M tokens, Llama 3, section 3.4.3); then long-context extension, a short final phase at 32K to 128K and beyond with upsampled long documents and rescaled RoPE (SmolLM3: 2 × 50B tokens, 4K to 32K then 64K; Llama 3 405B: about 800B tokens in six steps from 8K to 128K; mechanics on Positional Encodings).
The figure steps through three runs, GPT-3 first: one mix and one cosine; then OLMo 2 and SmolLM3. Each run is drawn to scale on its own token axis; the lower strip magnifies the last 5%, where an anneal of 1.3% of the run would otherwise be a hairline.
GPT-3: Table 2.2 mix (Common Crawl 60%, WebText2 22%, Books1 and Books2 8% each, Wikipedia 3%; the printed weights sum to 101%, drawn normalised; WebText2 shown as filtered high-quality web), section 2.3 and Appendix B schedule (Brown et al. 2020).
OLMo 2 7B: Table 3 (peak 3e-4, 2,000 warmup steps of 1,024 × 4,096 tokens = 8.39B, cosine to 10% planned over 5T, cut after 4T), Table 10 "PT Mix" and Table 13 (Dolmino 50B) compositions, section 2.3 (linear decay to zero in mid-training), Tables 9 and 14 (OLMo et al. 2025). Stage 1 ended at 3.90T by the last checkpoint name. Defaults reproduce Table 4 independently: stage-1 maths of 0.6% × 3.90T = 23.4B against OpenWebMath 12.2B + Algebraic Stack 11.8B = 24.0B, within the rounding of Table 10's one-decimal shares.
SmolLM3: stage mixes, WSD schedule (2,000 warmup steps × 2.36M tokens = 4.72B, linear decay to 0 over the final 10% of steps), long-context and reasoning mid-training from the SmolLM3 blog. The blog's stage 3 runs "10T to 11.1T" against a stated 11.2T total; drawn to 11.1T, with the decay over stage 3, which the blog calls the decay phase (about the final 10%). Learning rates and mixes for the two mid-training stages are not given (grey).
So: GPT-3's learning rate stopped decaying at 260B of 300B tokens and nothing else changed; OLMo 2 cut its cosine at 3.90T and annealed on a different mix; SmolLM3 held its learning rate flat until the last 10% and changed its mix twice. OLMo 2's stage-1 mix was 3.90T tokens, 95.2% DCLM web pages, the rest StarCoder code, peS2o and arXiv papers, Wikipedia and two maths sets (OLMo 2, Tables 4 and 10).
How a mix is chosen. By small, cheap experiments, not scaling-law studies: the SmolLM3 team ran ablations on 3B models trained on 50B to 100B tokens (SmolLM3 blog); Llama 3 judges a new dataset by annealing a half-trained 8B linearly to zero over 40B tokens with 30% of the data from the candidate (section 3.1.3). Filtering, deduplication and mixing methods are on Topic: data-curation-and-datasets and Data mixing. The architecture, by contrast, has largely converged (pre-norm decoder, RMSNorm, SwiGLU, RoPE, grouped-query attention; mixture of experts for the compute-rich): the LLM Architecture Gallery shows it model by model. "Annealing" means three things in this literature (learning-rate decay, this phase, and a cheap data experiment); the Optimisers page separates them.
An anneal pulls two levers at once: the learning rate falls to zero, and the data switches to the best you have. Any "annealing gave +X" is a compound of the two unless an ablation separated them. OLMo 2 ran exactly that ablation on its 7B: from the checkpoint at 4T tokens, 50B tokens with the learning rate decayed to zero on the unchanged pretraining mix, against the same schedule on high-quality mixes (Table 11).
On knowledge and multiple-choice tasks most of the gain is the learning-rate decay (OLMES +4.4 of +6.1, MMLU +2.0 of +3.3); on maths all of it is the data (decay alone −1.5, within noise; the new mix +19.5). The shipped OLMo 2 7B, with three souped 50B anneals on the final Dolmino mix, went from 24.1 to 67.5 on full GSM8K and 59.8 to 63.7 on MMLU, +10.6 points on average (Table 9); the OLMo 2 paper page rebuilds the microanneals that chose the maths data and the soups. Two facts bound the effect. It shrinks with scale: annealing raised a pre-trained Llama 3 8B by 24.0% on GSM8k and 6.4% on MATH, and the gains on the 405B were negligible (Llama 3, section 3.1.3); OLMo 2 says the same of Dolmino across its sizes. And the ablation has no cell for "new data at a constant learning rate", so it cannot say whether the data switch needs the decay.
OLMo 2 Table 11: "n/a (pretrain checkpoint)", "PT Mix" and "Web FT7 FW2 + Math + Ins" rows, each 50B tokens from the same 4T checkpoint, transcribed (the bars reproduce Table 11 by construction). derived splits: LR part = PT Mix − checkpoint; data part = new mix − PT Mix. GSM* is 200 questions, so one score has a binomial standard error of about 3.2 to 3.5 points and a difference about 4.5 to 4.7 (√(p(1−p)/200)); the multiple-choice scores average many more questions, but the paper gives no error bars for them.
This page trained a 0.8M-parameter character model and annealed it four ways from one checkpoint: learning rate held flat or decayed to zero, crossed with the same mix (3% two-digit sums, SmolLM3's stage-1 maths share) or a maths-heavy mix (25%, close to OLMo 2's 20.8% maths in Dolmino), three seeds each. toy measured here; nothing on this card is read from a paper.
47+38=85 for two-digit sums, with a fixed 20% of all pairs never trained on and used only for testing.src/toy/train.py, run on CPU with two threads (about 11 minutes per seed).Switch the measure: "Sum answers" is the loss on the digits after =, which a model can drive to zero; "Sum operands" is the loss on the random digits before it, floored at about 3.25 bits; "Word starts" is the first letter of a word, where text makes its choices. Held-out evaluation every 100 steps: 96 text windows from the held-out 5% of the books, 48 windows of held-out sums, and greedy exact-match accuracy on 300 held-out sums, each given five training sums as context. Bands are the range over seeds.
Learning-rate schedule. A cosine schedule must know the run's length before it starts; WSD (warmup, stable, decay; MiniCPM) holds the rate flat and decays over the last 10 to 20% whenever you decide to stop, so anneals can branch off the plateau without committing to a token count. That costs nothing at the end: "the constant learning rate with a short cooldown (< 20% of total training steps) can achieve the same final loss as cosine" (Hägele et al. 2024). The runs above show the variants: GPT-3 one cosine; OLMo 2 a cosine cut early plus a linear anneal; SmolLM3 WSD with a 10% decay; Kimi K2 WSD with 500 warmup steps, 2 × 10−4 constant for 10T tokens, cosine to 2 × 10−5 over 5.5T, then an anneal to 7 × 10−6 over 400B + 60B. The decay can even be dropped: WSM merges checkpoints instead. Shapes, cooldown length and the animation of one run serving many lengths are section 7 of Optimisers and learning-rate schedulers (models at three lengths cost 1,750 steps with cosine and 1,150 with WSD).
Batch size. Below the critical batch size a larger batch buys nearly proportional speed; above it, it wastes compute, and it grows as the loss falls (McCandlish et al. 2018; Kaplan's form is plotted on the Scaling Laws page). So runs ramp it: GPT-3 linearly from 32K tokens to the full batch over the first 4 to 12B tokens (GPT-3, Appendix B); Llama 3 405B from 4M to 8M tokens after 252M tokens and to 16M after 2.87T (section 3.4.1); the speedrun's record 46 was a batch-size schedule.
Stability. A run that diverges at 60% has wasted 60% of the budget, so every large run stacks cheap guards: bf16 with fp32 master weights; gradient clipping at 1.0 (GPT-3, OLMo 2, SmolLM3 and this page's toy all clip at 1.0); z-loss or logit soft-capping on the output softmax; QK-norm on the attention logits (OLMo 2 moved to QK-norm plus reordered norms specifically for stability; its ablations are replayed on the OLMo 2 paper page); and a watch for loss spikes that correlate with bad data shards. Llama 3 lowered its early batch size for stability and reports few spikes and no interventions. Why each guard works, and the spikes themselves, are on Normalisation, residuals and stability (its Stability explorer); precision formats on Quantization and Precision; parallelism on Distributed Training.
Failures are routine. Over a 54-day snapshot of Llama 3 405B's pretraining on 16K H100s there were 466 interruptions, 419 of them unexpected (78% hardware), yet the job kept "higher than 90% effective training time" (Llama 3 paper page). Checkpointing and restart design are on Fault tolerance at scale.
Evaluation during training. Track a fixed held-out loss suite plus few-shot benchmarks at checkpoints; held-out loss on high-quality sets predicts downstream better than training loss. Small models need easier formats to give signal (OLMo 2 uses cloze-form OLMES for exactly this), and an anneal is the cheapest way to ask "how good would this checkpoint be if I stopped now" (Llama 3's 40B-token test anneals; WSM's merges).
Stage-by-stage recipes for 20 models (tokens, mixes, context, post-training) are on the root page's Open recipes compared tab. The fully open ones (data, code, checkpoints and logs released) are what make every number in sections 4 and 5 checkable: OLMo 2 and Olmo 3, K2 Horizon and SmolLM3, plus the NanoGPT speedrun for small-scale tricks (Speedrun records).
| Recipe | What is open | Read it for |
|---|---|---|
| OLMo 2 and Olmo 3 (Ai2) | data, code, intermediate checkpoints, training logs | The anneal and souping above; OLMo 2 32B trained to about 6T tokens (6.06T from its last stage-1 checkpoint name) and post-trained with Tülu 3.1 (Ai2). Olmo 3 (7B, 32B) adds a "model flow" from base to Think and Instruct with RL-Zero checkpoints; its Dolma 3 pool is 9.3T tokens, the 7B's pretraining mix 5.93T (report). Lab page: the Ai2 OLMo section of Other notable providers. |
| K2 Horizon (Institute of Foundation Models, Abu Dhabi) | weights, training code, training data, intermediate checkpoints; Apache 2.0 | The second fully open lab, which makes "fully open" a category: six base models (0.9B, 3.7B, 7B, 32B, a sparse MoVA-36B-A4B and the 375B-A23B flagship), published 1 September 2026 (IFM on Hugging Face). Open data is what allows contamination audits and data ablations from outside. The 375B saw 7.08T + 8.05T = 15.13T pretraining tokens, then four mid-training stages (1.91T) that extend context to 512K (model card). Benchmarks are the lab's own reported. |
| SmolLM3 (Hugging Face) | the full engineering blueprint, configs, logs | The hero run: architecture ablations, the 11.2T-token three-stage mix, long context, reasoning mid-training (blog); the Smol Training Playbook (about 5h) documents each decision. |
| The NanoGPT speedrun (nanoGPT, llm.c, modded-nanogpt) | every record's code | Which tricks save compute at small scale: GPT-2 (124M) quality, 3.28 validation loss on FineWeb on 8 H100s, fell from 45 minutes (llm.c, May 2024) to 1.894 minutes by the end of 2025 and 0.665 minutes (about 40 seconds) on 30 August 2026, on under 330M training tokens against 10B (modded-nanogpt). Its furthest graduate is the Muon optimiser: MuonClip carried Moonshot's 1T-parameter Kimi K2 through 15.5T tokens (Kimi page). All 92 records: Speedrun records. |
| Magic | the recipe and long-context work, not a benchmark table | Pretraining without frontier compute: reported at more than 10 times the compute efficiency of leading open-weight base models (8 September 2026; Magic, 25 min). Vendor-reported, not reproduced reported. |
| Semi-open reports | weights and a detailed report | The Llama 3 Herd of Models (data mix, scaling fit, infrastructure failures), DeepSeek-V3 (FP8 training, MoE at scale), Qwen3 (three pretraining stages over 36T tokens, 119 languages). |
Numbers are published, with the source linked, unless marked derived (formula shown, recomputed in src/recompute.py and checked against the page by src/check_data.py), illustrative, reported (the maker's own figure, not independently checked), toy (this page's own small run) or unconfirmed.
6ND gives 2.07 × 1023 FLOPs. 384 H100s for 24 days is 221,184 GPU-hours; at the H100's dense BF16 peak of 989.5 TFLOP/s that is 7.9 × 1023 FLOPs of capacity, so the run sustained about 26% of peak by 6ND derived. Wall-clock days include restarts and evaluation, and a 3B model is small for 384 GPUs. The root's Scaling calculator makes the same check for twelve published runs, with the attention term and each lab's stated MFU.
Start from the compute-optimal split (72.2B parameters on 1.33T tokens under the refit), then move along the same-loss curve towards a smaller model until the training premium is repaid by expected serving volume. From the slider in section 3: at 100 tokens per parameter, 35.2B parameters for 1.29 times the training compute, repaid after about 2.2T served tokens; at Llama 3 8B's 1,868, 17.0B for 5.64 times, repaid after about 24T derived. Then check the data: at thousands of tokens per parameter you need tens of trillions of good tokens, and repeats past about 4 epochs lose value. Refit the law on your own small runs and tokenizer before trusting any constant, use WSD so the stopping point can move, and choose the anneal's data from small anneal ablations.
The task is fixed: train a network to at most 3.28 cross-entropy loss on the FineWeb validation set, on 8 NVIDIA H100 GPUs, without changing the training or validation token streams; the target matches Karpathy's GPT-2 (124M) reproduction in llm.c, which needed 45 minutes and 10B tokens (modded-nanogpt README, fetched 3 October 2026). Because the data, tokenizer and hardware are held still, every record is an ablation that the whole community re-runs: a change that claims a gain must show it, with enough runs for p < 0.01 that the mean loss is at most 3.28. That makes it the cleanest public evidence of which training tricks actually save compute, at one small scale.
Each record's speed-up is ln(previous time / new time), so the speed-ups add up to the whole history: ln(45 / 0.665) + ln(3.014 / 2.933) = 4.24, a factor of 69.5 derived including the re-timing loss. Summed by kind:
derived from the table above with this page's tagging; record 92 alone (sampled softmax, FP8 MLP, an 84.6M-row hashed n-gram embedding table, the ANVIL optimiser stack, depth reduction, CUDA graphs) took 41% off the previous record and is kept as its own bar because it cannot be split.
Try: press Play to replay the record history (it opens on the latest record and never plays by itself); tap any point for the record and its link; tap a kind of change to highlight it. The y axis is logarithmic, so equal heights are equal speed-ups.
Times and descriptions as listed in the README's world-record table; record 21 was re-timed twice under new rules (2.997 and 3.014 minutes, hollow points), and later records are measured against the re-timed value. The kind of change is this page's tagging of each record's first-listed change, not the repository's; many records bundle several changes. The counters reproduce the README's headline (45 minutes to under 40 seconds) independently, from the table rows.
Further reading: How the NanoGPT speedrun WR dropped by 20% in 3 months (LessWrong, about 35 min).
Links open in a new tab. Times for knowledge base pages are their Reading tab's length at 230 words a minute (estimated from word count) unless the page states its own; times for outside resources are as recorded when they were first read.
All 92 NanoGPT speedrun records, 45 minutes to 40 seconds, by kind of change, with a replay. Behind Reading section 7.
Pretraining compared with every later stage on what it changes, data, cost and what goes wrong. Its tabs: Open recipes compared (tokens and mixes stage by stage for 20 models), Price list (every disclosed training bill and what it includes), Scaling calculator (6ND against the FLOPs and GPU-hours labs published, run by run). (22 min, plus 22 in closed details)
The schedule family (cosine, WSD, schedule-free, WSM), cooldown shape and length, the three meanings of "annealing", AdamW, Muon, Shampoo and SOAP. (34 min read · +10h 50m resources)
Filtering, deduplication, mixtures and synthetic data: where the data lever is worked. (35 min read · +7h 40m resources)
Why pre-norm, QK-norm, z-loss and clipping keep a run stable, and what a loss spike is, with a Stability explorer.
Domain weights, the repetition law (how many epochs a source is worth), mixing laws and stage planning (the data side of sections 3 and 4), and the same objective on a new domain (it holds the former Continued Pretraining page): forgetting, replay, re-warming. (40 min, plus 22 in closed details)
RoPE and the context-extension methods the last pretraining stage uses. (40 min read · +2h 50m resources)
Why per-token loss depends on the tokenizer. (46 min read · +6h 35m resources)
Parallelism, checkpointing and fault tolerance for a run of this size. (35 min, plus 5 in closed details; 42 min, plus 27)
bf16, FP8 and the mixed-precision training this page mentions. (34 min, plus 11 in closed details)
The fully open lab, the trillion-parameter Muon run, and the converged architecture model by model. (about 14, 35 and 22 min, estimated)
Scaling-law fits used in Reading section 3: Hoffmann et al. 2022, Besiroglu et al. 2024, Chinchilla scaling: a replication attempt, Sardana et al. 2024, Beyond Chinchilla-optimal, Hägele et al. 2024, cooldowns against cosine.
The power laws, then the corrected allocation of about 20 tokens per parameter, refitted on their own points. (about 16 and 20 min, estimated)
The controlled objective comparison, with T5's span-corruption code run live; then matched encoders and decoders trained on the same data. (about 18 and 21 min, estimated)
The one-pass recipe drawn above, its data filtering and its tokens per parameter. (about 21 min, estimated)
The anneal, its microanneals and soups, the stability fixes; and the most detailed account of a frontier-scale run, batch ramp and annealing included. (about 26 and 26 min, estimated)
Decay-free schedules: replace the anneal's learning-rate decay with checkpoint merging. (about 20 min, estimated)
FP8 pretraining at 671B with FIM on 10% of documents; three pretraining stages over 36T tokens. (about 26 and 23 min, estimated)
Turning a pretrained decoder into an encoder-decoder. (about 23 min, estimated)
An interactive book distilling 4,000+ scaling experiments on up to 512 GPUs: memory anatomy, every parallelism strategy, and how to pick a configuration. The single best modern reference. (about 8h)
The decisions behind SmolLM3, ablation by ablation. (about 5h)
Fully open recipes (data, code, checkpoints, logs); Olmo 3 adds the 9.3T-token Dolma 3 pool and RL-Zero checkpoints. (about 30 min each)
Minimal GPT training, and the community leaderboard that stress-tests every training trick. (about 30 min for the core files; about 30 min for the entry path)
What actually moves the loss curve, record by record (LessWrong). (about 35 min)
The three-stage mix, the WSD schedule and the mid-training stages drawn on the Reading tab. (about 30 min, estimated)
Data against modelling gains, 2019 to 2025 (our reading: Pretraining progress is mostly coming from data, 11 min); a vendor's claimed tenfold efficiency recipe. (12 min and 25 min)
The mixture of denoisers; FIM and why it is free. (about 45 min each, estimated)
This page has no child pages, databases or video. Built from the Notion page as it stood on 22 September 2026, checked against the sources above on 3 October 2026, rebuilt to the teaching contract on 23 October 2026 (scaling laws added, the toy folded into Reading).