← MIC coverage of Transformers model types

almanach/camembert-base

huggingface-mic/camembert-base-mic@20f8ae1a74c3 ← almanach/camembert-base@a75967561c78 · CamembertForMaskedLM · random weights · built before the shrink rule (no recorded recipe)

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

Original110.7Mparameters
Fixture2.2Mparameters
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
roberta.encoder.layer85.1M76.9%66.9K3.1%
lm_head.decoder24.6M22.2%2.0M93.8%
lm_head.dense590.6K0.5%4.2K0.2%
roberta.embeddings397.1K0.4%33.1K1.5%
lm_head32.0K0.0%32.0K1.5%
lm_head.layer_norm1.5K0.0%1280.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typecamembertcamembert✓ kept
modelvocab_size3200532005✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelhidden_actgelugelu✓ kept
modelmax_position_embeddings514514✓ kept

Module classes

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

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

Config changes

4 fields changed, 26 unchanged.

FieldOriginalFixture
hidden_size76864
intermediate_size3072128
num_attention_heads124
num_hidden_layers122