← MIC coverage of Transformers model types

google/gemma-2b

huggingface-mic/gemma-2b-mic@7ce6a0c1274d ← google/gemma-2b@9cf48e52b224 · GemmaForCausalLM · random weights

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

Original2.5Bparameters
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 · 18
Fixture · 2
KindOriginalFixture
DecoderLayer182✓ 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.0B79.1%69.9K0.4%
model.embed_tokens524.3M20.9%16.4M99.6%
model.norm2.0K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleMQA (8 heads, 1 KV)MQA (4 heads, 1 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typegemmagemma✓ 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 Gemma omitted).

ClassOriginalFixture
Linear12715
RMSNorm375
GELUTanh182
Attention182
DecoderLayer182
MLP182
ForCausalLM11
Model11
RotaryEmbedding11
TextScaledWordEmbedding11
ModuleList11

Config changes

5 fields changed, 24 unchanged.

FieldOriginalFixture
head_dim25616
hidden_size204864
intermediate_size16384128
num_attention_heads84
num_hidden_layers182