google/siglip-base-patch16-224
Original203.2Mparameters
Fixture2.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.
text_model.encoder.layers
Original · 12
Fixture · 2
| Kind | Original | Fixture | |
|---|---|---|---|
| EncoderLayer | 12 | 2 | ✓ kept |
vision_model.encoder.layers
Original · 12
Fixture · 2
| Kind | Original | Fixture | |
|---|---|---|---|
| EncoderLayer | 12 | 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 |
|---|---|---|---|---|
| vision_model.encoder.layers | 85.1M | 41.9% | 66.9K | 2.9% |
| text_model.encoder.layers | 85.1M | 41.9% | 66.9K | 2.9% |
| text_model.embeddings | 24.6M | 12.1% | 2.1M | 89.8% |
| vision_model.head | 7.1M | 3.5% | 33.4K | 1.5% |
| vision_model.embeddings | 741.1K | 0.4% | 61.8K | 2.7% |
| text_model.head | 590.6K | 0.3% | 4.2K | 0.2% |
| vision_model.post_layernorm | 1.5K | 0.0% | 128 | 0.0% |
| 3 others | 1.5K | 0.0% | 130 | 0.0% |
Preserved properties
| Config | Property | Original | Fixture | |
|---|---|---|---|---|
| model | model_type | siglip | siglip | ✓ kept |
| text_config | model_type | siglip_text_model | siglip_text_model | ✓ kept |
| text_config | vocab_size | 32000 | 32000 | ✓ kept |
| text_config | hidden_act | gelu_pytorch_tanh | gelu_pytorch_tanh | ✓ kept |
| text_config | max_position_embeddings | 64 | 64 | ✓ 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 | 224 | 224 | ✓ kept |
| vision_config | patch_size | 16 | 16 | ✓ kept |
| vision_config | num_channels | 3 | 3 | ✓ kept |
Module classes
Instances of each class in the built model (prefix Siglip omitted).
| Class | Original | Fixture |
|---|---|---|
| Linear | 147 | 27 |
| LayerNorm | 51 | 11 |
| GELUTanh | 25 | 5 |
| MLP | 25 | 5 |
| Attention | 24 | 4 |
| EncoderLayer | 24 | 4 |
| Embedding | 3 | 3 |
| ModuleList | 2 | 2 |
| Encoder | 2 | 2 |
| Conv2d | 1 | 1 |
| MultiheadAttention | 1 | 1 |
| NonDynamicallyQuantizableLinear | 1 | 1 |
| Model | 1 | 1 |
| MultiheadAttentionPoolingHead | 1 | 1 |
| TextEmbeddings | 1 | 1 |
| TextModel | 1 | 1 |
| VisionEmbeddings | 1 | 1 |
| VisionModel | 1 | 1 |
Config changes
9 fields changed, 42 unchanged.
| Field | Original | Fixture |
|---|---|---|
| text_config.hidden_size | 768 | 64 |
| text_config.intermediate_size | 3072 | 128 |
| text_config.num_attention_heads | 12 | 4 |
| text_config.num_hidden_layers | 12 | 2 |
| text_config.projection_size | 768 | 64 |
| vision_config.hidden_size | 768 | 64 |
| vision_config.intermediate_size | 3072 | 128 |
| vision_config.num_attention_heads | 12 | 4 |
| vision_config.num_hidden_layers | 12 | 2 |