upcycle_dense5000_e32top8_noaux_rewarm200
Research checkpoints of a naively upcycled Mixture-of-Experts model, released to study whether identical experts can differentiate. The dense model JIRU-W/dense_e1_seq2048_gbs128_10b at step 5000 was copied into a 32-expert top-8 MoE and training continued, without any load-balancing loss. The run was stopped at step 15821 of the planned 38,139 (not trained to completion). Small research model, not instruction-tuned.
Upcycling (upcycle_dense.py, upcycle_meta.json)
- every expert of every layer = an exact copy of that layer's dense SwiGLU MLP (intermediate size 1024)
- router freshly initialised, normal(0, 0.02), seed 1234;
norm_topk_prob=True, so at step 5000 the MoE computes exactly the dense function - embeddings, attention, norms, lm_head copied unchanged; no noise, no partial re-init
- 32 experts, top-8, 3,696,887,808 parameters;
router_aux_loss_coef=0
Training after upcycling
| data | JIRU-W/olmoe-mix-0924-10b, continuing the dense run's data order from step 5000 (np.random.default_rng(1234).permutation(4881809), 128 samples / step) |
| batch | 128 × 2048 = 262,144 tokens / step |
| optimizer | AdamW with fresh state, weight decay 0.1; LR continues the dense run's cosine schedule (peak 8e-4, 200 warmup, decay to 8e-5 at step 38,139) and is additionally re-warmed linearly from 0 over the first 200 steps after step 5000 |
| load-balancing loss | none |
| precision | bf16 weights, fp32 gradient accumulation, DeepSpeed ZeRO-2, 1 GPU, seed 1234 |
Revisions
main: latest HF checkpoint, step 15000init: the upcycled model before any MoE training (step 5000)step<N>: HF checkpoints (dense every 10 steps right after upcycling, then every 100, then every 1000)ds_step15500: DeepSpeed ZeRO-2 checkpoint with optimizer state at step 15500 (resumable; DeepSpeed >= 0.19.6), plusrun_config.json,train_log.jsonland the DeepSpeed config
Step numbers count from the start of the dense run. Eval CE = mean token cross-entropy on 256 held-out 2048-token sequences ("—" = not evaluated at that step).
| revision | tokens seen (incl. dense phase) | eval CE |
|---|---|---|
step5010 | 1.31B | — |
step5020 | 1.32B | — |
step5030 | 1.32B | — |
step5040 | 1.32B | — |
step5050 | 1.32B | — |
step5060 | 1.33B | — |
step5070 | 1.33B | — |
step5080 | 1.33B | — |
step5090 | 1.33B | — |
step5100 | 1.34B | — |
step5200 | 1.36B | — |
step5300 | 1.39B | — |
step5400 | 1.42B | — |
step5500 | 1.44B | 3.3556 |
step5600 | 1.47B | — |
step5700 | 1.49B | — |
step5800 | 1.52B | — |
step5900 | 1.55B | — |
step6000 | 1.57B | 3.3210 |
step6100 | 1.60B | — |
step6200 | 1.63B | — |
step6300 | 1.65B | — |
step6400 | 1.68B | — |
step6500 | 1.70B | 3.2900 |
step6600 | 1.73B | — |
step6700 | 1.76B | — |
step6800 | 1.78B | — |
step6900 | 1.81B | — |
step7000 | 1.84B | 3.2643 |
step8000 | 2.10B | 3.2179 |
step9000 | 2.36B | 3.1805 |
step10000 | 2.62B | 3.1526 |
step11000 | 2.88B | 3.1258 |
step12000 | 3.15B | 3.1010 |
step13000 | 3.41B | 3.0805 |
step14000 | 3.67B | 3.0607 |
step15000 | 3.93B | 3.0437 |
Usage
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "JIRU-W/upcycle_dense5000_e32top8_noaux_rewarm200"
tok = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(repo, revision="step6000", trust_remote_code=True, dtype=torch.bfloat16)
out = model(**tok("Hello", return_tensors="pt"), output_router_logits=True) # per-layer router logits in out.router_logits