allenai/OLMo-1B-hf
Original1.2Bparameters
Fixture3.3Mparameters
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 | 91.2% | 81.9K | 2.5% |
| model.embed_tokens | 103.0M | 8.8% | 3.2M | 97.5% |
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 | olmo | olmo | ✓ kept |
| model | vocab_size | 50304 | 50304 | ✓ kept |
| model | tie_word_embeddings | True | True | ✓ 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 Olmo omitted).
| Class | Original | Fixture |
|---|---|---|
| Linear | 113 | 15 |
| LayerNorm | 33 | 5 |
| 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, 23 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 |