allenai/OLMo-2-0425-1B
Original1.5Bparameters
Fixture12.9Mparameters
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 · 16
Fixture · 2
| Kind | Original | Fixture | |
|---|---|---|---|
| DecoderLayer | 16 | 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 | 1.1B | 72.3% | 82.4K | 0.6% |
| lm_head | 205.5M | 13.8% | 6.4M | 49.7% |
| model.embed_tokens | 205.5M | 13.8% | 6.4M | 49.7% |
| model.norm | 2.0K | 0.0% | 64 | 0.0% |
Preserved properties
| Config | Property | Original | Fixture | |
|---|---|---|---|---|
| model | attention style | MHA (16 heads, 16 KV) | MHA (4 heads, 4 KV) | ✓ kept |
| model | RoPE type | default | default | ✓ kept |
| model | model_type | olmo2 | olmo2 | ✓ kept |
| model | vocab_size | 100352 | 100352 | ✓ kept |
| model | tie_word_embeddings | False | False | ✓ kept |
| model | hidden_act | silu | silu | ✓ kept |
| model | max_position_embeddings | 4096 | 4096 | ✓ kept |
Module classes
Instances of each class in the built model (prefix Olmo2 omitted).
| Class | Original | Fixture |
|---|---|---|
| Linear | 113 | 15 |
| RMSNorm | 65 | 9 |
| Attention | 16 | 2 |
| DecoderLayer | 16 | 2 |
| MLP | 16 | 2 |
| SiLUActivation | 16 | 2 |
| Embedding | 1 | 1 |
| ModuleList | 1 | 1 |
| ForCausalLM | 1 | 1 |
| Model | 1 | 1 |
| RotaryEmbedding | 1 | 1 |
Config changes
5 fields changed, 22 unchanged.
| Field | Original | Fixture |
|---|---|---|
| hidden_size | 2048 | 64 |
| intermediate_size | 8192 | 128 |
| num_attention_heads | 16 | 4 |
| num_hidden_layers | 16 | 2 |
| num_key_value_heads | 16 | 4 |