biohub/ESMC-300M-hf
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
| Kind | Original | Fixture | |
|---|---|---|---|
| Layer | 30 | 2 | ✓ 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
| Component | Original | Share | Fixture | Share |
|---|---|---|---|---|
| esmc.layers | 331.9M | 99.7% | 82.7K | 86.8% |
| lm_head.dense | 922.6K | 0.3% | 4.2K | 4.4% |
| lm_head.decoder | 61.5K | 0.0% | 4.2K | 4.4% |
| esmc.embed_tokens | 61.4K | 0.0% | 4.1K | 4.3% |
| lm_head.layer_norm | 1.9K | 0.0% | 128 | 0.1% |
| esmc.norm | 960 | 0.0% | 64 | 0.1% |
Preserved properties
| Config | Property | Original | Fixture | |
|---|---|---|---|---|
| model | attention style | MHA (15 heads, 15 KV) | MHA (4 heads, 4 KV) | ✓ kept |
| model | RoPE type | default | default | ✓ kept |
| model | model_type | esmc | esmc | ✓ kept |
| model | vocab_size | 64 | 64 | ✓ kept |
| model | tie_word_embeddings | False | False | ✓ kept |
| model | hidden_act | silu | silu | ✓ kept |
| model | max_position_embeddings | 2048 | 2048 | ✓ kept |
Module classes
Instances of each class in the built model (prefix Esmc omitted).
| Class | Original | Fixture |
|---|---|---|
| Linear | 212 | 16 |
| LayerNorm | 121 | 9 |
| Attention | 30 | 2 |
| Layer | 30 | 2 |
| MLP | 30 | 2 |
| SiLUActivation | 30 | 2 |
| Embedding | 1 | 1 |
| ForMaskedLM | 1 | 1 |
| MaskedLMHead | 1 | 1 |
| Model | 1 | 1 |
| RotaryEmbedding | 1 | 1 |
| LayerNorm | 1 | 1 |
| ModuleList | 1 | 1 |
Config changes
6 fields changed, 23 unchanged.
| Field | Original | Fixture |
|---|---|---|
| head_dim | 64 | 16 |
| hidden_size | 960 | 64 |
| intermediate_size | 2560 | 128 |
| num_attention_heads | 15 | 4 |
| num_hidden_layers | 30 | 2 |
| num_key_value_heads | 15 | 4 |