Downloads · 30 days
10
7% of all-time downloads
alphaedge-ai/clip-ViT-B-32-multilingual-v1-sr-32768
clip-ViT-B-32-multilingual-v1-sr-32768 is a sentence similarity model from alphaedge-ai. Use it when you need a score for how close two texts are. It is set up for sentence-transformers. The card lists the license as mit.
This model is a smaller version of sentence-transformers/clip-ViT-B-32-multilingual-v1 optimized for Serbian language via vocabulary size reduction using the trimming method.
Downloads · 30 days
10
7% of all-time downloads
All-time downloads
144
Public
Parameters
68.1M
274 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors274 MB · 100%
From the Hugging Face model README
This model is a smaller version of sentence-transformers/clip-ViT-B-32-multilingual-v1 optimized for Serbian language via vocabulary size reduction using the trimming method.
This trimmed model should perform similarly to the original model with only 32,768 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.
| Metric | Original | Trimmed | Reduction |
|---|---|---|---|
| Vocabulary size | 119,547 tokens | 32,768 tokens | 86.30% |
| Model size (with visual encoder) | 222,976,512 params | 156,330,240 params | 29.89% |
| Model size (without visual encoder) | 135,127,296 params | 68,481,024 params | 49.32% |
Model size (with visual encoder)

Model size (without visual encoder)

from sentence_transformers import SentenceTransformer
model = SentenceTransformer("aphaedge-ai/clip-ViT-B-32-multilingual-v1-sr-32768")
clip = SentenceTransformer("sentence-transformers/clip-ViT-B-32")
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 = ["Potential label 1 in Serbian", "Potential label 2 in Serbian", "Potential label 3 in Serbian", "Potential label 4 in Serbian"]
image_embeddings = clip.encode(images)
text_embeddings = model.encode(texts)
print(image_embeddings.shape, text_embeddings.shape)
similarities = model.similarity(image_embeddings, text_embeddings)
print(similarities)
Hugging Face repo: https://huggingface.co/sentence-transformers/clip-ViT-B-32-multilingual-v1
@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},
}