> cat research/2026-11-28-twilight.txt
# Twilight
Twilight is our first model: a 135M-parameter base model, pretrained from scratch. The weights are out now: models/twilight.
It's small on purpose. A model this size trains on one GPU in an afternoon, so every idea we want in our bigger models gets tested here first, cheaply and in the open.
The goal is the strongest base model at its size. This first run trained on 9.8B tokens. SmolLM2-135M, the model to beat, saw 2 trillion. So the question for this run wasn't whether we beat it yet, but how far each token gets us.
# The model
Twilight has exactly the shape of SmolLM2-135M: 30 layers, width 576, 9 query heads sharing 3 key-value heads, a SwiGLU feed-forward, rotary positions, and input and output embeddings tied. It uses SmolLM2's tokenizer too.
Keeping the architecture fixed means any difference comes from how we train, not from what we train.
| Parameters | 134.5M |
| Layers | 30 |
| Width | 576 |
| Attention heads | 9 query / 3 key-value |
| Feed-forward | SwiGLU, 1,536 |
| Positions | Rotary |
| Vocabulary | 49,152 |
| Context | 512 tokens |
Same shape as SmolLM2-135M.
# Data
10B tokens from Zyda-2, sampled with its published mix: mostly FineWeb-Edu and DCLM, with a little Dolma and Zyda's own crawl.
Documents are packed end to end into 512-token sequences. 64 documents, 16 from each source, are held out to measure loss.
| FineWeb-Edu | 50.6% |
| DCLM | 40.4% |
| Dolma (Common Crawl) | 5.9% |
| Zyda | 3.2% |
Sampling weights per source, from Zyda-2's 100B-token sample.
# TST: training on bags of tokens
For the first 30% of training steps, each position sees six tokens instead of one. Their embeddings are averaged into a single input, and the model is trained to predict the next six tokens as a bag, ignoring their order.
One step then covers six times as much text. In the finished run, the bag phase got through 73% of the tokens in 31% of the steps.
After that, training switches to plain next-token prediction for the rest of the run, and the model learns to use what it saw in bags one token at a time.
Steps
TST 31%
Next-token 69%
Tokens
TST 73%
Next-token 27%
The bag phase (TST, dim) takes few steps but most of the tokens.
# Muon
The weight matrices inside the layers are trained with Muon. It orthogonalizes each update, so every direction in a matrix moves by a similar amount instead of a few directions dominating.
Embeddings and norms, which aren't matrices in that sense, use AdamW. Learning rates warm up over 200 steps, then follow a cosine down to 10% of peak.
# The run
Twilight trained on a single B200 in 4 hours 21 minutes, for about $28 of compute: 9.81B tokens over 116,396 steps.
The switch out of the bag phase is the moment that matters, and it went cleanly. Within 400 steps, held-out loss fell from 6.75 to 3.77, and it kept falling all the way to 3.17.
| step | loss |
|---|---|
| 1000 | 6.83 |
| 2000 | 6.49 |
| 3000 | 6.36 |
| 4000 | 6.33 |
| 5000 | 6.31 |
| 6000 | 6.35 |
| 7000 | 6.4 |
| 8000 | 6.44 |
| 9000 | 6.46 |
| 10000 | 6.57 |
| 11000 | 6.48 |
| 12000 | 6.57 |
| 13000 | 6.61 |
| 14000 | 6.77 |
| 15000 | 6.67 |
| 16000 | 6.73 |
| 17000 | 6.65 |
| 18000 | 6.68 |
| 19000 | 6.62 |
| 20000 | 6.69 |
| 21000 | 6.68 |
| 22000 | 6.76 |
| 23000 | 6.81 |
| 24000 | 6.77 |
| 25000 | 7.12 |
| 26000 | 6.85 |
| 27000 | 6.78 |
| 28000 | 6.68 |
| 29000 | 6.72 |
| 30000 | 6.8 |
| 31000 | 6.84 |
| 32000 | 6.74 |
| 33000 | 6.79 |
| 34000 | 6.82 |
| 35000 | 6.78 |
| 36000 | 6.74 |
| 37000 | 3.77 |
| 38000 | 3.65 |
| 39000 | 3.61 |
| 40000 | 3.57 |
| 41000 | 3.55 |
| 42000 | 3.53 |
| 43000 | 3.52 |
| 44000 | 3.5 |
| 45000 | 3.49 |
| 46000 | 3.49 |
| 47000 | 3.47 |
| 48000 | 3.45 |
| 49000 | 3.46 |
| 50000 | 3.45 |
| 51000 | 3.44 |
| 52000 | 3.42 |
| 53000 | 3.41 |
| 54000 | 3.41 |
| 55000 | 3.39 |
| 56000 | 3.39 |
| 57000 | 3.39 |
| 58000 | 3.37 |
| 59000 | 3.36 |
| 60000 | 3.36 |
| 61000 | 3.35 |
| 62000 | 3.34 |
| 63000 | 3.34 |
| 64000 | 3.33 |
| 65000 | 3.33 |
| 66000 | 3.34 |
| 67000 | 3.32 |
| 68000 | 3.33 |
| 69000 | 3.32 |
| 70000 | 3.31 |
| 71000 | 3.31 |
| 72000 | 3.3 |
| 73000 | 3.3 |
| 74000 | 3.29 |
| 75000 | 3.29 |
| 76000 | 3.28 |
| 77000 | 3.27 |
| 78000 | 3.27 |
| 79000 | 3.28 |
| 80000 | 3.27 |
| 81000 | 3.27 |
| 82000 | 3.27 |
| 83000 | 3.27 |
| 84000 | 3.26 |
| 85000 | 3.25 |
| 86000 | 3.25 |
| 87000 | 3.24 |
| 88000 | 3.24 |
| 89000 | 3.24 |
| 90000 | 3.24 |
| 91000 | 3.24 |
| 92000 | 3.23 |
| 93000 | 3.23 |
| 94000 | 3.23 |
| 95000 | 3.22 |
| 96000 | 3.22 |
| 97000 | 3.21 |
| 98000 | 3.21 |
| 99000 | 3.21 |
| 100000 | 3.2 |
| 101000 | 3.2 |
| 102000 | 3.2 |
| 103000 | 3.19 |
| 104000 | 3.19 |
| 105000 | 3.18 |
| 106000 | 3.18 |
| 107000 | 3.18 |
| 108000 | 3.18 |
| 109000 | 3.18 |
| 110000 | 3.17 |
| 111000 | 3.17 |
| 112000 | 3.17 |
| 113000 | 3.18 |
| 114000 | 3.18 |
| 115000 | 3.17 |
| 116000 | 3.17 |
| 116396 | 3.17 |
Shaded: the bag phase (TST), where next-token loss isn't comparable. Final loss: 3.17.
# Results
Twilight beats GPT-2 (124M) on HellaSwag, ARC-Easy and ARC-Challenge, and ties it on PIQA. The widest margin is ARC-Easy: 51.4 to 43.8.
Both models were scored zero-shot on the full evaluation sets, with the same code.
| Twilight | GPT-2 | |
|---|---|---|
| HellaSwag | 32.1 | 31.2 |
| ARC-Easy | 51.4 | 43.8 |
| ARC-Challenge | 25.2 | 22.4 |
| PIQA | 62.9 | 62.9 |
Zero-shot accuracy, %. HellaSwag and ARC-Challenge are length-normalized. Same scorer for both models.
# How it writes
Twilight writes fluent, on-topic English. Prompted with “The heart is a muscle that”, it continues:
“The heart is a muscle that beats a slow, steady rhythm. The heart is a large organ that pumps blood around the body.”
Recalling facts reliably is where 135M parameters run out of room. That's what the bigger models are for.
# What's next
TST took Twilight through 9.8B tokens of text for the compute of 3.8B. Next we measure exactly what that buys: the same model on the same budget, trained without the bag phase.
Twilight's weights and code are public under Apache 2.0: download them here. Then the recipe scales up.