← MIC coverage of Transformers model types

google/mobilebert-uncased

huggingface-mic/mobilebert-uncased-mic@ea4858ffb8ed ← google/mobilebert-uncased@1f90a6c24c78 · MobileBertForPreTraining · random weights

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

Original36.6Mparameters
Fixture2.1Mparameters
Layer stacks1compared
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 (21 literal values, 21 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.

mobilebert.encoder.layer

Original · 24
Fixture · 2
KindOriginalFixture
FFNLayer242✓ 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
mobilebert.encoder.layer20.2M55.2%44.7K2.2%
cls.predictions12.0M32.8%1.5M72.5%
mobilebert.embeddings4.4M11.9%524.5K25.3%
cls.seq_relationship1.0K0.0%1300.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typemobilebertmobilebert✓ kept
modelvocab_size3052230522✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actrelurelu✓ kept
modelmax_position_embeddings512512✓ kept

Module classes

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

ClassOriginalFixture
Linear36535
NoNorm19317
ReLU979
Intermediate968
FFNLayer726
FFNOutput726
Dropout495
BottleneckLayer484
ModuleList253
Bottleneck242
Attention242
Layer242
Output242
SelfAttention242
SelfOutput242
OutputBottleneck242
Embedding33
LayerNorm11
Embeddings11
Encoder11
ForPreTraining11
LMPredictionHead11
Model11
Pooler11
PreTrainingHeads11
PredictionHeadTransform11

Config changes

6 fields changed, 28 unchanged.

FieldOriginalFixture
embedding_size12816
hidden_size51264
intermediate_size512128
intra_bottleneck_size12816
num_hidden_layers242
true_hidden_size12816