← MIC coverage of Transformers model types

biohub/ESMC-300M-hf

huggingface-mic/ESMC-300M-hf-mic@7c11c22ceffc ← biohub/ESMC-300M-hf@5554e4b3ab19 · EsmcForMaskedLM · random weights

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

Original333.0Mparameters
Fixture95.3Kparameters
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.

esmc.layers

Original · 30
Fixture · 2
KindOriginalFixture
Layer302✓ 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
esmc.layers331.9M99.7%82.7K86.8%
lm_head.dense922.6K0.3%4.2K4.4%
lm_head.decoder61.5K0.0%4.2K4.4%
esmc.embed_tokens61.4K0.0%4.1K4.3%
lm_head.layer_norm1.9K0.0%1280.1%
esmc.norm9600.0%640.1%

Preserved properties

ConfigPropertyOriginalFixture
modelattention styleMHA (15 heads, 15 KV)MHA (4 heads, 4 KV)✓ kept
modelRoPE typedefaultdefault✓ kept
modelmodel_typeesmcesmc✓ kept
modelvocab_size6464✓ kept
modeltie_word_embeddingsFalseFalse✓ kept
modelhidden_actsilusilu✓ kept
modelmax_position_embeddings20482048✓ kept

Module classes

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

ClassOriginalFixture
Linear21216
LayerNorm1219
Attention302
Layer302
MLP302
SiLUActivation302
Embedding11
ForMaskedLM11
MaskedLMHead11
Model11
RotaryEmbedding11
LayerNorm11
ModuleList11

Config changes

6 fields changed, 23 unchanged.

FieldOriginalFixture
head_dim6416
hidden_size96064
intermediate_size2560128
num_attention_heads154
num_hidden_layers302
num_key_value_heads154