← MIC coverage of Transformers model types

zai-org/GLM-4-9B-0414

huggingface-mic/GLM-4-9B-0414-mic@140a76e1cd70 ← zai-org/GLM-4-9B-0414@645b8482494e · Glm4ForCausalLM · random weights

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

Original9.4Bparameters
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 · 40
Fixture · 2
KindOriginalFixture
DecoderLayer402✓ 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.layers8.2B86.8%74.5K0.4%
model.embed_tokens620.8M6.6%9.7M49.8%
lm_head620.8M6.6%9.7M49.8%
model.norm4.1K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (32 heads, 2 KV)GQA (4 heads, 2 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typeglm4glm4✓ kept
modelvocab_size151552151552✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings3276832768✓ kept

Module classes

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

ClassOriginalFixture
Linear24113
RMSNorm1619
Attention402
DecoderLayer402
MLP402
SiLUActivation402
Embedding11
ForCausalLM11
Model11
RotaryEmbedding11
ModuleList11

Config changes

5 fields changed, 23 unchanged.

FieldOriginalFixture
head_dim12816
hidden_size409664
intermediate_size13696128
num_attention_heads324
num_hidden_layers402