Sentence Similarity
sentence-transformers
Safetensors
Russian
bert
embeddings
semantic-search
triplet-loss
russian
text-embeddings-inference
Instructions to use aurelianvolturi/all-MiniLM-L6-v2-ru-hnp-triplet with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use aurelianvolturi/all-MiniLM-L6-v2-ru-hnp-triplet with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("aurelianvolturi/all-MiniLM-L6-v2-ru-hnp-triplet") sentences = [ "Это счастливый человек", "Это счастливая собака", "Это очень счастливый человек", "Сегодня солнечный день" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Download config_sentence_transformers.json from aurelianvolturi/all-MiniLM-L6-v2-ru-hnp-triplet: direct link, hf CLI and curl.
- Browser
- Download file 206 Bytes
-
https://huggingface.co/aurelianvolturi/all-MiniLM-L6-v2-ru-hnp-triplet/resolve/main/config_sentence_transformers.json
- Command line
-
hf download hf://aurelianvolturi/all-MiniLM-L6-v2-ru-hnp-triplet/config_sentence_transformers.json
-
curl -L -o config_sentence_transformers.json https://huggingface.co/aurelianvolturi/all-MiniLM-L6-v2-ru-hnp-triplet/resolve/main/config_sentence_transformers.json
206 Bytes
| { | |
| "__version__": { | |
| "sentence_transformers": "3.4.1", | |
| "transformers": "4.49.0", | |
| "pytorch": "2.11.0+cu128" | |
| }, | |
| "prompts": {}, | |
| "default_prompt_name": null, | |
| "similarity_fn_name": "cosine" | |
| } |