sdadas / mmlw-retrieval-roberta-large-v2

huggingface.co
Total runs: 23.2K
24-hour runs: 0
7-day runs: 851
30-day runs: 15.7K
Model's Last Updated: January 28 2026
sentence-similarity

Introduction of mmlw-retrieval-roberta-large-v2

Model Details of mmlw-retrieval-roberta-large-v2

MMLW-retrieval-roberta-large-v2

MMLW (muszę mieć lepszą wiadomość) are neural text encoders for Polish. The second version is based on the same foundational model ( polish-roberta-large-v2 ), but the training process incorporated modern LLM-based English retrievers and rerankers, which led to improved results. This model is optimized for information retrieval tasks. It can transform queries and passages to 1024 dimensional vectors. The model was developed using a two-step procedure:

Usage (Sentence-Transformers)

The model supports both information retrieval and semantic textual similarity. For retrieval, queries should be prefixed with "[query]: " . For symmetric tasks such as semantic similarity, both texts should be prefixed with "[sts]: " .

Please note that the model uses a custom implementation, so you should add trust_remote_code=True argument when loading it. It is also recommended to use Flash Attention 2, which can be enabled with attn_implementation argument. You can use the model like this with sentence-transformers :

from sentence_transformers import SentenceTransformer
from sentence_transformers.util import cos_sim

model = SentenceTransformer(
    "sdadas/mmlw-retrieval-roberta-large-v2",
    trust_remote_code=True,
    device="cuda",
    model_kwargs={"attn_implementation": "flash_attention_2", "trust_remote_code": True}
)
# Flash-Attention works only in 16-bit mode, so we need to cast the model to float16 or bfloat16
model.bfloat16()

# Retrieval example
query_prefix = "[query]: "
queries = [query_prefix + "Jak dożyć 100 lat?"]
answers = [
    "Trzeba zdrowo się odżywiać i uprawiać sport.",
    "Trzeba pić alkohol, imprezować i jeździć szybkimi autami.",
    "Gdy trwała kampania politycy zapewniali, że rozprawią się z zakazem niedzielnego handlu."
]
queries_emb = model.encode(queries, convert_to_tensor=True, show_progress_bar=False)
answers_emb = model.encode(answers, convert_to_tensor=True, show_progress_bar=False)
best_answer = cos_sim(queries_emb, answers_emb).argmax().item()
print(answers[best_answer])

# Semantic similarity example
sim_prefix = "[sts]: "
sentences = [
    sim_prefix + "Trzeba zdrowo się odżywiać i uprawiać sport.",
    sim_prefix + "Warto jest prowadzić zdrowy tryb życia, uwzględniający aktywność fizyczną i dietę.",
    sim_prefix + "One should eat healthy and engage in sports.",
    sim_prefix + "Zakupy potwierdzasz PINem, który bezpiecznie ustalisz podczas aktywacji."
]
emb = model.encode(sentences, convert_to_tensor=True, show_progress_bar=False)
print(cos_sim(emb, emb))
Evaluation Results

The model achieves NDCG@10 of 60.71 on the Polish Information Retrieval Benchmark. See PIRB Leaderboard for detailed results.

Citation
@inproceedings{dadas2024pirb,
  title={PIRB: A Comprehensive Benchmark of Polish Dense and Hybrid Text Retrieval Methods},
  author={Dadas, Slawomir and Pere{\l}kiewicz, Micha{\l} and Po{\'s}wiata, Rafa{\l}},
  booktitle={Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024)},
  pages={12761--12774},
  year={2024}
}

Runs of sdadas mmlw-retrieval-roberta-large-v2 on huggingface.co

23.2K
Total runs
0
24-hour runs
318
3-day runs
851
7-day runs
15.7K
30-day runs

More Information About mmlw-retrieval-roberta-large-v2 huggingface.co Model

More mmlw-retrieval-roberta-large-v2 license Visit here:

https://choosealicense.com/licenses/gemma

mmlw-retrieval-roberta-large-v2 huggingface.co

mmlw-retrieval-roberta-large-v2 huggingface.co is an AI model on huggingface.co that provides mmlw-retrieval-roberta-large-v2's model effect (), which can be used instantly with this sdadas mmlw-retrieval-roberta-large-v2 model. huggingface.co supports a free trial of the mmlw-retrieval-roberta-large-v2 model, and also provides paid use of the mmlw-retrieval-roberta-large-v2. Support call mmlw-retrieval-roberta-large-v2 model through api, including Node.js, Python, http.

mmlw-retrieval-roberta-large-v2 huggingface.co Url

https://huggingface.co/sdadas/mmlw-retrieval-roberta-large-v2

sdadas mmlw-retrieval-roberta-large-v2 online free

mmlw-retrieval-roberta-large-v2 huggingface.co is an online trial and call api platform, which integrates mmlw-retrieval-roberta-large-v2's modeling effects, including api services, and provides a free online trial of mmlw-retrieval-roberta-large-v2, you can try mmlw-retrieval-roberta-large-v2 online for free by clicking the link below.

sdadas mmlw-retrieval-roberta-large-v2 online free url in huggingface.co:

https://huggingface.co/sdadas/mmlw-retrieval-roberta-large-v2

mmlw-retrieval-roberta-large-v2 install

mmlw-retrieval-roberta-large-v2 is an open source model from GitHub that offers a free installation service, and any user can find mmlw-retrieval-roberta-large-v2 on GitHub to install. At the same time, huggingface.co provides the effect of mmlw-retrieval-roberta-large-v2 install, users can directly use mmlw-retrieval-roberta-large-v2 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

mmlw-retrieval-roberta-large-v2 install url in huggingface.co:

https://huggingface.co/sdadas/mmlw-retrieval-roberta-large-v2

Url of mmlw-retrieval-roberta-large-v2

mmlw-retrieval-roberta-large-v2 huggingface.co Url

Provider of mmlw-retrieval-roberta-large-v2 huggingface.co

sdadas
ORGANIZATIONS

Other API from sdadas

huggingface.co

Total runs: 529
Run Growth: 204
Growth Rate: 38.56%
Updated:February 12 2026
huggingface.co

Total runs: 503
Run Growth: -17
Growth Rate: -3.38%
Updated:January 30 2026
huggingface.co

Total runs: 475
Run Growth: 119
Growth Rate: 25.05%
Updated:January 28 2026
huggingface.co

Total runs: 434
Run Growth: 267
Growth Rate: 61.52%
Updated:February 12 2026
huggingface.co

Total runs: 324
Run Growth: 74
Growth Rate: 22.84%
Updated:February 12 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 29 2026