Skip to content
ModelListedExternal
Browse files

Siglip2 Large Patch16 384

ONNX export of google/siglip2-large-patch16-384 — the image and text towers as two separate ONNX files, sharing a tokenizer.

KindOtherVersionRevision 715c6f8

Model source

Kind
Other
File size
407 KB–1.18 GB
Version
vRevision 715c6f8
Updated
Sep 17, 2026
Downloads
0
Source
Hugging Face

Source description

siglip2-large-patch16-384 (ONNX)

ONNX export of google/siglip2-large-patch16-384 — the image and text towers as two separate ONNX files, sharing a tokenizer.

  • Source model: google/siglip2-large-patch16-384
  • Image input: NCHW, 384×384, float32, SigLIP normalization
  • Text input: fixed-length 64 tokens (SigLIP2's training-time max)
  • Embedding dim: 1024 (both towers, joint embedding space)

Files

FilePurposeSize
siglip2-large-patch16-384_image.onnximage tower (self-contained)1.2 GB
siglip2-large-patch16-384_text.onnx + _datatext tower (one external-data blob)0.4 MB + 2.1 GB
siglip2-large-patch16-384.jsonfast-tokenizer artifact33 MB

The text-tower's external-data blob (siglip2-large-patch16-384_text.onnx_data) must sit next to the .onnx file when loading; onnx.load(...) and onnxruntime.InferenceSession(...) resolve the relative reference automatically.

Usage

import onnxruntime as ort
from tokenizers import Tokenizer

# Image tower
img_sess = ort.InferenceSession("siglip2-large-patch16-384_image.onnx",
                                providers=["CUDAExecutionProvider", "CPUExecutionProvider"])
img_emb = img_sess.run(None, {"pixel_values": chw_image_batch})[0]

# Text tower
tok = Tokenizer.from_file("siglip2-large-patch16-384.json")
ids = [tok.encode(t).ids[:64] for t in texts]
txt_sess = ort.InferenceSession("siglip2-large-patch16-384_text.onnx",
                                providers=["CUDAExecutionProvider", "CPUExecutionProvider"])
txt_emb = txt_sess.run(None, {"input_ids": ids})[0]

Source license

Inherits Apache-2.0 from the upstream model.

Sources

1 source
Hugging FacePrimaryVersion 715c6f838c241ddc33cd057486f16934f6cb6dfb
huggingface.co/occurra/siglip2-large-patch16-384/tree/715c6f838c241ddc33cd057486f16934f6cb6dfb

Verified Sep 17

Download files

Model artifacts

3 artifacts

siglip2-large-patch16-384_image_v2.onnx

onnx · 425 KB · SHA-256 2e27db347c93…7808 · Hugging Face

Download file

siglip2-large-patch16-384_image.onnx

onnx · 1.18 GB · SHA-256 be3c3c9625fc…961f · Hugging Face

Download file

siglip2-large-patch16-384_text.onnx

onnx · 407 KB · SHA-256 f8daaf47a06f…b354 · Hugging Face

Download file

Source excerpts

2 excerpts

--- license: apache-2.0 library_name: onnx tags: - siglip - siglip2 - image-text - onnx pipeline_tag: zero-shot-image-classification --- # siglip2-large-patch16-384 (ONNX) ONNX export of [`google/siglip2-large-patch16-384`](https://huggingface.co/google/siglip2-large-patch16-384) — the image and text towers as two separate ONNX files, sharing a tokenizer. - **Source model:** `google/siglip2-large-patch16-384` - **Image input:** `NCHW`, 384×384, float32, SigLIP normalization - **Text input:** fixed-length 64 tokens (SigLIP2's training-time max) - **Embedding dim:** **1024** (both towers, joint embedding space) ## Files | File | Purpose | Size | | ---- | ------- | ---- | | `siglip2-large-patch16-384_image.onnx` | image tower (self-contained) | 1.2 GB | | `siglip2-large-patch16-384_text.onnx` + `_data` | text tower (one external-data blob) | 0.4 MB + 2.1 GB | | `siglip2-large-patch16-384.json` | fast-tokenizer artifact | 33 MB | The text-tower's external-data blob (`siglip2-large-patch16-384_text.onnx_data`) must sit next to the `.onnx` file when loading; `onnx.load(...)` and `onnxruntime.InferenceSession(...)` resolve the relative reference automatically. ## Usage ```python import onnxruntime as ort from tokenizers import Tokenizer # Image tower img_sess = ort.InferenceSession("siglip2-large-patch16-384_image.onnx", providers=["CUDAExecutionProvider", "CPUExecutionProvider"]) img_emb = img_sess.run(None, {"pixel_values": chw_image_batch})[0] # Text tower tok = Tokenizer.from_file("siglip2-large-patch16-384.json") ids = [tok.encode(t).ids[:64] for t in texts] txt_sess = ort.InferenceSession("siglip2-large-patch16-384_text.onnx", providers=["CUDAExecutionProvider", "CPUExecutionProvider"]) txt_emb = txt_sess.run(None, {"input_ids": ids})[0] ``` ## Source license Inherits [Apache-2.0 from the upstream model](https://huggingface.co/google/siglip2-large-patch16-384).

Source context: 0 downloads · 0 likes · Pipeline zero-shot-image-classification · Library onnx · Repo occurra/siglip2-large-patch16-384