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

General RL

×

Stage · GLM-5

RL for correctness, emotional intelligence and task-specific quality, rewarded by rules, outcome reward models and generative reward models, with human-written responses as anchors.

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.

§3.4 names no algorithm for General RL; the report’s RL backbone of §3.2, GRPO with IcePop and no KL term, is drawn, as a reading.

Human anchors
Expert human-written responses as stylistic and qualitative anchors
Undisclosed settings 2

Not disclosed Steps · Learning rate

Why

Optimizing on model-written responses alone converges to recognizably model-like text, verbose and formulaic; human-written responses pull the style back toward natural writing. GLM-5 report §3.4, p. 13

What the terms meanGenerative reward model
Generative reward model
A language model used as a judge: it writes an assessment of a response, here against rubrics, and gives a score or a verdict.
All settings5
Objectives
Foundational correctness, emotional intelligence and task-specific quality (writing, text processing, question answering, role-play, translation)
Rewards
Rule-based functions, outcome reward models and generative reward models, blended
Human anchors
Expert human-written responses as stylistic and qualitative anchors
RL backbone
The report’s RL algorithm, GRPO with IcePop (§3.2)derived§3.4 names no algorithm; §3.2’s backbone is drawn, as a reading.
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
Sources3