← MIC coverage of Transformers model types

zai-org/GLM-4.7-Flash

huggingface-mic/GLM-4.7-Flash-mic@8b4c9af3fc9e ← zai-org/GLM-4.7-Flash@7dd20894a642 · Glm4MoeLiteForCausalLM · random weights

CI: no failure on main in 30 days · MIC failures dashboard

Original29.9Bparameters
Fixture19.9Mparameters
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 · 47
Fixture · 2
KindOriginalFixture
no Experts11✓ kept
Experts, MoE, TopkRouter461✓ 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
ComponentOriginalShareFixtureShare
model.layers29.3B97.9%76.4K0.4%
model.embed_tokens317.2M1.1%9.9M49.8%
lm_head317.2M1.1%9.9M49.8%
model.norm2.0K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleMHA (20 heads, 20 KV)MHA (4 heads, 4 KV)✓ kept
modelMoE routingtop-4 of 64 expertstop-2 of 4 experts✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typeglm4_moe_liteglm4_moe_lite✓ kept
modelvocab_size154880154880✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings202752202752✓ kept

Module classes

Instances of each class in the built model (prefix Glm4MoeLite omitted).

ClassOriginalFixture
Linear37717
RMSNorm1899
SiLUActivation933
Attention472
DecoderLayer472
MLP472
Experts461
MoE461
TopkRouter461
Embedding11
ForCausalLM11
Model11
RotaryEmbedding11
ModuleList11

Config changes

14 fields changed, 34 unchanged.

FieldOriginalFixture
hidden_size204864
intermediate_size10240128
kv_lora_rank51216
mlp_layer_types47 entries: 46× sparse, 1× dense["dense", "sparse"]
moe_intermediate_size153632
n_routed_experts644
num_attention_heads204
num_experts_per_tok42
num_hidden_layers472
num_key_value_heads204
q_lora_rank76816
qk_nope_head_dim19216
qk_rope_head_dim648
v_head_dim25616