← MIC coverage of Transformers model types

stepfun-ai/GOT-OCR-2.0-hf

huggingface-mic/got_ocr2-mic@5bfaf853e15a ← stepfun-ai/GOT-OCR-2.0-hf@d3017ef2c2c1 · GotOcr2ForConditionalGeneration · overfit weights · built before the shrink rule (no recorded recipe)

CI: passing now; 3 failed checks in 30 days · MIC failures dashboard

Original560.5Mparameters
Fixture13.0Mparameters
Layer stacks2compared
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.vision_tower.layers

Original · 12
Fixture · 2
KindOriginalFixture
MLPBlock122✓ kept

model.language_model.layers

Original · 24
Fixture · 2
KindOriginalFixture
Qwen2DecoderLayer242✓ 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.language_model.layers308.4M55.0%82.6K0.6%
model.language_model155.5M27.7%9.7M74.6%
model.vision_tower.layers85.1M15.2%828.2K6.4%
model.multi_modal_projector6.9M1.2%1.5M11.4%
model.vision_tower4.5M0.8%918.6K7.1%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typegot_ocr2got_ocr2✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
vision_configmodel_typegot_ocr2_visiongot_ocr2_vision✓ kept
vision_confighidden_actgelugelu✓ kept
vision_configimage_size10241024✓ kept
vision_configpatch_size1616✓ kept
vision_confignum_channels33✓ kept
text_configattention styleMHA (16 heads, 16 KV)MHA (4 heads, 4 KV)✓ kept
text_configRoPE typedefaultdefault✓ kept
text_configmodel_typeqwen2qwen2✓ kept
text_configvocab_size151860151860✓ kept
text_configtie_word_embeddingsTrueTrue✓ kept
text_confighidden_actsilusilu✓ kept
text_configmax_position_embeddings3276832768✓ kept

Module classes

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

ClassOriginalFixture
Linear21824
Qwen2RMSNorm495
LayerNorm244
Qwen2Attention242
Qwen2DecoderLayer242
Qwen2MLP242
SiLUActivation242
GELUActivation122
MLPBlock122
VisionAttention122
VisionLayer122
Conv2d55
LayerNorm22
ModuleList22
Embedding11
ForConditionalGeneration11
Model11
MultiModalProjector11
PatchEmbeddings11
VisionEncoder11
VisionNeck11
Qwen2Model11
Qwen2RotaryEmbedding11

Config changes

9 fields changed, 60 unchanged.

FieldOriginalFixture
text_config.hidden_size102464
text_config.intermediate_size2816128
text_config.layer_types24 entries: 24× full_attention["full_attention", "full_attention"]
text_config.num_attention_heads164
text_config.num_hidden_layers242
text_config.num_key_value_heads164
vision_config.hidden_size76864
vision_config.num_attention_heads124
vision_config.num_hidden_layers122