siglip2-base-patch16-512-zho-16384

This model is a 48.97% smaller version of google/siglip2-base-patch16-512 optimized for Chinese language via vocabulary size reduction using the trimming method.
This trimmed model should perform similarly to the original model with only 16,384 tokens and a much smaller memory footprint. However, it may not perform well for other languages as tokens not commonly used in the selected languages were removed from the vocabulary.

Model Statistics

Metric Original Trimmed Reduction
Vocabulary size 256,000 tokens 16,384 tokens 93.60%
Model size 375,823,874 params 191,798,786 params 48.97%

image

Mining Dataset Statistics

Usage

Transformers (zero-shot image classification)

from transformers import pipeline

# load pipeline
image_classifier = pipeline(model="alphaedge-ai/siglip2-base-patch16-512-zho-16384", task="zero-shot-image-classification")

# load image and candidate labels
image = "http://images.cocodataset.org/val2017/000000039769.jpg"
candidate_labels = ["Potential label 1 in Chinese", "Potential label 2 in Chinese", "Potential label 3 in Chinese", "Potential label 4 in Chinese"]

# run inference
outputs = image_classifier(image, candidate_labels)
print(outputs)

Sentence-transformers (texts-images similarity)

from sentence_transformers import SentenceTransformer

model = SentenceTransformer("alphaedge-ai/siglip2-base-patch16-512-zho-16384")

images = [
    "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/tasks/car.jpg",
    "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/bee.jpg",
    "https://huggingface.co/datasets/huggingface/cats-image/resolve/main/cats_image.jpeg"
]
texts = ["Text 1 in Chinese", "Text 2 in Chinese", "Text 3 in Chinese", "Text 4 in Chinese"]

image_embeddings = model.encode(images)
text_embeddings = model.encode(texts)
print(image_embeddings.shape, text_embeddings.shape)

similarities = model.similarity(image_embeddings, text_embeddings)
print(similarities)

Citations

SigLIP 2

@misc{tschannen2025siglip2multilingualvisionlanguage,
      title={SigLIP 2: Multilingual Vision-Language Encoders with Improved Semantic Understanding, Localization, and Dense Features}, 
      author={Michael Tschannen and Alexey Gritsenko and Xiao Wang and Muhammad Ferjad Naeem and Ibrahim Alabdulmohsin and Nikhil Parthasarathy and Talfan Evans and Lucas Beyer and Ye Xia and Basil Mustafa and Olivier Hénaff and Jeremiah Harmsen and Andreas Steiner and Xiaohua Zhai},
      year={2025},
      eprint={2502.14786},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2502.14786}, 
}

Trimming blog post

@misc{hf_blogpost_trimming,
      title={Introduction to Trimming}, 
      author={Loïck BOURDOIS and Tom AARSEN and Bram VANROY and Christopher AKIKI and Woojun JUNG and Manuel ROMERO and Prithiv SAKTHI},
      year={2026},
      url={https://huggingface.co/blog/lbourdois/introduction-to-trimming}, 
}
Downloads last month
9
Safetensors
Model size
0.2B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for alphaedge-ai/siglip2-base-patch16-512-zho-16384

Quantized
(136)
this model

Dataset used to train alphaedge-ai/siglip2-base-patch16-512-zho-16384

Collection including alphaedge-ai/siglip2-base-patch16-512-zho-16384

Paper for alphaedge-ai/siglip2-base-patch16-512-zho-16384