alt.freeweights.vision / siglip-base-patch16-224-ONNX
From: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.visionSubject:

siglip-base-patch16-224-ONNX

Date: 2026-11-15Commit: 9f0328bSigned: 2DC28CC7B26A283B ✓

Zero shot image classification model. Onnx weights, 1.88 GB in all. Published by onnx-community under Apache-2.0.

vision1.88GBsiglip-base-patch16-224-ONNXonnxpermissive
FactsParamsnot statedSize1.88 GBFormatsonnxTaskzero shot image classificationLicenseApache-2.0From sourcepermissive
$ fw get onnx-community/siglip-base-patch16-224-ONNX
# manifest sha256 3f13fb9ad72d… · 1.88 GB · 10 files
$ fw verify ./siglip-base-patch16-224-ONNX onnx-community/siglip-base-patch16-224-ONNX
From sourceHosted (signed)onnx-community/siglip-base-patch16-224-ONNXLast check: 2026-11-15 05:21 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Quantized of siglip-base-patch16-224.

Runs withOpenVINOUltralyticsConvert withOliveONNXOptimumScan withModelScan

Overview

Size
1.88 GB
Weights
210 MB (smallest of 6 ONNX variants)
Parameters
not stated
Formats
onnx
Task
zero shot image classification
License
Apache-2.0 (permissive)
Files
10, each with a sha256
Publisher
onnx-community
Added
2026-11-15
Section
alt.freeweights.vision
Lineage

Original release from the publisher.

Base model: google/siglip-base-patch16-224

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 05:21 UTCpassed

Model card

From the publisher at commit 9f0328b. Shown as plain text with links; images open at the publisher.

siglip-base-patch16-224 (ONNX)#

This is an ONNX version of google/siglip-base-patch16-224. It was automatically converted and uploaded using this Hugging Face Space.

Usage with Transformers.js#

See the pipeline documentation for zero-shot-image-classification: https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.ZeroShotImageClassificationPipeline


SigLIP (base-sized model)#

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

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("google/siglip-base-patch16-224")
processor = AutoProcessor.from_pretrained("google/siglip-base-patch16-224")

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="google/siglip-base-patch16-224")

# 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 English image-text pairs of the WebLI dataset (Chen et al., 2023).

Preprocessing#

Images are resized/rescaled to the same resolution (224x224) 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).

Image: 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}
}

Files

10 files · 1.88 GBWeights 210 MB (smallest of 6 ONNX variants). Sizes and sha256 from the signed manifest.
Hide all 10 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md4.75 KB80e5a7e25c7133fa4d95a02b09dcc8ddd73c877091002475819b4eed264fff73
config.json918 Be97dd7d219a4689bbbe90ef767ce757cee99b99879d9d62010bdb1fa6620592a
onnx/model.onnx813 MBb2717b471063b59d088d8059a1be7d2c9d7af684cb1cfa6c0623d900e5541aad
onnx/model_bnb4.onnx213 MB23524997f929fe8d628f5f36a685a6d59491e61ae88bff7a8bb7559dfe0697c9
onnx/model_int8.onnx210 MB6f4f2d66dac783d6a72204961df627789fc559c98ab76f8ea36c4f6b1ba89058
onnx/model_q4.onnx224 MBee19786aa55c1ed8fc762d0e1d539c48fd379b9d2a53871b2a202d470788d0a5
onnx/model_quantized.onnx210 MB6f4f2d66dac783d6a72204961df627789fc559c98ab76f8ea36c4f6b1ba89058
onnx/model_uint8.onnx210 MB4e38adb1ce6c90ea08efe238c08c7ce37cae03ace0ac8814838fcf8af1799837
preprocessor_config.json394 Bbec6ca696ddd6c2050ce0ea9fcb7581b052d267059a3341b6c1456cab54b1d07
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
9f0328bdd0 pinned now2026-11-15 05:21 UTC10 files · 1.88 GB

Use it

$ fw get onnx-community/siglip-base-patch16-224-ONNX
# manifest sha256 3f13fb9ad72d… · 1.88 GB · 10 files
$ fw verify ./siglip-base-patch16-224-ONNX onnx-community/siglip-base-patch16-224-ONNX
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/onnx-community/siglip-base-patch16-224-ONNX.json --dir ./siglip-base-patch16-224-ONNX $ python3 fw.py verify ./siglip-base-patch16-224-ONNX ./onnx-community__siglip-base-patch16-224-ONNX.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/siglip-base-patch16-224-ONNX --revision 9f0328bdd0eb4f62d0f6c10625f43d882b32102b --local-dir ./siglip-base-patch16-224-ONNX

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
80e5a7e25c7133fa4d95a02b09dcc8ddd73c877091002475819b4eed264fff73
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.visionSubject: siglip-base-patch16-224-ONNXDate: 2026-11-15Commit: 9f0328bSigned: 2DC28CC7B26A283B ✓
Upstream
onnx-community/siglip-base-patch16-224-ONNX
Pinned commit
9f0328bdd0eb4f62d0f6c10625f43d882b32102b
Manifest
siglip-base-patch16-224-ONNX.json · .minisig
Manifest sha256
3f13fb9ad72da0c4df3768410ef06a91990e90895fa9492e26e549c97f9362fe
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 05:21 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/onnx-community/siglip-base-patch16-224-ONNX.json $ curl -O https://freeweights.allternit.com/manifests/onnx-community/siglip-base-patch16-224-ONNX.json.minisig $ minisign -Vm siglip-base-patch16-224-ONNX.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

google/siglip-base-patch16-224 · this model is a quantization of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/siglip-base-patch16-224-ONNX
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. siglip-base-patch16-224-ONNX.json. Provenance. Takedown history: none.
From: dima806 <huggingface.co/dima806>Subject: ai_vs_real_image_detection
From: legekka <huggingface.co/legekka>Subject: AI-Anime-Image-Detector-ViT
From: onnx-community <huggingface.co/onnx-community>Subject: AI-Anime-Image-Detector-ViT-ONNX
From: AICodexLab <huggingface.co/AICodexLab>Subject: answerdotai-ModernBERT-base-ai-detector
From: onnx-community <huggingface.co/onnx-community>Subject: answerdotai-ModernBERT-base-ai-detector-ONNX
From: onnx-community <huggingface.co/onnx-community>Subject: bart-large-cnn-ONNX