Download pretrain/README.md from hybrid-diff-ar/olmo2-checkpoints: direct link, hf CLI and curl.
- Browser
- Download file 4.39 kB
-
https://huggingface.co/hybrid-diff-ar/olmo2-checkpoints/resolve/main/pretrain/README.md
- Command line
-
hf download hf://hybrid-diff-ar/olmo2-checkpoints/pretrain/README.md
-
curl -L -o README.md https://huggingface.co/hybrid-diff-ar/olmo2-checkpoints/resolve/main/pretrain/README.md
OLMo2 pretraining checkpoints: pass@k (k=1, k=4 and k=16), 190M and 600M
OLMo2 models pretrained from scratch with the standard OLMo2 ladder recipe for 10× Chinchilla, at two sizes. At each size the three runs are identical except for the training objective:
- k=1 (
olmo2-<size>-10xC-k1): the usual next-token cross-entropy,-log p. - k=4 (
olmo2-<size>-10xC-k4): the per-token pass@k loss-log(1 - (1-p)^k)with k=4, wherepis the model's probability of the correct next token. - k=16 (
olmo2-<size>-10xC-k16): the same pass@k loss with k=16.
Same data, data order, initialization and hyperparameters within each size.
Layout
pretrain/
olmo2-190M-10xC-k1/
step72615-hf/ final model, Hugging Face transformers format (bf16 safetensors + tokenizer)
step72615/ final model, OLMo-core distributed checkpoint (fp32 weights + AdamW state + trainer state)
step72000[-hf]/ step70000[-hf]/ step65000[-hf]/ step60000[-hf]/ earlier checkpoints, same two formats
olmo2-190M-10xC-k4/ (same)
olmo2-190M-10xC-k16/ (same)
olmo2-600M-10xC-k1/
step113942-hf/ final model, Hugging Face transformers format
step113942/ final model, OLMo-core distributed checkpoint
step113000[-hf]/ step110000[-hf]/ step105000[-hf]/ step100000[-hf]/ earlier checkpoints
olmo2-600M-10xC-k4/ (same)
olmo2-600M-10xC-k16/ (same)
Step 72615 (190M) and step 113942 (600M) are the end of training. Only the last checkpoints of each
run were kept. Every -hf export was checked against its OLMo-core checkpoint: both models give the
same outputs.
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "hybrid-diff-ar/olmo2-checkpoints"
sub = "pretrain/olmo2-600M-10xC-k16/step113942-hf"
tokenizer = AutoTokenizer.from_pretrained(repo, subfolder=sub)
model = AutoModelForCausalLM.from_pretrained(repo, subfolder=sub) # Olmo2ForCausalLM
The stepN/ directories are OLMo-core checkpoints. Use them to resume training or fine-tune with
OLMo-core, for example by passing one as the trainer's load_path. Their config.json holds the
full experiment config; the data and run paths in it refer to the cluster the models were trained on.
Models
| 190M | 600M | |
|---|---|---|
| architecture | OLMo2 (olmo2_190M): 12 layers, d_model 768, 12 heads, MLP 3072 |
OLMo2 (olmo2_600M): 16 layers, d_model 1344, 16 heads, MLP 5376 |
| common | SwiGLU, RMSNorm with QK-norm, RoPE θ=500k, untied embeddings | (same) |
| parameters | 267.4M total, 190.4M non-embedding | 732.3M total, 597.4M non-embedding |
| tokenizer | allenai/dolma2-tokenizer (vocab 100,278; embeddings padded to 100,352 in the OLMo-core checkpoints) |
(same) |
| context length | 2048 | 2048 |
Training
| 190M | 600M | |
|---|---|---|
| data | hybrid-diff-ar/olmo-data-50B, a source-proportional subset of OLMoE-mix-0824 (dolma2-tokenized), with the OLMo2 repetition instance filter |
hybrid-diff-ar/olmo-data-160B, the same kind of subset at 160B tokens, same filter |
| tokens | 38,070,835,200 (10 × 20 × 190.4M non-embedding params), 72,615 steps | 119,476,492,800 (10 × 20 × 597.4M), 113,942 steps |
| batch | 256 × 2048 = 524,288 tokens | 512 × 2048 = 1,048,576 tokens |
| optimizer | AdamW, lr 3.89e-3, betas (0.9, 0.95), weight decay 0.1 (none on embeddings), grad clip 1.0 | AdamW, lr 2.66e-3, otherwise the same |
| schedule | cosine, 363 warmup steps, decaying to 0.1 × lr | cosine, 570 warmup steps, decaying to 0.1 × lr |
| precision | bf16 params, fp32 reduce (HSDP); 8 × H200 for k=1 and k=16, 8 × H100 for k=4 | bf16 params, fp32 reduce (HSDP); 8 × H200 |
| seeds | init 2352, data 34521 | init 2352, data 34521 |
Final validation (c4_en, v3-small validation mix)
| run | CE loss (= pass@1 loss) | pass@4 loss | pass@16 loss |
|---|---|---|---|
| 190M k=1 | 3.339 | 2.314 | 1.527 |
| 190M k=4 | 3.380 | 2.281 | 1.465 |
| 190M k=16 | 3.546 | 2.345 | 1.427 |
| 600M k=1 | 3.000 | 2.028 | 1.307 |
| 600M k=4 | 3.047 | 1.992 | 1.243 |
| 600M k=16 | 3.244 | 2.065 | 1.202 |
Training with pass@k gives up some cross-entropy and gets a lower pass@k loss in return; at both sizes each model is the best of the three at the k it was trained with.