siglip (image classification)
An image-text model with separate image and text encoders, trained with a pairwise sigmoid loss.
Multimodal · 314 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Multimodal
- Parameters
- 92.9M
- Operations
- 314
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2023
- Source
- transformers 5.18.0
- Name in source
- siglip:image-classification
- License
- Apache-2.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m9190
- Graph hash
- 7124702f4df08ea92e8709821dd27b6eb02eae088c063029be703a56923a9243
- Skeleton hash
- 9ecac490770e684dfd938d2c4d422432fbc342d9bb239c73bb4269bc1787b1c5
- Architecture hash
- a27343d53be88e960b56dfb1f7936ff17b2cd02b5a162829628930ecc553f409
- Diagram SHA-256
- 15772112ed22ae24f3b2812a90ad8cda71336eb7e84415caffa252c5e05b2f99
- TorchLens version
- 2.35.3
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
How this diagram was made
transformers.AutoModelForImageClassification.from_config()
What it is
This model is SiglipForImageClassification, the form of SigLIP set up for image classification.
SigLIP is a multimodal image-text model similar to CLIP, with separate image and text encoders that generate a representation for each modality. Unlike CLIP, it is trained with a pairwise sigmoid loss on image-text pairs. That loss removes the need for a global view of all pairwise similarities between the images and texts in a batch. As a consequence it scales more efficiently to larger batch sizes.
The model was trained with text padded to the maximum length, so the tokenizer or processor should be given padding set to max_length.
Key idea. SigLIP trains separate image and text encoders with a pairwise sigmoid loss on image-text pairs, which removes the need for a global view of all pairwise similarities in a batch.
- SigLIP
- sigmoid loss
- image-text model
- zero-shot image classification
- pairwise sigmoid loss
- image and text encoders
- image classification
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.