Sentence Similarity
sentence-transformers
Safetensors
xlm-roberta
feature-extraction
dataset_size:100K<n<1M
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Instructions to use Stern5497/nir-2024-xlm-roberta-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Stern5497/nir-2024-xlm-roberta-base with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Stern5497/nir-2024-xlm-roberta-base") sentences = [ "who did ezra play for in the nfl", "how many all nba first teams does kobe have", "who does the voice of the little mermaid", "dont come around here no more video director" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from Stern5497/nir-2024-xlm-roberta-base: direct link, hf CLI and curl.
- Browser
- Download file 1.15 kB
-
https://huggingface.co/Stern5497/nir-2024-xlm-roberta-base/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://Stern5497/nir-2024-xlm-roberta-base/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/Stern5497/nir-2024-xlm-roberta-base/resolve/main/tokenizer_config.json
1.15 kB
| { | |
| "added_tokens_decoder": { | |
| "0": { | |
| "content": "<s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "1": { | |
| "content": "<pad>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "2": { | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "3": { | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "250001": { | |
| "content": "<mask>", | |
| "lstrip": true, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "bos_token": "<s>", | |
| "clean_up_tokenization_spaces": true, | |
| "cls_token": "<s>", | |
| "eos_token": "</s>", | |
| "mask_token": "<mask>", | |
| "model_max_length": 512, | |
| "pad_token": "<pad>", | |
| "sep_token": "</s>", | |
| "tokenizer_class": "XLMRobertaTokenizer", | |
| "unk_token": "<unk>" | |
| } | |