Root Mean Square Norm: stable, no-bias normalization used pre-attention and pre-FFN throughout GLM-4.5.
Base RoPE inverse-frequency table used by GLM-4.5 attention.
Apply RoPE only to the first rope_dim channels of each head; leave the remaining channels position-free.
Normalize the query and key with RMSNorm before the dot product to stabilize attention logits.
Forward pass combining GQA, partial RoPE, and QK-norm before scaled dot-product attention.
SwiGLU FFN used in the dense prefix layer of GLM-4.5 (layers before the MoE blocks).
Group-restricted top-k routing: sigmoid scores, pick topk_group groups first, then top-k experts within those.
Always-on expert that processes every token, summed with the routed mixture, with a routed scaling factor.
Sparse MoE forward combining group-routed top-k, SwiGLU experts, shared expert, and routed_scaling_factor.
Multi-Token Prediction head used in GLM-4.5 to predict additional future tokens for speculative decoding.
Pre-norm GLM-4.5 block: RMSNorm, QK-norm attention with partial RoPE, residual, RMSNorm, dense-or-MoE FFN, residual.
Embedding plus stacked GLM-4.5 blocks (1 dense prefix layer, then MoE layers), final RMSNorm, lm_head logits.