VoVanPhuc_sup-SimCSE-VietNamese-phobert-base
VoVanPhuc · View on Hugging Face ↗
Model card
The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.
language:
- vi pipeline_tag: sentence-similarity
Table of contents
- Introduction
- Pretrain model
- Using SimeCSE_Vietnamese with
sentences-transformers - Using SimeCSE_Vietnamese with
transformers
SimeCSE_Vietnamese: Simple Contrastive Learning of Sentence Embeddings with Vietnamese
Pre-trained SimeCSE_Vietnamese models are the state-of-the-art of Sentence Embeddings with Vietnamese :
- SimeCSE_Vietnamese pre-training approach is based on SimCSE which optimizes the SimeCSE_Vietnamese pre-training procedure for more robust performance.
- SimeCSE_Vietnamese encode input sentences using a pre-trained language model such as PhoBert
- SimeCSE_Vietnamese works with both unlabeled and labeled data.
Pre-trained models
| Model | #params | Arch. |
|---|---|---|
VoVanPhuc/sup-SimCSE-VietNamese-phobert-base |
135M | base |
VoVanPhuc/unsup-SimCSE-VietNamese-phobert-base |
135M | base |
Using SimeCSE_Vietnamese with sentences-transformers
Installation
Install
sentence-transformers:pip install -U sentence-transformers
Install
pyvito word segment:pip install pyvi
Example usage
from sentence_transformers import SentenceTransformer
from pyvi.ViTokenizer import tokenize
model = SentenceTransformer('VoVanPhuc/sup-SimCSE-VietNamese-phobert-base')
sentences = ['Kẻ đánh bom đinh tồi tệ nhất nước Anh.',
'Nghệ sĩ làm thiện nguyện - minh bạch là việc cấp thiết.',
'Bắc Giang tăng khả năng điều trị và xét nghiệm.',
'HLV futsal Việt Nam tiết lộ lý do hạ Lebanon.',
'việc quan trọng khi kêu gọi quyên góp từ thiện là phải minh bạch, giải ngân kịp thời.',
'20% bệnh nhân Covid-19 có thể nhanh chóng trở nặng.',
'Thái Lan thua giao hữu trước vòng loại World Cup.',
'Cựu tuyển thủ Nguyễn Bảo Quân: May mắn ủng hộ futsal Việt Nam',
'Chủ ki-ốt bị đâm chết trong chợ đầu mối lớn nhất Thanh Hoá.',
'Bắn chết người trong cuộc rượt đuổi trên sông.'
]
sentences = [tokenize(sentence) for sentence in sentences]
embeddings = model.encode(sentences)
Using SimeCSE_Vietnamese with transformers
Installation
Install
transformers:pip install -U transformers
Install
pyvito word segment:pip install pyvi
Example usage
import torch
from transformers import AutoModel, AutoTokenizer
from pyvi.ViTokenizer import tokenize
PhobertTokenizer = AutoTokenizer.from_pretrained("VoVanPhuc/sup-SimCSE-VietNamese-phobert-base")
model = AutoModel.from_pretrained("VoVanPhuc/sup-SimCSE-VietNamese-phobert-base")
sentences = ['Kẻ đánh bom đinh tồi tệ nhất nước Anh.',
'Nghệ sĩ làm thiện nguyện - minh bạch là việc cấp thiết.',
'Bắc Giang tăng khả năng điều trị và xét nghiệm.',
'HLV futsal Việt Nam tiết lộ lý do hạ Lebanon.',
'việc quan trọng khi kêu gọi quyên góp từ thiện là phải minh bạch, giải ngân kịp thời.',
'20% bệnh nhân Covid-19 có thể nhanh chóng trở nặng.',
'Thái Lan thua giao hữu trước vòng loại World Cup.',
'Cựu tuyển thủ Nguyễn Bảo Quân: May mắn ủng hộ futsal Việt Nam',
'Chủ ki-ốt bị đâm chết trong chợ đầu mối lớn nhất Thanh Hoá.',
'Bắn chết người trong cuộc rượt đuổi trên sông.'
]
sentences = [tokenize(sentence) for sentence in sentences]
inputs = PhobertTokenizer(sentences, padding=True, truncation=True, return_tensors="pt")
with torch.no_grad():
embeddings = model(**inputs, output_hidden_states=True, return_dict=True).pooler_output
Quick Start
Open In Colab
Citation
@article{gao2021simcse,
title={{SimCSE}: Simple Contrastive Learning of Sentence Embeddings},
author={Gao, Tianyu and Yao, Xingcheng and Chen, Danqi},
journal={arXiv preprint arXiv:2104.08821},
year={2021}
}
@inproceedings{phobert,
title = {{PhoBERT: Pre-trained language models for Vietnamese}},
author = {Dat Quoc Nguyen and Anh Tuan Nguyen},
booktitle = {Findings of the Association for Computational Linguistics: EMNLP 2020},
year = {2020},
pages = {1037--1042}
}
Magnet link
Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:
magnet:?xt=urn:btih:e88be9bf3b6179a0fa7b9b21476017a439e8d5f8&dn=VoVanPhuc_sup-SimCSE-VietNamese-phobert-baseOpen magnet in torrent client · infohash e88be9bf3b6179a0fa7b9b21476017a439e8d5f8
Files & hashes
| Path | Size | sha1 | sha256 |
|---|---|---|---|
| README.md | 5.1 KB (5,221 B) | 9857e4d745502d470ef45c46ff1576250d48cb74 | 5fcd68b6508c1b4ee23ca7ea990770c6b497df65e9c401c1c3f91923a959fa23 |
| added_tokens.json | 17 B (17 B) | 1619843f65f05735ec891f93618e80bc51dbac7f | 895678a80ea84920b4240c0616a1b0b086368c7ca3cbacb80996a2b30b4f2b67 |
| bpe.codes | 1.1 MB (1,135,173 B) | b9a70c1a314ef0c6d97dffd98b34a1c60b988a6e | 9dfe53fb8abbddd3387da99641c36e00bee757a3679aad9cf0a7cdc4b30f6ef8 |
| config.json | 731 B (731 B) | c8e6a443914ed236a1306279cafe3b7a75ebac9a | 4bc82a39c36f328f3fbcbfd83c26d00621b396ac7e9ff1a38cfa7c70d88fa608 |
| model.safetensors | 517.3 MB (542,381,752 B) | d0031e84c71baf676a1812611e5b969fd949271f | 2559811f500b42fa23b8fe313d94a9503299aff1f0e0f58fdd4824571cb4423c |
| pytorch_model.bin | 517.3 MB (542,443,775 B) | 36299ebccc735149c1e26726793a0f8141339367 | 920246a089ab078ab493cf03c42c6a6d788683d319d97a48e4dcae8eeed2220a |
| special_tokens_map.json | 150 B (150 B) | 6cd1d9021e10d47aed59399af6b0e30312b46ca4 | 7638f5bbbe86ef6d604ef28ad3647dc690d6d117c81c0d63e885416be8da1150 |
| tokenizer_config.json | 270 B (270 B) | f199bc06e75b3b7054366c8eba69dc8b413bc00e | f80601760ebdd7737e988a60bb3c14bca12a6786c06e84c99bd2f3329ad80fa0 |
| vocab.txt | 874.3 KB (895,321 B) | 0dbdec11459dd9d1f6e985bf6c58dbcf6adaeabd | dffd7543c401fb6567253ae7c3313004532c33d062525250049c616544bad777 |
Cite this release
- Canonical URL
- https://aiseedbank.org/models/VoVanPhuc_sup-SimCSE-VietNamese-phobert-base/
- Slug
- VoVanPhuc_sup-SimCSE-VietNamese-phobert-base
- Infohash
- e88be9bf3b6179a0fa7b9b21476017a439e8d5f8
- License
- no license recorded
- Signing key fingerprint
- 85a3b32c3712427b
Every file carries a locally computed sha256 — verify a download against the signed sums: VoVanPhuc_sup-SimCSE-VietNamese-phobert-base.SHA256SUMS (+ minisign signature).
Provenance
| Upstream repository | VoVanPhuc/sup-SimCSE-VietNamese-phobert-base |
|---|---|
| Revision (pinned) | 608779b86741a8acd8c8d38132974ff04086b138 |
| Fetched at | 2026-09-03T20:43:54Z |
| License at fetch | no license recorded |
| Snapshot tool | huggingface · seedbank 0.1.0 |
Trackers
- udp://announce.aitorrent.org:6969/announce
- http://announce.aitorrent.org:7070/announce
- udp://announce2.aitorrent.org:6970/announce
- http://announce2.aitorrent.org:7071/announce
- udp://tracker.opentrackr.org:1337/announce
- udp://open.demonii.com:1337/announce
- udp://open.stealth.si:80/announce
- udp://exodus.desync.com:6969/announce
- udp://tracker.torrent.eu.org:451/announce
✓ verified · rehash-vs-hf-metadata at 2026-09-03T20:44:06Z
no license recorded1.01 GB (1,086,862,410 bytes)transformerspytorchsafetensorsrobertasentence-similarityendpoints_compatible1 language (vi)paper: 2104.08821