Paper notes

Qwen2.5: 18T tokens, a broad model family and a practical post-training recipe

Qwen2.5 scales pretraining to 18T tokens across dense models from 0.5B to 72B plus MoE variants. The report covers data filtering, long context, large-scale SFT, offline DPO and online GRPO.

Published Updated 2 min read

On this page
  1. How it works
  2. What the evidence shows
  3. A reproducible check
  4. Limitations and common misreadings
  5. The key takeaway
  6. Further reading
  7. FAQ

Qwen2.5 is Alibaba’s 2024 family spanning dense open-weight models from 0.5B to 72B, MoE variants, and specialized code and math models. Pretraining grows to 18T tokens with an emphasis on knowledge, reasoning and long documents.

How it works

Qwen2-Instruct filters data quality while math, code and knowledge data are expanded. The architecture uses RoPE, SwiGLU, RMSNorm and QKV bias. Post-training combines SFT on over a million examples, offline DPO and online GRPO; long-context training proceeds in stages with YARN and DCA for longer inputs.

What the evidence shows

The report places Qwen2.5-72B competitively against larger open models and gives small deployments many options. Licenses and context configurations vary by checkpoint, and benchmark comparisons remain sensitive to evaluation protocols.

A reproducible check

This snippet checks a public formula or configuration; it does not reproduce full training.

sizes_b = [0.5, 1.5, 3, 7, 14, 32, 72]
tokens = 18e12
print("dense sizes:", sizes_b)
for n in (7, 72):
    print(f"{n}B: {tokens / (n * 1e9):.1f} tokens per parameter")
dense sizes: [0.5, 1.5, 3, 7, 14, 32, 72]
7B: 2571.4 tokens per parameter
72B: 250.0 tokens per parameter

The arithmetic is reproducible, but model quality still depends on the full experiments in the paper.

Limitations and common misreadings

Eighteen trillion tokens measures training exposure, not unique web pages. A long context window does not guarantee reliable use of its middle, and proprietary or MoE variants should not be conflated with dense open-weight checkpoints.

The key takeaway

Its contribution is a coherent model matrix and engineering recipe: data quality, size coverage, context extension and multi-stage post-training matter together.

Further reading

FAQ

How many tokens trained Qwen2.5?
The report states 18T tokens, with automated quality filtering and expanded math, code and knowledge data.
What are the post-training stages?
Large-scale SFT is followed by offline DPO and online GRPO.
Do all Qwen2.5 models use the same license?
No. Check each model card because openness and license conditions differ across sizes and variants.