← MIC coverage of Transformers model types

microsoft/Phi-3.5-mini-instruct

huggingface-mic/Phi-3.5-mini-instruct-mic@0c7964e6c77b ← microsoft/Phi-3.5-mini-instruct@2fe192450127 · Phi3ForCausalLM · random weights · built before the shrink rule (no recorded recipe)

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

Original3.8Bparameters
Fixture4.2Mparameters
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 · 32
Fixture · 2
KindOriginalFixture
DecoderLayer322✓ 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.6B94.8%82.2K2.0%
lm_head98.5M2.6%2.1M49.0%
model.embed_tokens98.5M2.6%2.1M49.0%
model.norm3.1K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleMHA (32 heads, 32 KV)MHA (4 heads, 4 KV)✓ kept
modelRoPE typelongropelongrope✓ kept
modelmodel_typephi3phi3✓ kept
modelvocab_size3206432064✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings131072131072✓ kept

Module classes

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

ClassOriginalFixture
Linear1299
RMSNorm655
Dropout644
Attention322
DecoderLayer322
MLP322
SiLUActivation322
Embedding11
ModuleList11
ForCausalLM11
Model11
RotaryEmbedding11

Config changes

6 fields changed, 26 unchanged.

FieldOriginalFixture
hidden_size307264
intermediate_size8192128
num_attention_heads324
num_hidden_layers322
num_key_value_heads324
rope_parameters{"long_factor": [1.0800000429153442, 1.1100000143051147, 1.1399999856948853, …{"long_factor": [1.0800000429153442, 1.6200000047683716, 7.700000286102295, 3…