merve / siglip-so400m-patch16-256-i18n

huggingface.co
Total runs: 37
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: October 21 2024

Introduction of siglip-so400m-patch16-256-i18n

Model Details of siglip-so400m-patch16-256-i18n

Note : This is not yet supported in transformers, install transformers from here if you want to try it.

SigLIP (shape-optimized model)

SigLIP model pre-trained on WebLi at resolution 384x384. It was introduced in the paper Sigmoid Loss for Language Image Pre-Training by Zhai et al. and first released in this repository .

This model has the SoViT-400m architecture, which is the shape-optimized version as presented in Getting ViT in Shape: Scaling Laws for Compute-Optimal Model Design by Alabdulmohsin et al.

Disclaimer: The team releasing SigLIP did not write a model card for this model so this model card has been written by the Hugging Face team.

Model description

SigLIP is CLIP , a multimodal model, with a better loss function. The sigmoid loss operates solely on image-text pairs and does not require a global view of the pairwise similarities for normalization. This allows further scaling up the batch size, while also performing better at smaller batch sizes.

A TLDR of SigLIP by one of the authors can be found here .

Intended uses & limitations

You can use the raw model for tasks like zero-shot image classification and image-text retrieval. See the model hub to look for other versions on a task that interests you.

How to use

Here is how to use this model to perform zero-shot image classification:

from PIL import Image
import requests
from transformers import AutoProcessor, AutoModel
import torch

model = AutoModel.from_pretrained("merve/siglip-so400m-patch16-256-i18n")
processor = AutoProcessor.from_pretrained("merve/siglip-so400m-patch16-256-i18n")

url = "http://images.cocodataset.org/val2017/000000039769.jpg"
image = Image.open(requests.get(url, stream=True).raw)

texts = ["a photo of 2 cats", "a photo of 2 dogs"]
inputs = processor(text=texts, images=image, padding="max_length", return_tensors="pt")

with torch.no_grad():
    outputs = model(**inputs)

logits_per_image = outputs.logits_per_image
probs = torch.sigmoid(logits_per_image) # these are the probabilities
print(f"{probs[0][0]:.1%} that image 0 is '{texts[0]}'")

Alternatively, one can leverage the pipeline API which abstracts away the complexity for the user:

from transformers import pipeline
from PIL import Image
import requests

# load pipe
image_classifier = pipeline(task="zero-shot-image-classification", model="merve/siglip-so400m-patch16-256-i18n")

# load image
url = 'http://images.cocodataset.org/val2017/000000039769.jpg'
image = Image.open(requests.get(url, stream=True).raw)

# inference
outputs = image_classifier(image, candidate_labels=["2 cats", "a plane", "a remote"])
outputs = [{"score": round(output["score"], 4), "label": output["label"] } for output in outputs]
print(outputs)

For more code examples, we refer to the documentation .

Training procedure
Training data

SigLIP is pre-trained on the WebLI dataset (Chen et al., 2023) .

Preprocessing

Images are resized/rescaled to the same resolution (384x384) and normalized across the RGB channels with mean (0.5, 0.5, 0.5) and standard deviation (0.5, 0.5, 0.5).

Texts are tokenized and padded to the same length (64 tokens).

Compute

The model was trained on 16 TPU-v4 chips for three days.

Evaluation results

Evaluation of SigLIP compared to CLIP is shown below (taken from the paper).

drawing

