Sentence Similarity
sentence-transformers
Safetensors
feature-extraction
Generated from Trainer
dataset_size:49500
loss:MultipleNegativesRankingLoss
Instructions to use leafxyz/main_v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use leafxyz/main_v2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("leafxyz/main_v2") sentences = [ "Instruct: Given an Arabic e-commerce search query, retrieve the product that best matches it\nQuery: عناية بالفم", "تن ريقا بزيت الزيتون 160جم", "Foramen Denture Clean Box", "صبغة شعر L'Oréal Paris - 5.45 Excellence" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
File size: 375 Bytes
5383a6a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | {
"add_prefix_space": false,
"backend": "tokenizers",
"bos_token": null,
"clean_up_tokenization_spaces": false,
"eos_token": "<|im_end|>",
"errors": "replace",
"is_local": false,
"local_files_only": false,
"model_max_length": 128,
"pad_token": "<|endoftext|>",
"split_special_tokens": false,
"tokenizer_class": "Qwen2Tokenizer",
"unk_token": null
}
|