Prelude 9B mid-train, stage 5 (64K), dominant1 and dominant2
Intermediate checkpoints from mid-training the OpenEuroLLM Prelude 9B base. Two runs use the same recipe on top of two different pretraining cooldowns. Each one is a branch of this repo:
| branch | base cooldown | stage-5 step |
|---|---|---|
d1 (also main) | dominant1: prelude-9b-anneal300b-ml1-dominant1-iter0989075 (300B-token cooldown, more web text) | 13,984 |
d2 | dominant2: 300B-token cooldown with more reasoning data (mixture-vitae nuggets, Nemotron-Specialized, AgentTrove) | 13,984 |
d1-s4 | dominant1, stage 4 (128K, YaRN x2), before stage 5 | stage-4 step 1,001 |
d2-s4 | dominant2, stage 4 (128K, YaRN x2), before stage 5 | stage-4 step 1,001 |
from transformers import AutoModelForCausalLM, AutoTokenizer
rev = "d2" # or "d1", "d1-s4", "d2-s4"
repo = "marianna13/prelude-9b-midtrain-stage5-64k-step13984"
tok = AutoTokenizer.from_pretrained(repo, revision=rev)
model = AutoModelForCausalLM.from_pretrained(repo, revision=rev, torch_dtype="auto")
These are not final or post-trained models. Stage 5 runs at a constant LR (no decay), and no RL was done.
Training
| stage | context | what | tokens |
|---|---|---|---|
| 1–3 | 16K → 32K → 64K | RoPE theta 9M, one cosine schedule over 4,419 steps; mid-training documents, reasoning and code | ~3.6B |
| 4 | 128K | YaRN x2, LR 5e-6, 1,001 steps | 1.0B |
| 5 | 64K | continued training on long SFT-style conversations + documents, constant LR 2e-5, GBS 64 x 64K, 13,984 steps | 58.5B seen / 49.2B trained |
Stage-5 data:
- SFT v2 (37.7B): INTELLECT-3 reasoning / chat / tools, AgentTrove (terminal agent), several harnesses.
- New conversations (9.4B):
- OpenThoughts3 complete traces, at most 4 per prompt (2.2B);
- extra INTELLECT-3 traces: math 2.5B, code 1.5B, science 1.0B;
- Dolci-Think / Instruct translated into 12 languages (2.1B).
- Unused mid-training documents (11.5B):
- long documents of 32K tokens or more (5.4B);
- replay at 4K or less (2.1B);
- Nemotron-Terminal trajectories of 8K or more (4.0B).
- Loop-scanned and decontaminated.
Training ran on 64 JUPITER nodes with Megatron-LM (TP4), then the checkpoint was exported to HF.
megatron_export.json in each branch records the source checkpoint.
The tokenizer adds 6 ChatML tokens to the Prelude base tokenizer. The chat template supports thinking on (a
<think>...</think> block) and thinking off.
Evaluation
Neither model is post-trained.
Decoding:
- Thinking on: T=0.6, top-p 0.95, 32K tokens.
- Thinking off: greedy.
| benchmark | d1 | d2 |
|---|---|---|
| Base few-shot (4K) | ||
| MATH (4-shot) | 49.0 | 50.7 |
| GSM8K (8-shot) | 79.7 | 81.0 |
| MMLU-Pro (5-shot) | 41.1 | 42.3 |
| HumanEval+ | 47.0 | 47.6 |
MBPP+ (run-on cut at \nFile:) | 56.6 | 56.1 |
| MultiPL-E | 30.2 | 31.4 |
| Chat, thinking on | ||
| AIME24 | 52.0 | 49.7 |
| AIME25 | 44.7 | 30.0 |
| MATH500 | 83.8 | 84.2 |
| GPQA-Diamond | 49.8 | 52.0 |
| IFEval (prompt) | 78.2 | 77.6 |
| HumanEval+ | 80.5 | 78.7 |
| MultiPL-E (10 languages) | 45.7 | 50.8 |
| Chat, thinking off | ||
| AIME24 / AIME25 | 21.7 / 14.3 | 10.0 / 5.3 |
| MATH500 | 68.0 | 65.0 |
| GPQA-Diamond | 42.6 | 36.9 |
| IFEval (prompt) | 76.8 | 76.2 |
| HumanEval+ | 63.4 | 70.1 |
| Agentic, thinking on (pass@1, mean of 3) | ||
| SWE-bench Verified (100 tasks) | 18.7 | 22.7 |
| Terminal-Bench 2.1 (89 tasks) | 1.5 | 3.0 |
| TBLite (100 tasks) | 5.3 | 7.7 |
Stage-4 branches (d1-s4, d2-s4)
The end of context-length extension (stages 1–4), i.e. the starting point of stage 5: 128K context with YaRN factor 2 (original 64K, RoPE theta 9M), 1,001 steps at LR 5e-6. Same tokenizer and chat template. Selected results (same decoding as above):
| benchmark | d1 s4 | d2 s4 |
|---|---|---|
| MATH (4-shot) | 45.6 | 48.0 |
| GSM8K (8-shot) | 77.9 | 79.5 |
| MMLU-Pro (5-shot) | 40.6 | 43.3 |
| AIME24 / AIME25, thinking on | 15.7 / 12.7 | 31.0 / 24.0 |
| MATH500, thinking on | 68.4 | 77.2 |
| GPQA-Diamond, thinking on | 32.8 | 34.8 |
| IFEval (prompt), thinking on | 71.6 | 64.6 |
| RULER 128K mean, plain / ChatML | 52.9 / 36.7 | 50.4 / 45.0 |
Known issues
- Math loops with thinking on. On AIME, stage 5 falls into exact repetition in a few percent of samples (d2: 2.7% on AIME24, 5.3% on AIME25), each using the whole 32K budget. This comes with OpenThoughts3's reasoning style ("Wait, ..." loops).
- Run-on in base code few-shot. Base completions run on into repository-style documents (
File: ...). Cut at\nFile:before grading. - Thinking-off math is weak, much weaker than thinking on.
- Constant LR. The stage was not decayed, so a short decay is expected to raise scores. Stage 6 decays to 1e-6.
License
Apache-2.0, as the base model.