zai-org/GLM-4.5-Air
Original106.9Bparameters
Fixture19.5Mparameters
Layer stacks1compared
Findings0to review
✓ Same architecture, smaller
Every module class, layer kind and checked property of the original is in the fixture.
Layer stacks
One square per layer, colored by kind: the layer's module classes and type attributes. Hover a square for its index and kind.
model.layers
Original · 46
Fixture · 2
| Kind | Original | Fixture | |
|---|---|---|---|
| no Experts | 1 | 1 | ✓ kept |
| Experts, MoE, TopkRouter | 45 | 1 | ✓ kept |
Where the parameters are
Share of each model's parameters per component. Vocabulary and patch sizes are kept, so embeddings usually take a larger share of the fixture.
Original
Fixture
| Component | Original | Share | Fixture | Share |
|---|---|---|---|---|
| model.layers | 105.6B | 98.8% | 80.6K | 0.4% |
| lm_head | 620.8M | 0.6% | 9.7M | 49.8% |
| model.embed_tokens | 620.8M | 0.6% | 9.7M | 49.8% |
| model.norm | 4.1K | 0.0% | 64 | 0.0% |
Preserved properties
| Config | Property | Original | Fixture | |
|---|---|---|---|---|
| model | attention style | GQA (96 heads, 8 KV) | GQA (4 heads, 2 KV) | ✓ kept |
| model | MoE routing | top-8 of 128 experts | top-2 of 4 experts | ✓ kept |
| model | RoPE type | default | default | ✓ kept |
| model | model_type | glm4_moe | glm4_moe | ✓ kept |
| model | vocab_size | 151552 | 151552 | ✓ kept |
| model | tie_word_embeddings | False | False | ✓ kept |
| model | hidden_act | silu | silu | ✓ kept |
| model | max_position_embeddings | 131072 | 131072 | ✓ kept |
Module classes
Instances of each class in the built model (prefix Glm4Moe omitted).
| Class | Original | Fixture |
|---|---|---|
| Linear | 323 | 15 |
| RMSNorm | 93 | 5 |
| SiLUActivation | 91 | 3 |
| Attention | 46 | 2 |
| DecoderLayer | 46 | 2 |
| MLP | 46 | 2 |
| Experts | 45 | 1 |
| MoE | 45 | 1 |
| TopkRouter | 45 | 1 |
| Embedding | 1 | 1 |
| ForCausalLM | 1 | 1 |
| Model | 1 | 1 |
| RotaryEmbedding | 1 | 1 |
| ModuleList | 1 | 1 |
Config changes
9 fields changed, 31 unchanged.
| Field | Original | Fixture |
|---|---|---|
| head_dim | 128 | 16 |
| hidden_size | 4096 | 64 |
| intermediate_size | 10944 | 128 |
| moe_intermediate_size | 1408 | 32 |
| n_routed_experts | 128 | 4 |
| num_attention_heads | 96 | 4 |
| num_experts_per_tok | 8 | 2 |
| num_hidden_layers | 46 | 2 |
| num_key_value_heads | 8 | 2 |