RetNet-0.5B - from-scratch training line
Collection
From-scratch 0.5B RetNet (21.6 B tokens): epoch 1-3, repair v21.1, long-context v21.2, chat v21.3-chat, 16k/8k research exports. โข 18 items โข Updated
From-scratch 513M hybrid linear-recurrent base language model (4k context, O(1) inference memory) pretrained on 5.45B unique bilingual ZH+EN+math tokens.
| Spec | Value |
|---|---|
| Parameters | 513,081,852 (tied embeddings) |
| Architecture | 24 layers = 19 Multi-Scale Gated Delta-Retention + 5 Local SWA GQA ([4, 9, 14, 19, 23], W=512) |
| Width | d_model=1280, 10 heads (head_dim=128, kv_heads=2), SwiGLU 3200, depthwise conv k=4 |
| Vocabulary / Context | 32,768 bilingual BPE (tokenizer_32k.json) / 4,096 context |
| Pretraining tokens | 5,452,595,200 (42% EN edu, 24% ZH edu, 20% ZH HQ, 14% math) |
| Schedule | 2k WSD stable (18,000 steps, lr=6e-4) -> 4k cosine decay (+2,800 steps, 6e-4 -> 6e-5) |
| Precision | model.safetensors stored in fp32; load in bf16 for inference |
SHA256 (model.safetensors) |
8e4dcfe1cce0a91080195dc91f92b329353b8fb780f4c738d6469af263a64d4e |
en_edu 2.8440, zh_edu 2.8303, zh_hq 2.8007, math 1.9390).512 vs 4096 on final 256 tokens): EN ฮ_marginal = +0.0480, ZH ฮ_marginal = +0.0332.