Sentence Similarity
sentence-transformers
Safetensors
roberta
feature-extraction
Generated from Trainer
dataset_size:11498
loss:CosineSimilarityLoss
Eval Results (legacy)
Instructions to use tranhuudan-fullstack-ai-engineer/model_stage4_v1_latest with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use tranhuudan-fullstack-ai-engineer/model_stage4_v1_latest with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("tranhuudan-fullstack-ai-engineer/model_stage4_v1_latest") sentences = [ "Đó là chính thức: Thỏa thuận đạt được trên \\\"vách đá tài chính\\\"", "Chỉ số trung bình công nghiệp Dow Jones . DJI kết thúc phiên tăng 56,79 điểm, tương đương 0,67%, lên 8.588,36 điểm - mức cao nhất kể từ ngày 17/1.", "Thượng viện Hoa Kỳ bỏ phiếu về thỏa thuận vách đá tài chính khi thời hạn gần kề", "Nhà hoạt động Trung Quốc Chen hạ cánh ở Mỹ" ] 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/model_stage4_v1_latest: direct link, hf CLI and curl.
- Browser
- Download file 709 Bytes
-
https://huggingface.co/tranhuudan-fullstack-ai-engineer/model_stage4_v1_latest/resolve/main/config.json
- Command line
-
hf download hf://tranhuudan-fullstack-ai-engineer/model_stage4_v1_latest/config.json
-
curl -L -o config.json https://huggingface.co/tranhuudan-fullstack-ai-engineer/model_stage4_v1_latest/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.44.0", | |
| "type_vocab_size": 1, | |
| "use_cache": true, | |
| "vocab_size": 64001 | |
| } | |