OpenGVLab/InternVL3-1B-hf
Original802.3Mparameters
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.layer
Original · 24
Fixture · 2
| Kind | Original | Fixture | |
|---|---|---|---|
| VisionLayer | 24 | 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.language_model.layers | 357.9M | 44.6% | 74.2K | 0.7% |
| model.vision_tower.encoder.layer | 302.4M | 37.7% | 67.2K | 0.7% |
| model.language_model | 135.9M | 16.9% | 9.7M | 97.3% |
| model.multi_modal_projector | 4.5M | 0.6% | 21.1K | 0.2% |
| model.vision_tower | 1.7M | 0.2% | 103.4K | 1.0% |
Preserved properties
| Config | Property | Original | Fixture | |
|---|---|---|---|---|
| model | model_type | internvl | internvl | ✓ kept |
| model | tie_word_embeddings | True | True | ✓ kept |
| vision_config | model_type | internvl_vision | internvl_vision | ✓ kept |
| vision_config | hidden_act | gelu | gelu | ✓ kept |
| vision_config | image_size | [448, 448] | [448, 448] | ✓ kept |
| vision_config | patch_size | [14, 14] | [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 | dynamic | dynamic | ✓ kept |
| text_config | model_type | qwen2 | qwen2 | ✓ kept |
| text_config | vocab_size | 151674 | 151674 | ✓ 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 InternVL omitted).
| Class | Original | Fixture |
|---|---|---|
| Linear | 315 | 29 |
| Identity | 73 | 7 |
| LayerNorm | 49 | 5 |
| Qwen2RMSNorm | 49 | 5 |
| Dropout | 25 | 3 |
| GELUActivation | 25 | 3 |
| VisionAttention | 24 | 2 |
| VisionLayer | 24 | 2 |
| VisionMLP | 24 | 2 |
| Qwen2Attention | 24 | 2 |
| Qwen2DecoderLayer | 24 | 2 |
| Qwen2MLP | 24 | 2 |
| SiLUActivation | 24 | 2 |
| ModuleList | 2 | 2 |
| Conv2d | 1 | 1 |
| Embedding | 1 | 1 |
| ForConditionalGeneration | 1 | 1 |
| Model | 1 | 1 |
| MultiModalProjector | 1 | 1 |
| VisionEmbeddings | 1 | 1 |
| VisionEncoder | 1 | 1 |
| VisionModel | 1 | 1 |
| VisionPatchEmbeddings | 1 | 1 |
| Qwen2Model | 1 | 1 |
| Qwen2RotaryEmbedding | 1 | 1 |
Config changes
9 fields changed, 68 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 | 1024 | 64 |
| vision_config.intermediate_size | 4096 | 128 |
| vision_config.num_attention_heads | 16 | 4 |
| vision_config.num_hidden_layers | 24 | 2 |