Sentence Similarity
sentence-transformers
PyTorch
Safetensors
Transformers
Polish
xlm-roberta
feature-extraction
mteb
Eval Results (legacy)
text-embeddings-inference
Instructions to use sdadas/mmlw-e5-large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use sdadas/mmlw-e5-large with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("sdadas/mmlw-e5-large") sentences = [ "query: Jak dożyć 100 lat?", "passage: Trzeba zdrowo się odżywiać i uprawiać sport.", "passage: Trzeba pić alkohol, imprezować i jeździć szybkimi autami.", "passage: Gdy trwała kampania politycy zapewniali, że rozprawią się z zakazem niedzielnego handlu." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Transformers
How to use sdadas/mmlw-e5-large with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("sdadas/mmlw-e5-large") model = AutoModel.from_pretrained("sdadas/mmlw-e5-large", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files1212 unmodified lines1213121412151216121712181219122012211222122312241212 unmodified lines## Citation```bibtex@article{dadas2024pirb,title={{PIRB}: A Comprehensive Benchmark of Polish Dense and Hybrid Text Retrieval Methods},author={Sławomir Dadas and Michał Perełkiewicz and Rafał Poświata},year={2024},eprint={2402.13350},archivePrefix={arXiv},primaryClass={cs.CL}}```1212 unmodified lines121312141215121612171218121912201221122212231212 unmodified lines## Citation```bibtex@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}}```
README.md+6-7