Sentence Similarity
sentence-transformers
Safetensors
Persian
bert
feature-extraction
loss:CachedMultipleNegativesRankingLoss
text-embeddings-inference
Instructions to use PartAI/Tooka-SBERT-V2-Small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use PartAI/Tooka-SBERT-V2-Small with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("PartAI/Tooka-SBERT-V2-Small") sentences = [ "درنا از پرندگان مهاجر با پاهای بلند و گردن دراز است.", "درناها با قامتی بلند و بالهای پهن، از زیباترین پرندگان مهاجر به شمار میروند.", "درناها پرندگانی کوچک با پاهای کوتاه هستند که مهاجرت نمیکنند.", "ایران برای بار دیگر توانست به مدال طلا دست یابد." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from PartAI/Tooka-SBERT-V2-Small: direct link, hf CLI and curl.
- Browser
- Download file 3.97 MB
-
https://huggingface.co/PartAI/Tooka-SBERT-V2-Small/resolve/main/tokenizer.json
- Command line
-
hf download hf://PartAI/Tooka-SBERT-V2-Small/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/PartAI/Tooka-SBERT-V2-Small/resolve/main/tokenizer.json
3.97 MB
File too large to display, you can check the raw version instead.