Views
No views yet


sts-dev-1152, sts-dev-960, sts-dev-768 and sts-dev-512EmbeddingSimilarityEvaluator| Metric | sts-dev-1152 | sts-dev-960 | sts-dev-768 | sts-dev-512 |
|---|---|---|---|---|
| pearson_cosine | 0.8264 | 0.8259 | 0.8244 | 0.8238 |
| spearman_cosine | 0.8307 | 0.8302 | 0.8293 | 0.8293 |
SentenceTransformer(
(0): Transformer({'max_seq_length': 8192, 'do_lower_case': False}) with Transformer model: EuroBertModel
(1): Pooling({'word_embedding_dimension': 1152, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
)pip install -U sentence-transformers1from sentence_transformers import SentenceTransformer
2
3# Download from the 🤗 Hub
4model = SentenceTransformer("Omartificial-Intelligence-Space/AraEuroBert-610M")
5
6# Run inference
7sentences = [
8 'لاعبة كرة ناعمة ترمي الكرة إلى زميلتها في الفريق',
9 'شخصان يلعبان كرة البيسبول',
10 'لاعبين لكرة البيسبول يجلسان على مقعد',
11]
12embeddings = model.encode(sentences)
13print(embeddings.shape)
14# [3, 1152]
15
16# Get the similarity scores for the embeddings
17similarities = model.similarity(embeddings, embeddings)
18print(similarities.shape)
19# [3, 3]1@misc{boizard2025eurobertscalingmultilingualencoders,
2 title={EuroBERT: Scaling Multilingual Encoders for European Languages},
3 author={Nicolas Boizard and Hippolyte Gisserot-Boukhlef and Duarte M. Alves and André Martins and Ayoub Hammal and Caio Corro and Céline Hudelot and Emmanuel Malherbe and Etienne Malaboeuf and Fanny Jourdan and Gabriel Hautreux and João Alves and Kevin El-Haddad and Manuel Faysse and Maxime Peyrard and Nuno M. Guerreiro and Patrick Fernandes and Ricardo Rei and Pierre Colombo},
4 year={2025},
5 eprint={2503.05500},
6 archivePrefix={arXiv},
7 primaryClass={cs.CL},
8 url={https://arxiv.org/abs/2503.05500},
9}1@inproceedings{reimers-2019-sentence-bert,
2 title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
3 author = "Reimers, Nils and Gurevych, Iryna",
4 booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
5 month = "11",
6 year = "2019",
7 publisher = "Association for Computational Linguistics",
8 url = "https://arxiv.org/abs/1908.10084",
9}1@misc{kusupati2024matryoshka,
2 title={Matryoshka Representation Learning},
3 author={Aditya Kusupati and Gantavya Bhatt and Aniket Rege and Matthew Wallingford and Aditya Sinha and Vivek Ramanujan and William Howard-Snyder and Kaifeng Chen and Sham Kakade and Prateek Jain and Ali Farhadi},
4 year={2024},
5 eprint={2205.13147},
6 archivePrefix={arXiv},
7 primaryClass={cs.LG}
8}