diff --git a/shrink/llava-v1.6-mistral-7b-hf-mic.html b/shrink/llava-v1.6-mistral-7b-hf-mic.html
index 6cd323498ab901a1566bf6227b04956c0776a39b..1db4aeab016c77bf3ae1eb136f58d4c30571c10f 100644
--- a/shrink/llava-v1.6-mistral-7b-hf-mic.html
+++ b/shrink/llava-v1.6-mistral-7b-hf-mic.html
@@ -32,5 +32,6 @@ tr.bad td{color:var(--warn)}
← MIC coverage of Transformers model types
llava-hf/llava-v1.6-mistral-7b-hf
huggingface-mic/llava-v1.6-mistral-7b-hf-mic@2575b1c20c76 ← llava-hf/llava-v1.6-mistral-7b-hf@2424fdd47412 · LlavaNextForConditionalGeneration · random weights · built before the shrink rule (no recorded recipe)
+CI: no failure on main in 30 days · MIC failures dashboard
Original7.6Bparameters
Fixture4.3Mparameters
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.encoder.layers
| Kind | Original | Fixture | |
|---|
| CLIPEncoderLayer | 24 | 2 | ✓ kept |
model.language_model.layers
| Kind | Original | Fixture | |
|---|
| MistralDecoderLayer | 32 | 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.
| Component | Original | Share | Fixture | Share |
|---|
| model.language_model.layers | 7.0B | 92.2% | 74.0K | 1.7% |
| model.vision_tower.encoder.layers | 302.3M | 4.0% | 66.9K | 1.5% |
| model.language_model | 131.3M | 1.7% | 2.1M | 47.4% |
| lm_head | 131.3M | 1.7% | 2.1M | 47.4% |
| model.multi_modal_projector | 21.0M | 0.3% | 8.3K | 0.2% |
| model.vision_tower | 1.2M | 0.0% | 74.9K | 1.7% |
| model | 4.1K | 0.0% | 64 | 0.0% |
Preserved properties
| Config | Property | Original | Fixture | |
|---|
| model | model_type | llava_next | llava_next | ✓ kept |
| model | vocab_size | 32064 | 32064 | ✓ kept |
| model | tie_word_embeddings | False | False | ✓ kept |
| vision_config | model_type | clip_vision_model | clip_vision_model | ✓ kept |
| vision_config | vocab_size | 32000 | 32000 | ✓ kept |
| vision_config | hidden_act | quick_gelu | quick_gelu | ✓ kept |
| vision_config | image_size | 336 | 336 | ✓ 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 | 32064 | 32064 | ✓ kept |
| text_config | tie_word_embeddings | False | False | ✓ kept |
| text_config | hidden_act | silu | silu | ✓ kept |
| text_config | max_position_embeddings | 32768 | 32768 | ✓ kept |
Module classes
Instances of each class in the built model (prefix LlavaNext omitted).
| Class | Original | Fixture |
|---|
| Linear | 371 | 29 |
| MistralRMSNorm | 65 | 5 |
| LayerNorm | 50 | 6 |
| MistralAttention | 32 | 2 |
| MistralDecoderLayer | 32 | 2 |
| MistralMLP | 32 | 2 |
| SiLUActivation | 32 | 2 |
| CLIPAttention | 24 | 2 |
| CLIPEncoderLayer | 24 | 2 |
| CLIPMLP | 24 | 2 |
| QuickGELUActivation | 24 | 2 |
| Embedding | 2 | 2 |
| ModuleList | 2 | 2 |
| CLIPEncoder | 1 | 1 |
| CLIPVisionEmbeddings | 1 | 1 |
| CLIPVisionModel | 1 | 1 |
| Conv2d | 1 | 1 |
| GELUActivation | 1 | 1 |
| ForConditionalGeneration | 1 | 1 |
| Model | 1 | 1 |
| MultiModalProjector | 1 | 1 |
| MistralModel | 1 | 1 |
| MistralRotaryEmbedding | 1 | 1 |
Config changes
11 fields changed, 60 unchanged.
| Field | Original | Fixture |
|---|
| text_config.head_dim | 128 | 16 |
| text_config.hidden_size | 4096 | 64 |
| text_config.intermediate_size | 14336 | 128 |
| text_config.num_attention_heads | 32 | 4 |
| text_config.num_hidden_layers | 32 | 2 |
| text_config.num_key_value_heads | 8 | 2 |
| 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 |
| vision_config.projection_dim | 768 | 64 |