HuggingFaceTB/SmolLM3-3B
Original3.1Bparameters
Fixture35.2Mparameters
Layer stacks1compared
Findings1to review
⚠ To review
- model: max_position_embeddings 65536 became 512
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 · 36
Fixture · 4
| Kind | Original | Fixture | |
|---|---|---|---|
| DecoderLayer | 36 | 4 | ✓ 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 | 2.8B | 91.5% | 2.4M | 6.7% |
| model.embed_tokens | 262.7M | 8.5% | 32.8M | 93.3% |
| model.norm | 2.0K | 0.0% | 256 | 0.0% |
Preserved properties
| Config | Property | Original | Fixture | |
|---|---|---|---|---|
| model | attention style | GQA (16 heads, 4 KV) | GQA (4 heads, 2 KV) | ✓ kept |
| model | RoPE type | default | default | ✓ kept |
| model | model_type | smollm3 | smollm3 | ✓ kept |
| model | vocab_size | 128256 | 128256 | ✓ kept |
| model | tie_word_embeddings | True | True | ✓ kept |
| model | hidden_act | silu | silu | ✓ kept |
| model | max_position_embeddings | 65536 | 512 | ⚠ changed |
Module classes
Instances of each class in the built model (prefix SmolLM3 omitted).
| Class | Original | Fixture |
|---|---|---|
| Linear | 253 | 29 |
| RMSNorm | 73 | 9 |
| SiLUActivation | 36 | 4 |
| Attention | 36 | 4 |
| DecoderLayer | 36 | 4 |
| MLP | 36 | 4 |
| Embedding | 1 | 1 |
| ModuleList | 1 | 1 |
| ForCausalLM | 1 | 1 |
| Model | 1 | 1 |
| RotaryEmbedding | 1 | 1 |
Config changes
9 fields changed, 26 unchanged.
| Field | Original | Fixture |
|---|---|---|
| hidden_size | 2048 | 256 |
| intermediate_size | 11008 | 512 |
| layer_types | 36 entries: 36× full_attention | ["full_attention", "full_attention", "full_attention", "full_attention"] |
| max_position_embeddings | 65536 | 512 |
| max_window_layers | 28 | 3 |
| no_rope_layers | 36 entries: 27× 1, 9× 0 | [1, 1, 1, 0] |
| num_attention_heads | 16 | 4 |
| num_hidden_layers | 36 | 4 |
| num_key_value_heads | 4 | 2 |