Views
No views yet
| Metric | Original | Trimmed | Reduction |
|---|---|---|---|
| Vocabulary size | 256,000 tokens | 16,384 tokens | 93.60% |
| Model size | 882,313,218 params | 636,946,434 params | 27.81% |

1from transformers import pipeline
2
3# load pipeline
4image_classifier = pipeline(model="alphaedge-ai/siglip2-large-patch16-512-aze-16384", task="zero-shot-image-classification")
5
6# load image and candidate labels
7image = "http://images.cocodataset.org/val2017/000000039769.jpg"
8candidate_labels = ["Potential label 1 in Azerbaijani", "Potential label 2 in Azerbaijani", "Potential label 3 in Azerbaijani", "Potential label 4 in Azerbaijani"]
9
10# run inference
11outputs = image_classifier(image, candidate_labels)
12print(outputs)1from sentence_transformers import SentenceTransformer
2
3model = SentenceTransformer("alphaedge-ai/siglip2-large-patch16-512-aze-16384")
4
5images = [
6 "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/tasks/car.jpg",
7 "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/bee.jpg",
8 "https://huggingface.co/datasets/huggingface/cats-image/resolve/main/cats_image.jpeg"
9]
10texts = ["Text 1 in Azerbaijani", "Text 2 in Azerbaijani", "Text 3 in Azerbaijani", "Text 4 in Azerbaijani"]
11
12image_embeddings = model.encode(images)
13text_embeddings = model.encode(texts)
14print(image_embeddings.shape, text_embeddings.shape)
15
16similarities = model.similarity(image_embeddings, text_embeddings)
17print(similarities)@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},
}@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},
}