← MIC coverage of Transformers model types

google/gemma-2-2b-it

huggingface-mic/gemma-2-2b-it-mic@e3af84449295 ← google/gemma-2-2b-it@299a8560bedf · Gemma2ForCausalLM · random weights · built before the shrink rule (no recorded recipe)

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

Original2.6Bparameters
Fixture16.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 · 26
Fixture · 2
KindOriginalFixture
sliding_attention131✓ kept
full_attention131✓ 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.0B77.4%74.2K0.5%
model.embed_tokens589.8M22.6%16.4M99.5%
model.norm2.3K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleGQA (8 heads, 4 KV)GQA (4 heads, 2 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typegemma2gemma2✓ kept
modelvocab_size256000256000✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actgelu_pytorch_tanhgelu_pytorch_tanh✓ kept
modelmax_position_embeddings81928192✓ kept

Module classes

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

ClassOriginalFixture
Linear18315
RMSNorm1059
GELUTanh262
Attention262
DecoderLayer262
MLP262
ForCausalLM11
Model11
RotaryEmbedding11
TextScaledWordEmbedding11
ModuleList11

Config changes

7 fields changed, 29 unchanged.

FieldOriginalFixture
head_dim25616
hidden_size230464
intermediate_size9216128
layer_types26 entries: 13× sliding_attention, 13× full_attention["sliding_attention", "full_attention"]
num_attention_heads84
num_hidden_layers262
num_key_value_heads42