← MIC coverage of Transformers model types

google/electra-small-discriminator

huggingface-mic/electra-small-discriminator-mic@d8fc7b11317d ← google/electra-small-discriminator@fa8239aadc09 · ElectraForPreTraining · real weights

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

Original13.5Mparameters
Fixture13.5Mparameters
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.

electra.encoder.layer

Original · 12
Fixture · 12
KindOriginalFixture
Layer1212✓ 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
electra.encoder.layer9.5M69.9%9.5M69.9%
electra.embeddings4.0M29.3%4.0M29.3%
discriminator_predictions.dense65.8K0.5%65.8K0.5%
electra.embeddings_project33.0K0.2%33.0K0.2%
discriminator_predictions.dense_prediction2570.0%2570.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typeelectraelectra✓ 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 Electra omitted).

ClassOriginalFixture
Linear7575
Dropout3737
LayerNorm2525
GELUActivation1313
Attention1212
Intermediate1212
Layer1212
Output1212
SelfAttention1212
SelfOutput1212
Embedding33
DiscriminatorPredictions11
Embeddings11
Encoder11
ForPreTraining11
Model11
ModuleList11

Config changes

0 fields changed, 35 unchanged.

FieldOriginalFixture