← MIC coverage of Transformers model types

distilbert/distilbert-base-uncased

huggingface-mic/distilbert-base-uncased-mic@c65e2b7864ac ← distilbert/distilbert-base-uncased@12040accade4 · DistilBertForMaskedLM · random weights · built before the shrink rule (no recorded recipe)

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

Original67.0Mparameters
Fixture2.1Mparameters
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.

distilbert.transformer.layer

Original · 6
Fixture · 2
KindOriginalFixture
TransformerBlock62✓ 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
distilbert.transformer.layer42.5M63.5%66.9K3.2%
distilbert.embeddings23.8M35.6%2.0M95.1%
vocab_transform590.6K0.9%4.2K0.2%
vocab_projector30.5K0.0%30.5K1.5%
vocab_layer_norm1.5K0.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typedistilbertdistilbert✓ kept
modelvocab_size3052230522✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelmax_position_embeddings512512✓ kept

Module classes

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

ClassOriginalFixture
Linear3814
LayerNorm146
Dropout135
GELUActivation73
SelfAttention62
FFN62
TransformerBlock62
Embedding22
CrossEntropyLoss11
ForMaskedLM11
Model11
Embeddings11
ModuleList11
Transformer11

Config changes

4 fields changed, 23 unchanged.

FieldOriginalFixture
dim76864
hidden_dim3072128
n_heads124
n_layers62