← MIC coverage of Transformers model types

bigcode/starcoder2-3b

huggingface-mic/starcoder2-3b-mic@f158c5574331 ← bigcode/starcoder2-3b@733247c55e3f · Starcoder2ForCausalLM · random weights

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

Original3.0Bparameters
Fixture3.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 · 30
Fixture · 2
KindOriginalFixture
DecoderLayer302✓ 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.layers2.9B95.0%58.6K1.8%
model.embed_tokens151.0M5.0%3.1M98.2%
model.norm6.1K0.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (24 heads, 2 KV)GQA (4 heads, 2 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typestarcoder2starcoder2✓ kept
modelvocab_size4915249152✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actgelu_pytorch_tanhgelu_pytorch_tanh✓ kept
modelmax_position_embeddings1638416384✓ kept

Module classes

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

ClassOriginalFixture
Linear18113
LayerNorm615
GELUTanh302
Attention302
DecoderLayer302
MLP302
Embedding11
ModuleList11
ForCausalLM11
Model11
RotaryEmbedding11

Config changes

4 fields changed, 28 unchanged.

FieldOriginalFixture
hidden_size307264
intermediate_size12288128
num_attention_heads244
num_hidden_layers302