BibTeX entry and citation info
@misc{zhai2023sigmoid,
      title={Sigmoid Loss for Language Image Pre-Training}, 
      author={Xiaohua Zhai and Basil Mustafa and Alexander Kolesnikov and Lucas Beyer},
      year={2023},
      eprint={2303.15343},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

Runs of merve siglip-so400m-patch16-256-i18n on huggingface.co

37
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About siglip-so400m-patch16-256-i18n huggingface.co Model

More siglip-so400m-patch16-256-i18n license Visit here:

https://choosealicense.com/licenses/apache-2.0

siglip-so400m-patch16-256-i18n huggingface.co

siglip-so400m-patch16-256-i18n huggingface.co is an AI model on huggingface.co that provides siglip-so400m-patch16-256-i18n's model effect (), which can be used instantly with this merve siglip-so400m-patch16-256-i18n model. huggingface.co supports a free trial of the siglip-so400m-patch16-256-i18n model, and also provides paid use of the siglip-so400m-patch16-256-i18n. Support call siglip-so400m-patch16-256-i18n model through api, including Node.js, Python, http.

siglip-so400m-patch16-256-i18n huggingface.co Url

https://huggingface.co/merve/siglip-so400m-patch16-256-i18n

merve siglip-so400m-patch16-256-i18n online free

siglip-so400m-patch16-256-i18n huggingface.co is an online trial and call api platform, which integrates siglip-so400m-patch16-256-i18n's modeling effects, including api services, and provides a free online trial of siglip-so400m-patch16-256-i18n, you can try siglip-so400m-patch16-256-i18n online for free by clicking the link below.

merve siglip-so400m-patch16-256-i18n online free url in huggingface.co:

https://huggingface.co/merve/siglip-so400m-patch16-256-i18n

siglip-so400m-patch16-256-i18n install

siglip-so400m-patch16-256-i18n is an open source model from GitHub that offers a free installation service, and any user can find siglip-so400m-patch16-256-i18n on GitHub to install. At the same time, huggingface.co provides the effect of siglip-so400m-patch16-256-i18n install, users can directly use siglip-so400m-patch16-256-i18n installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

siglip-so400m-patch16-256-i18n install url in huggingface.co:

https://huggingface.co/merve/siglip-so400m-patch16-256-i18n

Url of siglip-so400m-patch16-256-i18n

siglip-so400m-patch16-256-i18n huggingface.co Url

Provider of siglip-so400m-patch16-256-i18n huggingface.co

merve
ORGANIZATIONS

Other API from merve

huggingface.co

Total runs: 63
Run Growth: 42
Growth Rate: 66.67%
Updated:October 12 2023
huggingface.co

Total runs: 34
Run Growth: -24
Growth Rate: -70.59%
Updated:January 06 2024
huggingface.co

Total runs: 33
Run Growth: 14
Growth Rate: 42.42%
Updated:September 19 2025
huggingface.co

Total runs: 32
Run Growth: -6
Growth Rate: -18.18%
Updated:February 26 2024
huggingface.co

Total runs: 31
Run Growth: 15
Growth Rate: 48.39%
Updated:January 28 2026
huggingface.co

Total runs: 19
Run Growth: 12
Growth Rate: 63.16%
Updated:October 04 2023
huggingface.co

Total runs: 14
Run Growth: 7
Growth Rate: 50.00%
Updated:July 18 2024
huggingface.co

Total runs: 12
Run Growth: -4
Growth Rate: -33.33%
Updated:February 22 2024
huggingface.co

Total runs: 11
Run Growth: -2
Growth Rate: -18.18%
Updated:September 11 2025
huggingface.co

Total runs: 10
Run Growth: 9
Growth Rate: 90.00%
Updated:November 25 2023
huggingface.co

Total runs: 10
Run Growth: -3
Growth Rate: -42.86%
Updated:January 28 2023
huggingface.co

Total runs: 9
Run Growth: 6
Growth Rate: 66.67%
Updated:February 10 2023
huggingface.co

Total runs: 9
Run Growth: 2
Growth Rate: 22.22%
Updated:March 26 2024
huggingface.co

Total runs: 8
Run Growth: -22
Growth Rate: -275.00%
Updated:December 18 2024
huggingface.co

Total runs: 8
Run Growth: 4
Growth Rate: 50.00%
Updated:July 11 2023
huggingface.co

Total runs: 8
Run Growth: -1
Growth Rate: -12.50%
Updated:March 26 2024
huggingface.co

Total runs: 5
Run Growth: 3
Growth Rate: 60.00%
Updated:April 02 2023
huggingface.co

Total runs: 5
Run Growth: 3
Growth Rate: 60.00%
Updated:April 02 2023
huggingface.co

Total runs: 4
Run Growth: 0
Growth Rate: 0.00%
Updated:June 14 2023
huggingface.co

Total runs: 1
Run Growth: 1
Growth Rate: 100.00%
Updated:December 20 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:April 25 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:May 22 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 30 2022
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:May 30 2022
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:October 22 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 04 2024