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 config.json from tranhuudan-fullstack-ai-engineer/final_model_main: direct link, hf CLI and curl.
- Browser
- Download file 709 Bytes
-
https://huggingface.co/tranhuudan-fullstack-ai-engineer/final_model_main/resolve/main/config.json
- Command line
-
hf download hf://tranhuudan-fullstack-ai-engineer/final_model_main/config.json
-
curl -L -o config.json https://huggingface.co/tranhuudan-fullstack-ai-engineer/final_model_main/resolve/main/config.json
709 Bytes
| { | |
| "_name_or_path": "./final_output", | |
| "architectures": [ | |
| "RobertaModel" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "bos_token_id": 0, | |
| "classifier_dropout": null, | |
| "eos_token_id": 2, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 768, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "layer_norm_eps": 1e-05, | |
| "max_position_embeddings": 258, | |
| "model_type": "roberta", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "pad_token_id": 1, | |
| "position_embedding_type": "absolute", | |
| "tokenizer_class": "PhobertTokenizer", | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.42.4", | |
| "type_vocab_size": 1, | |
| "use_cache": true, | |
| "vocab_size": 64001 | |
| } | |