EuroBERT/EuroBERT-210m
Original310.3Mparameters
Fixture16.5Mparameters
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 · 12
Fixture · 2
| Kind | Original | Fixture | |
|---|---|---|---|
| DecoderLayer | 12 | 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 |
|---|---|---|---|---|
| model.layers | 113.3M | 36.5% | 82.2K | 0.5% |
| model.embed_tokens | 98.5M | 31.7% | 8.2M | 49.8% |
| lm_head | 98.5M | 31.7% | 8.2M | 49.8% |
| model.norm | 768 | 0.0% | 64 | 0.0% |
Preserved properties
| Config | Property | Original | Fixture | |
|---|---|---|---|---|
| model | attention style | MHA (12 heads, 12 KV) | MHA (4 heads, 4 KV) | ✓ kept |
| model | RoPE type | default | default | ✓ kept |
| model | model_type | eurobert | eurobert | ✓ kept |
| model | vocab_size | 128256 | 128256 | ✓ kept |
| model | tie_word_embeddings | False | False | ✓ kept |
| model | hidden_act | silu | silu | ✓ kept |
| model | max_position_embeddings | 8192 | 8192 | ✓ kept |
Module classes
Instances of each class in the built model (prefix EuroBert omitted).
| Class | Original | Fixture |
|---|---|---|
| Linear | 85 | 15 |
| RMSNorm | 25 | 5 |
| Attention | 12 | 2 |
| DecoderLayer | 12 | 2 |
| MLP | 12 | 2 |
| SiLUActivation | 12 | 2 |
| Embedding | 1 | 1 |
| ForMaskedLM | 1 | 1 |
| Model | 1 | 1 |
| RotaryEmbedding | 1 | 1 |
| ModuleList | 1 | 1 |
Config changes
6 fields changed, 33 unchanged.
| Field | Original | Fixture |
|---|---|---|
| head_dim | 64 | 16 |
| hidden_size | 768 | 64 |
| intermediate_size | 3072 | 128 |
| num_attention_heads | 12 | 4 |
| num_hidden_layers | 12 | 2 |
| num_key_value_heads | 12 | 4 |