← MIC coverage of Transformers model types

answerdotai/ModernBERT-base

huggingface-mic/modernbert-mic@59688bef85e5 ← answerdotai/ModernBERT-base@8949b909ec90 · ModernBertForMaskedLM · random weights · built before the shrink rule (no recorded recipe)

CI: passing now; 3 failed checks in 30 days · MIC failures dashboard

Original149.7Mparameters
Fixture3.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.

model.layers

Original · 22
Fixture · 2
KindOriginalFixture
full_attention81✓ kept
sliding_attention141✓ 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
model.layers110.3M73.7%82.1K2.4%
model.embeddings38.7M25.8%3.2M95.9%
head.dense589.8K0.4%4.1K0.1%
decoder50.4K0.0%50.4K1.5%
model.final_norm7680.0%640.0%
head.norm7680.0%640.0%

Preserved properties

ConfigPropertyOriginalFixture
modelmodel_typemodernbertmodernbert✓ kept
modelvocab_size5036850368✓ kept
modeltie_word_embeddingsTrueTrue✓ kept
modelmax_position_embeddings81928192✓ kept

Module classes

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

ClassOriginalFixture
Linear9010
LayerNorm466
Dropout233
GELUActivation233
Identity233
Attention222
EncoderLayer222
MLP222
Embedding11
Embeddings11
ForMaskedLM11
Model11
PredictionHead11
RotaryEmbedding11
ModuleList11

Config changes

5 fields changed, 41 unchanged.

FieldOriginalFixture
hidden_size76864
intermediate_size1152128
layer_types22 entries: 14× sliding_attention, 8× full_attention["full_attention", "sliding_attention"]
num_attention_heads124
num_hidden_layers222