← MIC coverage of Transformers model types

openbmb/MiniCPM3-4B

huggingface-mic/MiniCPM3-4B-mic@874f11d622cb ← openbmb/MiniCPM3-4B@d6b14ddaefdb · MiniCPM3ForCausalLM · random weights · built before the shrink rule (no recorded recipe)

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

Original4.1Bparameters
Fixture4.8Mparameters
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 · 62
Fixture · 2
KindOriginalFixture
DecoderLayer622✓ 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.layers3.9B95.4%70.0K1.5%
model.embed_tokens188.0M4.6%4.7M98.5%
model.norm2.6K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleMHA (40 heads, 40 KV)MHA (4 heads, 4 KV)✓ kept
modelRoPE typelongropelongrope✓ kept
modelmodel_typeminicpm3minicpm3✓ kept
modelvocab_size7344873448✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings3276832768✓ kept

Module classes

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

ClassOriginalFixture
Linear49717
RMSNorm2499
Attention622
DecoderLayer622
MLP622
SiLUActivation622
ForCausalLM11
Model11
RotaryEmbedding11
ScaledWordEmbedding11
ModuleList11

Config changes

12 fields changed, 28 unchanged.

FieldOriginalFixture
head_dim328
hidden_size256064
intermediate_size6400128
kv_lora_rank25616
num_attention_heads404
num_hidden_layers622
num_key_value_heads404
q_lora_rank76816
qk_nope_head_dim6416
qk_rope_head_dim328
rope_parameters{"type": "longrope", "long_factor": [1.0591234137867171, 1.1241891283591912, …{"long_factor": [1.0591234137867171, 2.093982484148734, 10.475458000005451, 1…
v_head_dim6416