GLM · 2025-07 · Sparse MoE

GLM-4.5-Air

GLM-4.5-Air is a grouped-query attention (GQA) transformer released by GLM in 2025-07, with 46 layers, hidden size 4096 and a context window of 131,072 tokens.

Layer stack

Attention ×46 · Layers 46

Key facts

FamilyGLM
Released2025-07
Params107.7 B
Active13 B
Context131,072 tokens
AttentionGQA (96:8)
Layers46
Hidden4,096
Heads96
Vocab151,552
PositionRoPE
NormRMSNorm
Activationsilu
Dtypebf16
Architecture classGlm4MoeForCausalLM

Architecture overview

t₁ t₂ t₃ t₄ input tokens Embedding · Vocab 151,552 → Hidden 4,096 Q1 Q2 Q3 Qn KV1 KV2 KV3 KVn Heads 96 KV heads 8 head dim 128 · RoPE Router E1 E2 E3 E4 E5 E6 E7 E8 +120… Shared expert ×1 top-8 of 128 experts · ≈ 13B params active per token × 46 transformer block Attention Feed-forward / MoE RMSNorm pre-norm Final norm · RMSNorm LM head → Vocab 151,552 p p p → next token MTP ×1 → +1 future tokens Position RoPE Dtype BF16 Context 128K tok
Drawn from the shipped config.json · 46 layers / width 4,096 / context 131,072. Original diagram by this atlas.

Attention

grouped-query attention (GQA) — 96 q-heads / 8 kv-heads. RoPE θ=1,000,000.

Feed-forward / MoE

It is a sparse mixture-of-experts with 128 routed experts and top-8 routing; about 13B parameters are active per token.

The configuration ships 1 extra multi-token-prediction (MTP) layers used to accelerate decoding.

Field-level comparison

Compared against the previous model of the same lab; where none exists, against the structurally closest model. The ratio column is this model divided by the comparison model.

Full-field comparison vs predecessor GLM-4.5
ModelGLM-4.5-AirGLM-4.5Ratio
model_typeglm4_moeglm4_moe
architecturesGlm4MoeForCausalLMGlm4MoeForCausalLM
hidden_size40965120×0.800
num_hidden_layers4692×0.500
num_attention_heads9696≈1
num_key_value_heads88≈1
head_dim128128≈1
intermediate_size1094412288×0.891
hidden_actsilusilu
n_routed_experts128160×0.800
num_experts_per_tok88≈1
n_shared_experts11≈1
moe_intermediate_size14081536×0.917
rope_theta10000001000000≈1
max_position_embeddings131072131072≈1
rms_norm_eps0.000010.00001≈1
vocab_size151552151552≈1
torch_dtypebfloat16bfloat16
num_nextn_predict_layers11≈1
attention_biastruetrue
attention_dropout00
pad_token_id151329151329≈1
eos_token_id151329×1 + 151336×1 + 151338×1151329×1 + 151336×1 + 151338×1
partial_rotary_factor0.50.5≈1
initializer_range0.020.02≈1
norm_topk_probtruetrue

Most similar architectures

Similarity values range from 0 (no shared categorical features) to 1 (identical profiles).

Raw config fields

34 fields
architecturesGlm4MoeForCausalLM
attention_biastrue
attention_dropout0
pad_token_id151329
eos_token_id151329×1 + 151336×1 + 151338×1
head_dim128
hidden_actsilu
hidden_size4096
partial_rotary_factor0.5
initializer_range0.02
intermediate_size10944
max_position_embeddings131072
model_typeglm4_moe
moe_intermediate_size1408
norm_topk_probtrue
num_attention_heads96
n_group1
topk_group1
n_routed_experts128
n_shared_experts1
routed_scaling_factor1
num_experts_per_tok8
first_k_dense_replace1
num_hidden_layers46
num_key_value_heads8
rms_norm_eps0.00001
rope_theta1000000
num_nextn_predict_layers1
tie_word_embeddingsfalse
torch_dtypebfloat16
transformers_version4.54.0
use_cachetrue
use_qk_normfalse
vocab_size151552