← MIC coverage of Transformers model types

kha-white/manga-ocr-base

huggingface-mic/manga-ocr-base-mic@94e5f4256477 ← kha-white/manga-ocr-base@aa6573bd10b0 · VisionEncoderDecoderModel · overfit weights

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

Original111.0Mparameters
Fixture716.0Kparameters
Layer stacks2compared
Findings0to review

✓ Same architecture, smaller

Every module class, layer kind and checked property of the original is in the fixture.

Model tester (advisory)

The model's own small test config in its ModelTester (0 literal values, 0 set by the model's own tester, the rest generic base-tester defaults). Testers are usually representative but not always, so these notes are for review, not rules.

The fixture covers every per-layer kind the tester sets, and shrinks every size it does.

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.

encoder.layers

Original · 12
Fixture · 2
KindOriginalFixture
ViTLayer122✓ kept

decoder.bert.encoder.layer

Original · 2
Fixture · 2
KindOriginalFixture
BertLayer22✓ 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
encoder.layers85.1M76.6%66.9K9.3%
decoder.bert.encoder.layer18.9M17.0%100.5K14.0%
decoder.bert5.1M4.6%426.2K59.5%
encoder.embeddings742.7K0.7%61.9K8.6%
decoder.cls598.3K0.5%10.4K1.5%
encoder.pooler590.6K0.5%49.9K7.0%
encoder.layernorm1.5K0.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typevision-encoder-decodervision-encoder-decoder✓ kept
modelvocab_size61446144✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
encodermodel_typevitvit✓ kept
encodertie_word_embeddingsTrueTrue✓ kept
encoderhidden_actgelugelu✓ kept
encoderimage_size224224✓ kept
encoderpatch_size1616✓ kept
encodernum_channels33✓ kept
decodermodel_typebertbert✓ kept
decodervocab_size61446144✓ kept
decodertie_word_embeddingsTrueTrue✓ kept
decoderhidden_actgelugelu✓ kept
decodermax_position_embeddings512512✓ kept

Module classes

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

ClassOriginalFixture
Linear9535
LayerNorm3313
Dropout2414
GELUActivation155
ViTAttention122
ViTLayer122
ViTMLP122
BertAttention44
BertSelfOutput44
Embedding33
BertCrossAttention22
BertIntermediate22
BertLayer22
BertOutput22
BertSelfAttention22
ModuleList22
BertEmbeddings11
BertEncoder11
BertLMHeadModel11
BertLMPredictionHead11
BertModel11
BertOnlyMLMHead11
BertPredictionHeadTransform11
Conv2d11
Tanh11
ViTEmbeddings11
ViTModel11
ViTPatchEmbeddings11
ViTPooler11
Model11

Config changes

7 fields changed, 90 unchanged.

FieldOriginalFixture
decoder.hidden_size76864
decoder.intermediate_size3072128
decoder.num_attention_heads124
encoder.hidden_size76864
encoder.intermediate_size3072128
encoder.num_attention_heads124
encoder.num_hidden_layers122