Sentence Similarity
sentence-transformers
Safetensors
Vietnamese
roberta
feature-extraction
Generated from Trainer
dataset_size:90000
loss:MatryoshkaLoss
loss:CachedMultipleNegativesRankingLoss
Run this model with HF Jobs
Run CODE4LIFEOFFICIAL/huydang-dek21-embedding-v2 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/CODE4LIFEOFFICIAL/huydang-dek21-embedding-v2. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/CODE4LIFEOFFICIAL/huydang-dek21-embedding-v2 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use CODE4LIFEOFFICIAL/huydang-dek21-embedding-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use CODE4LIFEOFFICIAL/huydang-dek21-embedding-v2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("CODE4LIFEOFFICIAL/huydang-dek21-embedding-v2") sentences = [ "Điều 2 Quyết định 185/QĐ-UB năm 1998 Bảng giá đất tỉnh Bến Tre có nội dung như sau: Điều 2. Giá đất trên được áp dụng cho những trường hợp tính thuế chuyển quyền sử dụng đất, thu lệ phí trước bạ, thu tiền sử dụng đất khi giao đất, cho thuê đất, tính giá trị tài sản khi giao đất, bồi thường thiệt hại về đất khi Nhà nước thu hồi.", "Điều 2 Quyết định 55/2012/QĐ-UBND dự toán ngân sách phân bổ dự toán ngân sách 2013 Bình Dương", "Điều 2 Quyết định 185/QĐ-UB năm 1998 Bảng giá đất tỉnh Bến Tre", "Điều 3 Quyết định 79/2019/QĐ-UBND mức thu học phí quản lý và sử dụng học phí giáo dục mầm non Huế" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Download sentence_bert_config.json from CODE4LIFEOFFICIAL/huydang-dek21-embedding-v2: direct link, hf CLI and curl.
- Browser
- Download file 241 Bytes
-
https://huggingface.co/CODE4LIFEOFFICIAL/huydang-dek21-embedding-v2/resolve/main/sentence_bert_config.json
- Command line
-
hf download hf://CODE4LIFEOFFICIAL/huydang-dek21-embedding-v2/sentence_bert_config.json
-
curl -L -o sentence_bert_config.json https://huggingface.co/CODE4LIFEOFFICIAL/huydang-dek21-embedding-v2/resolve/main/sentence_bert_config.json
241 Bytes
| { | |
| "transformer_task": "feature-extraction", | |
| "modality_config": { | |
| "text": { | |
| "method": "forward", | |
| "method_output_name": "last_hidden_state" | |
| } | |
| }, | |
| "module_output_name": "token_embeddings" | |
| } |