← MIC coverage of Transformers model types

facebook/dinov2-small

huggingface-mic/dinov2-small-mic@770cc8e9a4ec ← facebook/dinov2-small@ed25f3a31f01 · Dinov2Model · random weights · built before the shrink rule (no recorded recipe)

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

Original22.1Mparameters
Fixture225.9Kparameters
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.

encoder.layer

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
encoder.layer21.3M96.6%100.2K44.4%
embeddings526.8K2.4%87.8K38.9%
embeddings.patch_embeddings226.2K1.0%37.7K16.7%
layernorm7680.0%1280.1%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typedinov2dinov2✓ kept
modelhidden_actgelugelu✓ kept
modelimage_size518518✓ kept
modelpatch_size1414✓ kept
modelnum_channels33✓ kept

Module classes

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

ClassOriginalFixture
Linear7212
LayerNorm255
LayerScale244
Attention122
Layer122
MLP122
GELUActivation122
Identity122
Conv2d11
Embeddings11
Encoder11
Model11
PatchEmbeddings11
Dropout11
ModuleList11

Config changes

5 fields changed, 26 unchanged.

FieldOriginalFixture
hidden_size38464
num_attention_heads64
num_hidden_layers122
out_features["stage12"]["stage2"]
out_indices[12][2]