mistralai/Mistral-Small-3.1-24B-Instruct-2503
Original23.3Bparameters
Fixture8.6Mparameters
Layer stacks2compared
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.vision_tower.transformer.layers
Original · 24
Fixture · 2
| Kind | Original | Fixture | |
|---|---|---|---|
| PixtralAttentionLayer | 24 | 2 | ✓ kept |
model.language_model.layers
Original · 40
Fixture · 2
| Kind | Original | Fixture | |
|---|---|---|---|
| MistralDecoderLayer | 40 | 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.language_model.layers | 22.2B | 95.2% | 74.0K | 0.9% |
| model.language_model | 671.1M | 2.9% | 8.4M | 97.5% |
| model.vision_tower.transformer.layers | 402.7M | 1.7% | 82.2K | 1.0% |
| model.multi_modal_projector | 35.7M | 0.2% | 24.6K | 0.3% |
| model.vision_tower | 603.1K | 0.0% | 37.7K | 0.4% |
Preserved properties
| Config | Property | Original | Fixture | |
|---|---|---|---|---|
| model | model_type | mistral3 | mistral3 | ✓ kept |
| model | tie_word_embeddings | True | True | ✓ kept |
| vision_config | RoPE type | axial | axial | ✓ kept |
| vision_config | model_type | pixtral | pixtral | ✓ kept |
| vision_config | hidden_act | silu | silu | ✓ kept |
| vision_config | image_size | 1540 | 1540 | ✓ kept |
| vision_config | patch_size | 14 | 14 | ✓ kept |
| vision_config | num_channels | 3 | 3 | ✓ kept |
| text_config | attention style | GQA (32 heads, 8 KV) | GQA (4 heads, 2 KV) | ✓ kept |
| text_config | RoPE type | default | default | ✓ kept |
| text_config | model_type | mistral | mistral | ✓ kept |
| text_config | vocab_size | 131072 | 131072 | ✓ kept |
| text_config | tie_word_embeddings | False | False | ✓ kept |
| text_config | hidden_act | silu | silu | ✓ kept |
| text_config | max_position_embeddings | 131072 | 131072 | ✓ kept |
Module classes
Instances of each class in the built model (prefix Mistral3 omitted).
| Class | Original | Fixture |
|---|---|---|
| Linear | 452 | 32 |
| MistralRMSNorm | 81 | 5 |
| SiLUActivation | 64 | 4 |
| PixtralRMSNorm | 49 | 5 |
| MistralAttention | 40 | 2 |
| MistralDecoderLayer | 40 | 2 |
| MistralMLP | 40 | 2 |
| PixtralAttention | 24 | 2 |
| PixtralAttentionLayer | 24 | 2 |
| PixtralMLP | 24 | 2 |
| ModuleList | 2 | 2 |
| Conv2d | 1 | 1 |
| Embedding | 1 | 1 |
| GELUActivation | 1 | 1 |
| ForConditionalGeneration | 1 | 1 |
| Model | 1 | 1 |
| MultiModalProjector | 1 | 1 |
| PatchMerger | 1 | 1 |
| RMSNorm | 1 | 1 |
| MistralModel | 1 | 1 |
| MistralRotaryEmbedding | 1 | 1 |
| PixtralTransformer | 1 | 1 |
| PixtralVisionModel | 1 | 1 |
| PixtralVisionRotaryEmbedding | 1 | 1 |
Config changes
11 fields changed, 53 unchanged.
| Field | Original | Fixture |
|---|---|---|
| text_config.head_dim | 128 | 16 |
| text_config.hidden_size | 5120 | 64 |
| text_config.intermediate_size | 32768 | 128 |
| text_config.num_attention_heads | 32 | 4 |
| text_config.num_hidden_layers | 40 | 2 |
| text_config.num_key_value_heads | 8 | 2 |
| vision_config.head_dim | 64 | 16 |
| vision_config.hidden_size | 1024 | 64 |
| vision_config.intermediate_size | 4096 | 128 |
| vision_config.num_attention_heads | 16 | 4 |
| vision_config.num_hidden_layers | 24 | 2 |