upcycle_dense10000_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 10000 was copied into a 32-expert top-8 MoE and training continued, without any load-balancing loss. The run was stopped at step 14594 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 10000 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 10000 (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 10000 |
| load-balancing loss | none |
| precision | bf16 weights, fp32 gradient accumulation, DeepSpeed ZeRO-2, 1 GPU, seed 1234 |
Revisions
main: latest HF checkpoint, step 14000init: the upcycled model before any MoE training (step 10000)step<N>: HF checkpoints (dense every 10 steps right after upcycling, then every 100, then every 1000)ds_step14500: DeepSpeed ZeRO-2 checkpoint with optimizer state at step 14500 (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 |
|---|---|---|
step10010 | 2.62B | — |
step10020 | 2.63B | — |
step10030 | 2.63B | — |
step10040 | 2.63B | — |
step10050 | 2.63B | — |
step10060 | 2.64B | — |
step10070 | 2.64B | — |
step10080 | 2.64B | — |
step10090 | 2.65B | — |
step10100 | 2.65B | — |
step10200 | 2.67B | — |
step10300 | 2.70B | — |
step10400 | 2.73B | — |
step10500 | 2.75B | 3.2349 |
step10600 | 2.78B | — |
step10700 | 2.80B | — |
step10800 | 2.83B | — |
step10900 | 2.86B | — |
step11000 | 2.88B | 3.2160 |
step11100 | 2.91B | — |
step11200 | 2.94B | — |
step11300 | 2.96B | — |
step11400 | 2.99B | — |
step11500 | 3.01B | 3.1971 |
step11600 | 3.04B | — |
step11700 | 3.07B | — |
step11800 | 3.09B | — |
step11900 | 3.12B | — |
step12000 | 3.15B | 3.1776 |
step13000 | 3.41B | 3.1476 |
step14000 | 3.67B | 3.1194 |
Usage
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "JIRU-W/upcycle_dense10000_e32top8_noaux_rewarm200"
tok = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(repo, revision="step10700", 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