← MIC coverage of Transformers model types

google/vit-base-patch16-224

huggingface-mic/vit-mic@d69cbc45edf9 ← google/vit-base-patch16-224@3f49326eb077 · ViTForImageClassification · overfit weights · built before the shrink rule (no recorded recipe)

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

Original86.6Mparameters
Fixture194.0Kparameters
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.

vit.layers

Original · 12
Fixture · 2
KindOriginalFixture
Layer122✓ 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
vit.layers85.1M98.3%66.9K34.5%
classifier769.0K0.9%65.0K33.5%
vit.embeddings742.7K0.9%61.9K31.9%
vit.layernorm1.5K0.0%1280.1%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typevitvit✓ kept
modelhidden_actgelugelu✓ kept
modelimage_size224224✓ kept
modelpatch_size1616✓ kept
modelnum_channels33✓ kept

Module classes

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

ClassOriginalFixture
Linear7313
LayerNorm255
Dropout133
GELUActivation122
Attention122
Layer122
MLP122
Conv2d11
ModuleList11
Embeddings11
ForImageClassification11
Model11
PatchEmbeddings11

Config changes

5 fields changed, 20 unchanged.

FieldOriginalFixture
hidden_size76864
intermediate_size3072128
num_attention_heads124
num_hidden_layers122
problem_typenullsingle_label_classification