Model reference · open weights

Tooka-SBERT-Small

Embeddings PartAI Embeddings 1 build Licence not stated 810 dl/mo

Tooka-SBERT-Small is an open-weight embedding model from PartAI. Tooka-SBERT-V2-Small (FP32) weighs 246 MB; the smallest configuration that runs it is RTX 3060 12 GB.

For self-hosting, compare this build's requirements below with the GPU you plan to rent.

  • Tooka-SBERT-Small is a 123M parameter sentence transformer model developed by PartAI for semantic textual similarity tasks in Persian.
  • It supports a context length of 512 tokens and was trained using pretraining on the Targoman News dataset followed by fine-tuning on synthetic data.
  • The model is evaluated on the PTEB Benchmark, where it achieves a CrossTasks-Avg score of 70.62.

Summary of the PartAI/Tooka-SBERT-V2-Small model card, 2026-10-01

What it is

Released byPartAI
Released2025-05-13
Parameters123M
VRAM246 MB for the weights

What it runs on

Memory and cards for Tooka-SBERT-V2-Small (FP32)

246 MBweights, file size
1.1 GBruntime overhead
CardRunsMemory
RTX 3060 12 GBfits11.6 GB
RTX 4060 Ti 16 GBfits15.4 GB
RTX 3090 24 GBfits23.4 GB
RTX 4090 24 GBfits23.4 GB
RTX 5090 32 GBfits31.0 GB
L40S 48 GBfits44.0 GB
A100 80 GBfits78.2 GB
H100 80 GBfits78.1 GB
RTX PRO 6000 Blackwell 96 GBfits93.8 GB
DGX Spark (GB10) 128 GB unifiedfits107 GB
H200 141 GBfits138 GB
B200 180 GBfits176 GB

From the model card

What PartAI says about Tooka-SBERT-Small

Read the model card

This model is a Sentence Transformers model trained for semantic textual similarity and embedding tasks. It maps sentences and paragraphs to a dense vector space, where semantically similar texts are close together.

The model is trained in two sizes: Small and Large

Usage

Direct Usage (Sentence Transformers)

First install the Sentence Transformers library:

pip install sentence-transformers==3.4.1

Then you can load this model and run inference.

from sentence_transformers import SentenceTransformer

# Download from the 🤗 Hub
model = SentenceTransformer("PartAI/Tooka-SBERT-V2-Small")
# Run inference
sentences = [
    'درنا از پرندگان مهاجر با پاهای بلند و گردن دراز است.',
    'درناها با قامتی بلند و بال‌های پهن، از زیباترین پرندگان مهاجر به شمار می‌روند.',
    'درناها پرندگانی کوچک با پاهای کوتاه هستند که مهاجرت نمی‌کنند.'
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 768]

# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]

🛠️ Training Details

The training is performed in two stages:

  1. Pretraining on the Targoman News dataset
  2. Fine-tuning on multiple synthetic datasets

Stage 1: Pretraining

  • We use an asymmetric setup.
  • Input formatting:
    • Titles are prepended with "سوال: "
    • Texts are prepended with "متن: "
  • Loss function: CachedMultipleNegativesRankingLoss

Stage 2: Fine-tuning

  • Loss functions:
    • CachedMultipleNegativesRankingLoss
    • CoSENTLoss
  • Used across multiple synthetic datasets

📊 Evaluation

We evaluate our model on the PTEB Benchmark. Our model outperforms mE5-Base on average across PTEB tasks.

For Retrieval and Reranking tasks, we follow the same asymmetric structure, prepending:

  • "سوال: " to queries
  • "متن: " to documents
Model#ParamsPair-Classification-AvgClassification-AvgRetrieval-AvgReranking-AvgCrossTasks-Avg
Tooka-SBERT-V2-Large353M80.2474.7359.8073.4472.05
Tooka-SBERT-V2-Small123M75.6972.1661.2473.4070.62
jina-embeddings-v3572M71.8879.2765.1864.6270.24
multilingual-e5-base278M70.7669.7163.9076.0170.09
Tooka-SBERT-V1-Large353M81.5271.5445.6160.4464.78

Task-Specific Datasets in PTEB

  • Pair-Classification:

    • FarsTail
  • Classification:

    • MassiveIntentClassification
    • MassiveScenarioClassification
    • MultilingualSentimentClassification
    • PersianFoodSentimentClassification
  • Retrieval:

    • MIRACLRetrieval
    • NeuCLIR2023Retrieval
    • WikipediaRetrievalMultilingual
  • Reranking:

    • MIRACLReranking
    • WikipediaRerankingMultilingual

Citation

BibTeX

Sentence Transformers
@inproceedings{reimers-2019-sentence-bert,
    title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
    author = "Reimers, Nils and Gurevych, Iryna",
    booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
    month = "11",
    year = "2019",
    publisher = "Association for Computational Linguistics",
    url = "https://arxiv.org/abs/1908.10084",
}
CachedMultipleNegativesRankingLoss
@misc{gao2021scaling,
    title={Scaling Deep Contrastive Learning Batch Size under Memory Limited Setup},
    author={Luyu Gao and Yunyi Zhang and Jiawei Han and Jamie Callan},
    year={2021},
    eprint={2101.06983},
    archivePrefix={arXiv},
    primaryClass={cs.LG}
}

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms