← MIC coverage of Transformers model types

google/recurrentgemma-2b

huggingface-mic/recurrentgemma-2b-mic@732c0b9399dc ← google/recurrentgemma-2b@3620f4ca9c5d · RecurrentGemmaForCausalLM · random weights

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

Original2.7Bparameters
Fixture24.0Mparameters
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 · 3
KindOriginalFixture
Conv1d, RecurrentBlock, Rglru182✓ kept
is_causal=True, Attention, RotaryEmbedding81✓ 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.0B75.6%7.6M31.8%
model.embed_tokens655.4M24.4%16.4M68.2%
model.final_norm2.6K0.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleMQA (10 heads, 1 KV)MQA (4 heads, 1 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typerecurrent_gemmarecurrent_gemma✓ kept
modelvocab_size256000256000✓ kept
modeltie_word_embeddingsTrueTrue✓ kept

Module classes

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

ClassOriginalFixture
Linear16520
RMSNorm537
GELUTanh445
DecoderLayer263
Mlp263
Conv1d182
RecurrentBlock182
Rglru182
Attention81
RotaryEmbedding81
Embedding11
ModuleList11
ForCausalLM11
Model11

Config changes

5 fields changed, 30 unchanged.

FieldOriginalFixture
head_dim25616
hidden_size256064
intermediate_size15360128
num_attention_heads104
num_hidden_layers263