SWA-RetNet-v2-0.5B-Base

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

Validation metrics (4k context)

  • Held-out 4k CE mean: 2.6035 (en_edu 2.8440, zh_edu 2.8303, zh_hq 2.8007, math 1.9390).
  • 4k beyond-SWA two-arm context gain (512 vs 4096 on final 256 tokens): EN ฮ”_marginal = +0.0480, ZH ฮ”_marginal = +0.0332.

Chat model & code

Limitations

  • Base completion checkpoint (no instruction tuning).
  • Trained on 5.45B tokens at 0.5B scale; world knowledge and complex reasoning are limited accordingly.

Technical Reports

Downloads last month
170
Safetensors
Model size
0.5B params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Collection including Ayaka157/SWA-RetNet-v2-0.5B-Base