Training

Pinned sources GLM‑5.3 model card (zai‑org/GLM‑5.3 @ ba32f8c) · for GLM‑5, its report (arXiv 2602.15763v2) · no training code is published

  1. GLM-5, February 2026, earlier release 12 stages
  2. Start of training
  3. Pre‑training, generalweb data18T4KNTPMTPWhat trains: all3 shared MTP layers
  4. Pre‑training, code and reasoningcode, mathematics, science9T4KNTPMTPWhat trains: all
  5. Mid‑training 32Klong code and reasoning1T32KNTPWhat trains: all
  6. Mid‑training 128Klong context and agent data500B128KNTPWhat trains: all
  7. Mid‑training 200Kthe longest documents50B200KNTPWhat trains: all
  8. Base model, dense attention
  9. DSA warm‑up1,000 steps≈ 2.8B202,752KLto main attentionWhat trains: indexer+ indexer
  10. Sparse adaptationmid-training’s data20B200KLMKLselected positionsWhat trains: allsparse
  11. GLM-5 base model
  12. SFTchat, reasoning, agentsnot stated202,752SFTnot statednot stated: tokens, what trains
  13. Reasoning RLfour domainsnot statednot statedGRPO+ IcePopWhat trains: not indexernot stated: tokens, context
  14. Agentic RLasynchronousnot statednot statedGRPOWhat trains: not indexernot stated: tokens, context
  15. General RLhuman-style alignmentnot statednot statedGRPOWhat trains: not indexernot stated: tokens, context
  16. On‑policy distillationacross stagesnot statednot statedOPDnot statednot stated: tokens, context, what trains
  17. GLM-5
  18. Whether GLM-5.2’s base continues GLM-5: not stated
  19. GLM-5.2’s base model
  20. Post‑trainingnot statednot statednot statednot statednot stated: tokens, context, objective, what trains
  21. GLM-5.3
  • tokens, log scale
  • derived: computed from stated numbers
  • NTPdashed: concluded, no source names it
  • not stated by the sources
  • the architecture changes
  • checkpoint
  • checkpoint, weights published
  • a join the sources leave unexplained

Reasoning RL

×

Stage · GLM-5

GRPO with IcePop, fully on-policy, on mathematics, science, code and tool-integrated reasoning, each with binary outcome rewards from its own judges.

GRPO, group relative policy optimization

For each prompt the model writes a group of answers; each is scored and compared with the group’s mean, and the model is moved toward the answers above it, by a step clipped near the policy that wrote them and with a penalty for leaving a reference model.

J=1G∑i=1G(min⁡(wiAi, wˉiAi)−βDi)wˉi=clip⁡(wi, 1−ε, 1+ε)\begin{aligned}J&=\frac1G\sum_{i=1}^{G}\Big(\min\big(w_iA_i,\ \bar w_iA_i\big)-\beta D_i\Big)\\\bar w_i&=\operatorname{clip}(w_i,\,1-\varepsilon,\,1+\varepsilon)\end{aligned}

DeepSeek-R1 paper, eq. 1 to 3, and DeepSeek-V3 report, eq. 26 to 28; for one prompt, in the atlas’s letters w, w̄, D

What the letters mean

wiw_i: answer ii’s probability under the model being trained over its probability under the policy that wrote it; AiA_i: its reward less the group’s mean, over the group’s standard deviation; DiD_i: a KL penalty to the reference model; GG: the group size; ε\varepsilon, β\beta: hyper-parameters. Maximized.

The GLM-5 report writes its own objective (eq. 1, p. 11): GRPO’s clipped ratio and group-normalized advantage, averaged per token, each token kept only if its training-to-inference ratio lies in [1/β,β][1/\beta,\beta] with IcePop’s β=2\beta=2 (not the KL weight of the equation above, which the report removes); ε\varepsilon is 0.2 below and 0.28 above.

Hyper-parameters
group 32, batch 32, on-policy
Undisclosed settings 2

Not disclosed Steps · Learning rate

Why

The indexer’s top-k is to sparse attention what routing is to experts: the training and inference engines must select alike. A deterministic top-k operator resolved the mismatch; non-deterministic ones degraded RL drastically after a few steps. GLM-5 report §3.2, p. 12

What the terms meanSparse attention
Sparse attention
Each query attends only to a subset of the earlier positions, picked by an indexer, which keeps attention over a long context affordable.
All settings5
Algorithm
GRPO with IcePop: tokens whose ratio of the training to the inference policy’s probability leaves [1/β, β] are dropped; no KL term; the clip asymmetric (eq. 1)
Hyper-parameters
β = 2, ε_low = 0.2, ε_high = 0.28; entirely on-policy, a group size of 32 and a batch size of 32
Data
Mathematics, science, code and tool-integrated reasoning, in roughly equal shares; for mathematics and science, problems GLM-4.7 rarely solves but stronger teachers can
Rewards
Binary outcome rewards from judge models or evaluation systems specific to each domain and source
Indexer
Frozen by default throughout the RL stages, its top-k by the deterministic torch.topk; non-deterministic top-k operators degraded RL drastically within a few steps
Sources2