# 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.

- URL: https://dmxsf.com/en/blog/qwen25-technical-report/
- [DMXSF](https://dmxsf.com/en/about/)
- Published: 2024-12-29
- Updated: 2026-11-13
- Paper notes
- Paper: [Qwen2.5 Technical Report](https://arxiv.org/abs/2412.15115) ( Qwen,  :, An Yang, et al. · arXiv, 2024)

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.

```python
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")
```

```text
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

- [Qwen2.5 Technical Report](https://arxiv.org/abs/2412.15115)
- [Qwen3 technical report](https://dmxsf.com/en/blog/qwen3-technical-report/)
- [The LLM training pipeline](https://dmxsf.com/en/wiki/pretraining/training-pipeline/)

## 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.
