← MIC coverage of Transformers model types

google-bert/bert-base-uncased

huggingface-mic/bert-base-uncased-mic@b22d1695360e ← google-bert/bert-base-uncased@86b5e0934494 · BertForMaskedLM · random weights · built before the shrink rule (no recorded recipe)

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

Original109.5Mparameters
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.

bert.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
bert.encoder.layer85.1M77.7%66.9K3.2%
bert.embeddings23.8M21.8%2.0M95.1%
cls.predictions622.6K0.6%34.8K1.7%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typebertbert✓ kept
modelvocab_size3052230522✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actgelugelu✓ kept
modelmax_position_embeddings512512✓ kept

Module classes

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

ClassOriginalFixture
Linear7414
Dropout377
LayerNorm266
GELUActivation133
Attention122
Intermediate122
Layer122
Output122
SelfAttention122
SelfOutput122
Embedding33
Embeddings11
Encoder11
ForMaskedLM11
LMPredictionHead11
Model11
OnlyMLMHead11
PredictionHeadTransform11
ModuleList11

Config changes

4 fields changed, 27 unchanged.

FieldOriginalFixture
hidden_size76864
intermediate_size3072128
num_attention_heads124
num_hidden_layers122