← MIC coverage of Transformers model types

FacebookAI/xlm-roberta-base

huggingface-mic/xlm-roberta-base-mic@934d2300ab3a ← FacebookAI/xlm-roberta-base@e73636d4f797 · XLMRobertaForMaskedLM · random weights · built before the shrink rule (no recorded recipe)

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

Original278.3Mparameters
Fixture16.4Mparameters
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.

roberta.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
lm_head.decoder192.0M69.0%16.0M97.8%
roberta.encoder.layer85.1M30.6%66.9K0.4%
lm_head.dense590.6K0.2%4.2K0.0%
roberta.embeddings397.1K0.1%33.1K0.2%
lm_head250.0K0.1%250.0K1.5%
lm_head.layer_norm1.5K0.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typexlm-robertaxlm-roberta✓ kept
modelvocab_size250002250002✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actgelugelu✓ kept
modelmax_position_embeddings514514✓ kept

Module classes

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

ClassOriginalFixture
Linear7414
Dropout377
LayerNorm266
GELUActivation122
Attention122
Intermediate122
Layer122
Output122
SelfAttention122
SelfOutput122
Embedding33
ModuleList11
Embeddings11
Encoder11
ForMaskedLM11
LMHead11
Model11

Config changes

4 fields changed, 27 unchanged.

FieldOriginalFixture
hidden_size76864
intermediate_size3072128
num_attention_heads124
num_hidden_layers122