LiquidAI/LFM2.5-230M-Base
Original229.7Mparameters
Fixture4.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 · 14
Fixture · 2
| Kind | Original | Fixture | |
|---|---|---|---|
| conv, Conv1d, ShortConv | 8 | 1 | ✓ kept |
| is_causal=True, Attention | 6 | 1 | ✓ 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 | 162.6M | 70.8% | 78.3K | 1.8% |
| model.embed_tokens | 67.1M | 29.2% | 4.2M | 98.2% |
| model.embedding_norm | 1.0K | 0.0% | 64 | 0.0% |
Preserved properties
| Config | Property | Original | Fixture | |
|---|---|---|---|---|
| model | attention style | GQA (16 heads, 8 KV) | GQA (4 heads, 2 KV) | ✓ kept |
| model | RoPE type | default | default | ✓ kept |
| model | model_type | lfm2 | lfm2 | ✓ kept |
| model | vocab_size | 65536 | 65536 | ✓ kept |
| model | tie_word_embeddings | True | True | ✓ kept |
| model | max_position_embeddings | 128000 | 128000 | ✓ kept |
Module classes
Instances of each class in the built model (prefix Lfm2 omitted).
| Class | Original | Fixture |
|---|---|---|
| Linear | 83 | 13 |
| RMSNorm | 41 | 7 |
| DecoderLayer | 14 | 2 |
| MLP | 14 | 2 |
| Conv1d | 8 | 1 |
| ShortConv | 8 | 1 |
| Attention | 6 | 1 |
| Embedding | 1 | 1 |
| ForCausalLM | 1 | 1 |
| Model | 1 | 1 |
| RotaryEmbedding | 1 | 1 |
| ModuleList | 1 | 1 |
Config changes
7 fields changed, 41 unchanged.
| Field | Original | Fixture |
|---|---|---|
| hidden_size | 1024 | 64 |
| intermediate_size | 2560 | 128 |
| layer_types | 14 entries: 8× conv, 6× full_attention | ["conv", "full_attention"] |
| num_attention_heads | 16 | 4 |
| num_heads | 16 | 4 |
| num_hidden_layers | 14 | 2 |
| num_key_value_heads | 8 | 2 |