Sentence Similarity
sentence-transformers
Safetensors
Macedonian
qwen3
trimmed
text-embeddings-inference
Instructions to use alphaedge-ai/Qwen3-Embedding-mkd-16384 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use alphaedge-ai/Qwen3-Embedding-mkd-16384 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("alphaedge-ai/Qwen3-Embedding-mkd-16384") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
|
Download README.md from alphaedge-ai/Qwen3-Embedding-mkd-16384: direct link, hf CLI and curl.
- Browser
- Download file 2.81 kB
-
https://huggingface.co/alphaedge-ai/Qwen3-Embedding-mkd-16384/resolve/main/README.md
- Command line
-
hf download hf://alphaedge-ai/Qwen3-Embedding-mkd-16384/README.md
-
curl -L -o README.md https://huggingface.co/alphaedge-ai/Qwen3-Embedding-mkd-16384/resolve/main/README.md
2.81 kB
metadata
pipeline_tag: sentence-similarity
language: mkd
license: apache-2.0
tags:
- trimmed
library_name: sentence-transformers
base_model: Qwen/Qwen3-Embedding-0.6B
base_model_relation: quantized
datasets:
- lbourdois/fineweb-2-trimming
Qwen3-Embedding-mkd-16384
This model is a 23.25% smaller version of Qwen/Qwen3-Embedding-0.6B optimized for Macedonian 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 | 151,669 tokens | 16,384 tokens | 89.20% |
| Model size | 595,776,512 params | 457,244,672 params | 23.25% |
Mining Dataset Statistics
- Number of texts used for mining: 200,000 texts
- Dataset: lbourdois/fineweb-2-trimming
Usage
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("alphaedge-ai/Qwen3-Embedding-mkd-16384")
# Run inference with queries and documents
query = "My query in Macedonian"
documents = [
"Chunk in Macedonian",
"Chunk in Macedonian",
"Chunk in Macedonian",
]
query_embeddings = model.encode_query(query)
document_embeddings = model.encode_document(documents)
print(query_embeddings.shape, document_embeddings.shape)
# Compute similarities to determine a ranking
similarities = model.similarity(query_embeddings, document_embeddings)
print(similarities)
Citations
Qwen3 Embedding
@article{qwen3embedding,
title={Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Models},
author={Zhang, Yanzhao and Li, Mingxin and Long, Dingkun and Zhang, Xin and Lin, Huan and Yang, Baosong and Xie, Pengjun and Yang, An and Liu, Dayiheng and Lin, Junyang and Huang, Fei and Zhou, Jingren},
journal={arXiv preprint arXiv:2506.05176},
year={2025}
}
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},
}
