Sentence Similarity
sentence-transformers
Safetensors
roberta
feature-extraction
Generated from Trainer
dataset_size:102645
loss:CosineSimilarityLoss
Eval Results (legacy)
Instructions to use tranhuudan-fullstack-ai-engineer/final_model_main with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use tranhuudan-fullstack-ai-engineer/final_model_main with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("tranhuudan-fullstack-ai-engineer/final_model_main") sentences = [ "Tổng thống Bulgaria cố gắng phá vỡ bế tắc bầu cử", "Maldives tổ chức bầu cử tổng thống mới", "Cháy rừng Oklahoma phá hủy nhà cửa - trong ảnh", "Một đang đi dọc theo một hồ bơi." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from tranhuudan-fullstack-ai-engineer/final_model_main: direct link, hf CLI and curl.
- Browser
- Download file 1.14 kB
-
https://huggingface.co/tranhuudan-fullstack-ai-engineer/final_model_main/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://tranhuudan-fullstack-ai-engineer/final_model_main/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/tranhuudan-fullstack-ai-engineer/final_model_main/resolve/main/tokenizer_config.json
1.14 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 | |
| }, | |
| "64000": { | |
| "content": "<mask>", | |
| "lstrip": false, | |
| "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": "PhobertTokenizer", | |
| "unk_token": "<unk>" | |
| } | |