e32_top8_seq2048_gbs128_10b
A 3.7B-parameter (total) Mixture-of-Experts language model trained from scratch on 10B tokens, released with its intermediate checkpoints for research on how experts form and differentiate during pretraining. It is a small research model, not instruction-tuned and not intended for downstream use.
Architecture
OLMoE architecture (code copied from transformers v5.20.1 olmoe, class names renamed to MaskMoe*, model math unchanged),
shipped as custom code (modeling_mask_moe.py, configuration_mask_moe.py).
| layers | 16 |
| hidden size | 2048 |
| attention heads | 16 (no GQA), QK-norm, RoPE θ=10000 |
| experts per layer | 32, SwiGLU, expert intermediate size 1024 |
| experts per token | top-8, norm_topk_prob=False |
| vocab | 50304 (OLMoE tokenizer allenai/OLMoE-1B-7B-0924) |
| total parameters | 3,696,887,808 |
Training
| data | JIRU-W/olmoe-mix-0924-10b: 10.0B tokens sampled from allenai/OLMoE-mix-0924 (arXiv taken from EleutherAI/proof-pile-2); by token: DCLM 94.9%, StarCoder 2.5%, peS2o 1.4%, arXiv 0.5%, OpenWebMath 0.3%, Algebraic-Stack 0.3%, Wikipedia 0.1% |
| steps | 38,139 (one pass) |
| batch | 128 sequences × 2048 tokens = 262,144 tokens / step |
| optimizer | AdamW, lr 6e-4, 200 warmup steps, cosine decay to 6e-5, weight decay 0.1 |
| load-balancing loss | coefficient 0.01, standard HF OLMoE/Mixtral form (router statistics pooled over all layers) |
| precision | bf16 weights, fp32 gradient accumulation, DeepSpeed ZeRO-2, 1 GPU |
| seed | 1234 |
| data order | sample order np.random.default_rng(1234).permutation(4881809) (see the dataset card) |
Checkpoints
main holds the final checkpoint (step 38139). Every other checkpoint is a branch named step<N>.
Eval CE = mean token cross-entropy on 256 held-out 2048-token sequences from the same data mixture.
| revision | tokens seen | eval CE |
|---|---|---|
step5000 | 1.31B | 3.2235 |
step6000 | 1.57B | 3.1783 |
step7000 | 1.84B | 3.1423 |
step9000 | 2.36B | 3.0848 |
step10000 | 2.62B | 3.0630 |
step11000 | 2.88B | 3.0404 |
step12000 | 3.15B | 3.0214 |
step13000 | 3.41B | 3.0056 |
step14000 | 3.67B | 2.9871 |
step15000 | 3.93B | 2.9721 |
step16000 | 4.19B | 2.9566 |
step17000 | 4.46B | 2.9403 |
step18000 | 4.72B | 2.9277 |
step19000 | 4.98B | 2.9162 |
step20000 | 5.24B | 2.9028 |
step21000 | 5.51B | 2.8890 |
step22000 | 5.77B | 2.8746 |
step23000 | 6.03B | 2.8619 |
step24000 | 6.29B | 2.8508 |
step25000 | 6.55B | 2.8400 |
step26000 | 6.82B | 2.8284 |
step27000 | 7.08B | 2.8171 |
step28000 | 7.34B | 2.8086 |
step29000 | 7.60B | 2.7983 |
step30000 | 7.86B | 2.7889 |
step31000 | 8.13B | 2.7809 |
step32000 | 8.39B | 2.7730 |
step33000 | 8.65B | 2.7669 |
step34000 | 8.91B | 2.7608 |
step35000 | 9.18B | 2.7555 |
step36000 | 9.44B | 2.7505 |
step37000 | 9.70B | 2.7473 |
step38000 | 9.96B | 2.7436 |
step38139 | 10.00B | 2.7437 |
Early checkpoints from a replay run (replay-step<N>)
The original run kept HF weights only from step 5000 on. Steps 100–4400 (every 100) come from a replay: a second run
with the identical config, seed, initial weights and data order, stopped at step 4411. It is not bit-identical to the
original run (GPU non-determinism): step-1 loss is identical, train CE differs by up to 0.1 around the step-200 loss spike
and by ~0.002 afterwards, and eval CE agrees to within 0.002 (e.g. step 4250: 3.2697 original vs 3.2693 replay).
Treat them as an equivalent trajectory, not as the exact ancestors of step5000. Eval CE below is from the replay run
(evaluated every 250 steps; "—" = not evaluated at that step).
| revision | tokens seen | eval CE |
|---|---|---|
replay-step100 | 0.026B | — |
replay-step200 | 0.052B | — |
replay-step300 | 0.079B | — |
replay-step400 | 0.105B | — |
replay-step500 | 0.131B | 4.2199 |
replay-step600 | 0.157B | — |
replay-step700 | 0.184B | — |
replay-step800 | 0.210B | — |
replay-step900 | 0.236B | — |
replay-step1000 | 0.262B | 3.7841 |
replay-step1100 | 0.288B | — |
replay-step1200 | 0.315B | — |
replay-step1300 | 0.341B | — |
replay-step1400 | 0.367B | — |
replay-step1500 | 0.393B | 3.6055 |
replay-step1600 | 0.419B | — |
replay-step1700 | 0.446B | — |
replay-step1800 | 0.472B | — |
replay-step1900 | 0.498B | — |
replay-step2000 | 0.524B | 3.4986 |
replay-step2100 | 0.551B | — |
replay-step2200 | 0.577B | — |
replay-step2300 | 0.603B | — |
replay-step2400 | 0.629B | — |
replay-step2500 | 0.655B | 3.4219 |
replay-step2600 | 0.682B | — |
replay-step2700 | 0.708B | — |
replay-step2800 | 0.734B | — |
replay-step2900 | 0.760B | — |
replay-step3000 | 0.786B | 3.3661 |
replay-step3100 | 0.813B | — |
replay-step3200 | 0.839B | — |
replay-step3300 | 0.865B | — |
replay-step3400 | 0.891B | — |
replay-step3500 | 0.918B | 3.3208 |
replay-step3600 | 0.944B | — |
replay-step3700 | 0.970B | — |
replay-step3800 | 0.996B | — |
replay-step3900 | 1.022B | — |
replay-step4000 | 1.049B | 3.2849 |
replay-step4100 | 1.075B | — |
replay-step4200 | 1.101B | — |
replay-step4300 | 1.127B | — |
replay-step4400 | 1.153B | — |
Usage
Requires transformers>=5.20.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "JIRU-W/e32_top8_seq2048_gbs128_10b"
tok = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(repo, trust_remote_code=True, dtype=torch.bfloat16) # final
early = AutoModelForCausalLM.from_pretrained(repo, revision="step5000", trust_remote_code=True, dtype=torch.bfloat16)
To get router logits, pass output_router_logits=True to the forward call.