Sentence Similarity
sentence-transformers
ONNX
Safetensors
OpenVINO
Transformers
Romanian
xlm-roberta
feature-extraction
text-embeddings-inference
Instructions to use BlackKakapo/cupidon-base-ro with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use BlackKakapo/cupidon-base-ro with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("BlackKakapo/cupidon-base-ro") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Transformers
How to use BlackKakapo/cupidon-base-ro with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("BlackKakapo/cupidon-base-ro") model = AutoModel.from_pretrained("BlackKakapo/cupidon-base-ro", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from BlackKakapo/cupidon-base-ro: direct link, hf CLI and curl.
- Browser
- Download file 1.43 kB
-
https://huggingface.co/BlackKakapo/cupidon-base-ro/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://BlackKakapo/cupidon-base-ro/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/BlackKakapo/cupidon-base-ro/resolve/main/tokenizer_config.json
1.43 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": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "bos_token": "<s>", | |
| "clean_up_tokenization_spaces": false, | |
| "cls_token": "<s>", | |
| "eos_token": "</s>", | |
| "extra_special_tokens": {}, | |
| "full_tokenizer_file": null, | |
| "mask_token": "<mask>", | |
| "max_length": 128, | |
| "model_max_length": 128, | |
| "pad_to_multiple_of": null, | |
| "pad_token": "<pad>", | |
| "pad_token_type_id": 0, | |
| "padding_side": "right", | |
| "sep_token": "</s>", | |
| "sp_model_kwargs": {}, | |
| "stride": 0, | |
| "tokenizer_class": "XLMRobertaTokenizerFast", | |
| "truncation_side": "right", | |
| "truncation_strategy": "longest_first", | |
| "unk_token": "<unk>" | |
| } | |