alt.freeweights.vision / siglip-so400m-patch14-384-ONNX
From: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.visionSubject:

siglip-so400m-patch14-384-ONNX

Date: 2026-11-15Commit: 1f4ddadSigned: 2DC28CC7B26A283B ✓

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

vision8.17GBsiglip-so400m-patch14-384-ONNXonnxpermissive
FactsParamsnot statedSize8.17 GBFormatsonnxTaskzero shot image classificationLicenseApache-2.0From sourcepermissive
$ fw get onnx-community/siglip-so400m-patch14-384-ONNX
# manifest sha256 3d92ae3f4c83… · 8.17 GB · 13 files
$ fw verify ./siglip-so400m-patch14-384-ONNX onnx-community/siglip-so400m-patch14-384-ONNX
From sourceHosted (signed)onnx-community/siglip-so400m-patch14-384-ONNXLast check: 2026-11-15 05:29 UTC

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

Quantized of siglip-so400m-patch14-384.

Runs withOpenVINOUltralyticsConvert withOliveONNXOptimumScan withModelScan

Overview

Size
8.17 GB
Weights
2 B (smallest of 8 ONNX variants)
Parameters
not stated
Formats
onnx
Task
zero shot image classification
License
Apache-2.0 (permissive)
Files
13, 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-so400m-patch14-384

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:29 UTCpassed

Model card

From the publisher at commit 1f4ddad. Shown as plain text with links; images open at the publisher.

siglip-so400m-patch14-384 (ONNX)#

This is an ONNX version of google/siglip-so400m-patch14-384. 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 (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("google/siglip-so400m-patch14-384")
processor = AutoProcessor.from_pretrained("google/siglip-so400m-patch14-384")

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-so400m-patch14-384")

# 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).

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

13 files · 8.17 GBWeights 2 B (smallest of 8 ONNX variants). Sizes and sha256 from the signed manifest.
Hide all 13 files with their sha256
FileSizesha256
.gitattributes1.58 KBb2edd226c6b1cd2d01eef5665bd45729424086f88ce4e410e183a8795b917f21
README.md4.96 KB758016c34fedafe4d5f0d836ebc290b5fdf510e6e9bb3e4dd088b11ecda06b4e
config.json921 B8ac63462d6a03f1d6f3340a7776fdebacc394d3f45521bce85004188c68d447b
onnx/model.onnx1.11 MB41a7fffb08f6f4ec362ea05ce3bec0aacbac9f097682a7c95289e5605ced8bcc
onnx/model.onnx_data3.51 GB8b589c149fd0e5bd6335ad9fd876137859dc95bc6735369939dea461f6dbc167
onnx/model_bnb4.onnx705 MBf29cbba47ee785d6857770916b24257d5d0fafd33cf3d911ac46a771f1e6a54d
onnx/model_fp16.onnx2 B7648eb81c4e9fef7b51879c6fcd6fb4b8863eea0cb2a978c508711dc52c80041
onnx/model_int8.onnx894 MB0025a818b08497a058012834f1eddde04d2ca8323f3b5ad5871e424cf3f74afd
onnx/model_q4.onnx705 MBf29cbba47ee785d6857770916b24257d5d0fafd33cf3d911ac46a771f1e6a54d
onnx/model_q4f16.onnx562 MBf44200b5241e219d549fa6708cc47e8194810ccb5ff212a733bf219e65dfa937
onnx/model_quantized.onnx894 MB0025a818b08497a058012834f1eddde04d2ca8323f3b5ad5871e424cf3f74afd
onnx/model_uint8.onnx894 MB464e8d470141ce6d3a90232c6a14687950327d884575275f1ec1882eaf0227b7
preprocessor_config.json394 Bec1f371074fb4867ea1c654e00bc5ea99d706f409aaebf8dc614d67c0735aff8
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
1f4ddadf48 pinned now2026-11-15 05:29 UTC13 files · 8.17 GB

Use it

$ fw get onnx-community/siglip-so400m-patch14-384-ONNX
# manifest sha256 3d92ae3f4c83… · 8.17 GB · 13 files
$ fw verify ./siglip-so400m-patch14-384-ONNX onnx-community/siglip-so400m-patch14-384-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-so400m-patch14-384-ONNX.json --dir ./siglip-so400m-patch14-384-ONNX $ python3 fw.py verify ./siglip-so400m-patch14-384-ONNX ./onnx-community__siglip-so400m-patch14-384-ONNX.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/siglip-so400m-patch14-384-ONNX --revision 1f4ddadf48ec688561567821df16095175f169fe --local-dir ./siglip-so400m-patch14-384-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
758016c34fedafe4d5f0d836ebc290b5fdf510e6e9bb3e4dd088b11ecda06b4e
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-so400m-patch14-384-ONNXDate: 2026-11-15Commit: 1f4ddadSigned: 2DC28CC7B26A283B ✓
Upstream
onnx-community/siglip-so400m-patch14-384-ONNX
Pinned commit
1f4ddadf48ec688561567821df16095175f169fe
Manifest
siglip-so400m-patch14-384-ONNX.json · .minisig
Manifest sha256
3d92ae3f4c83d6aa4781fb1268a4c3316b9734f8c872910cf3d41e8b1c0593d6
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 05:29 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/onnx-community/siglip-so400m-patch14-384-ONNX.json $ curl -O https://freeweights.allternit.com/manifests/onnx-community/siglip-so400m-patch14-384-ONNX.json.minisig $ minisign -Vm siglip-so400m-patch14-384-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-so400m-patch14-384 · 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-so400m-patch14-384-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-so400m-patch14-384-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