Views
No views yet
| Size | Parameters | Layers | Model Dim | Heads | Original Model |
|---|---|---|---|---|---|
| 14M | 14M | 6 | 128 | 4 | pythia-14m |
| 31M | 31M | 6 | 256 | 8 | pythia-31m |
| 70M | 70M | 6 | 512 | 8 | pythia-70m |
| 160M | 160M | 12 | 768 | 12 | pythia-160m |
| 410M | 410M | 24 | 1024 | 16 | pythia-410m |
pythia-{size}m - Original Pythia model (seed 1234)pythia-{size}m-seed{1-9} - PolyPythias variants with different random seedspythia-160m-data-seed{1-3} - 160M models with only data ordering varied (weight init fixed)pythia-160m-weight-seed{1-3} - 160M models with only weight initialization varied (data order fixed)1from transformers import GPTNeoXForCausalLM, AutoTokenizer
2
3# Load the final checkpoint
4model = GPTNeoXForCausalLM.from_pretrained("EleutherAI/pythia-70m-seed3")
5tokenizer = AutoTokenizer.from_pretrained("EleutherAI/pythia-70m-seed3")
6
7# Generate text
8inputs = tokenizer("The quick brown fox", return_tensors="pt")
9outputs = model.generate(**inputs, max_new_tokens=20)
10print(tokenizer.decode(outputs[0]))| Checkpoint | Training Tokens | Description |
|---|---|---|
step0 | 0 | Initialization (before training) |
step1, step2, step4, ..., step512 | 2M - 1B | 10 log-spaced early checkpoints |
step1000, step2000, ..., step143000 | 2B - 300B | 143 evenly-spaced checkpoints |
1model = GPTNeoXForCausalLM.from_pretrained(
2 "EleutherAI/pythia-70m-seed3",
3 revision="step50000", # Any checkpoint step
4).idx files for seeds 0-9 used with MMapIndexedDataset to load the memory-mapped Pile data in the correct order for each seed.pile-preshuffled-seeds:
1# Using huggingface_hub
2from huggingface_hub import snapshot_download
3snapshot_download(
4 repo_id="EleutherAI/pile-preshuffled-seeds",
5 repo_type="dataset",
6 allow_patterns="seed3/*", # Download only seed3
7 local_dir="./pile-seeds"
8)MMapIndexedDataset:
1from dataset import MMapIndexedDataset
2dataset = MMapIndexedDataset(path_prefix, skip_warmup=True)1@inproceedings{vanderwal2025polypythias,
2 title={PolyPythias: Stability and Outliers across Fifty Language Model Pre-Training Runs},
3 author={van der Wal, Oskar and Lesci, Pietro and Muller-Eberstein, Max and Saphra, Naomi and Schoelkopf, Hailey and Zuidema, Willem and Biderman, Stella},
4 booktitle={International Conference on Learning Representations},
5 year={2025},
6 url={https://arxiv.org/abs/2503.09543}
7}