llava-hf/llava-onevision-qwen2-0.5b-ov-hf
Original893.7Mparameters
Fixture10.0Mparameters
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
Original · 26
Fixture · 2
| Kind | Original | Fixture | |
|---|---|---|---|
| SiglipEncoderLayer | 26 | 2 | ✓ kept |
model.language_model.layers
Original · 24
Fixture · 2
| Kind | Original | Fixture | |
|---|---|---|---|
| Qwen2DecoderLayer | 24 | 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.vision_tower.encoder.layers | 396.2M | 44.3% | 66.9K | 0.7% |
| model.language_model.layers | 357.9M | 40.0% | 74.2K | 0.7% |
| model.language_model | 136.2M | 15.2% | 9.7M | 97.7% |
| model.multi_modal_projector | 1.8M | 0.2% | 8.3K | 0.1% |
| model.vision_tower | 1.5M | 0.2% | 84.5K | 0.8% |
| model | 896 | 0.0% | 64 | 0.0% |
Preserved properties
| Config | Property | Original | Fixture | |
|---|---|---|---|---|
| model | model_type | llava_onevision | llava_onevision | ✓ kept |
| model | tie_word_embeddings | True | True | ✓ kept |
| vision_config | model_type | siglip_vision_model | siglip_vision_model | ✓ kept |
| vision_config | hidden_act | gelu_pytorch_tanh | gelu_pytorch_tanh | ✓ kept |
| vision_config | image_size | 384 | 384 | ✓ kept |
| vision_config | patch_size | 14 | 14 | ✓ kept |
| vision_config | num_channels | 3 | 3 | ✓ kept |
| text_config | attention style | GQA (14 heads, 2 KV) | GQA (4 heads, 2 KV) | ✓ kept |
| text_config | RoPE type | default | default | ✓ kept |
| text_config | model_type | qwen2 | qwen2 | ✓ kept |
| text_config | vocab_size | 152000 | 152000 | ✓ kept |
| text_config | tie_word_embeddings | True | True | ✓ 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 LlavaOnevision omitted).
| Class | Original | Fixture |
|---|---|---|
| Linear | 327 | 29 |
| LayerNorm | 53 | 5 |
| Qwen2RMSNorm | 49 | 5 |
| GELUTanh | 26 | 2 |
| SiglipAttention | 26 | 2 |
| SiglipEncoderLayer | 26 | 2 |
| SiglipMLP | 26 | 2 |
| Qwen2Attention | 24 | 2 |
| Qwen2DecoderLayer | 24 | 2 |
| Qwen2MLP | 24 | 2 |
| SiLUActivation | 24 | 2 |
| Embedding | 2 | 2 |
| ModuleList | 2 | 2 |
| Conv2d | 1 | 1 |
| GELUActivation | 1 | 1 |
| ForConditionalGeneration | 1 | 1 |
| Model | 1 | 1 |
| MultiModalProjector | 1 | 1 |
| Qwen2Model | 1 | 1 |
| Qwen2RotaryEmbedding | 1 | 1 |
| SiglipEncoder | 1 | 1 |
| SiglipVisionEmbeddings | 1 | 1 |
| SiglipVisionModel | 1 | 1 |
Config changes
9 fields changed, 61 unchanged.
| Field | Original | Fixture |
|---|---|---|
| text_config.hidden_size | 896 | 64 |
| text_config.intermediate_size | 4864 | 128 |
| text_config.layer_types | 24 entries: 24× full_attention | ["full_attention", "full_attention"] |
| text_config.num_attention_heads | 14 | 4 |
| text_config.num_hidden_layers | 24 | 2 |
| vision_config.hidden_size | 1152 | 64 |
| vision_config.intermediate_size | 4304 | 128 |
| vision_config.num_attention_heads | 16 | 4 |
| vision_config.num_hidden_layers | 26 | 2 |