Sentence Similarity
sentence-transformers
Safetensors
qwen3
feature-extraction
text-embeddings-inference
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 = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
File size: 375 Bytes
6fb33be | 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
}
|