AI SeedbankHelp preserve open and free AI for humanity's future

← All models

VoVanPhuc_sup-SimCSE-VietNamese-phobert-base

VoVanPhuc · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

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

  1. Introduction
  2. Pretrain model
  3. Using SimeCSE_Vietnamese with sentences-transformers
  4. 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 pyvi to 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 pyvi to 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-base

Open magnet in torrent client · infohash e88be9bf3b6179a0fa7b9b21476017a439e8d5f8

Files & hashes

PathSizesha1sha256
README.md5.1 KB (5,221 B)9857e4d745502d470ef45c46ff1576250d48cb745fcd68b6508c1b4ee23ca7ea990770c6b497df65e9c401c1c3f91923a959fa23
added_tokens.json17 B (17 B)1619843f65f05735ec891f93618e80bc51dbac7f895678a80ea84920b4240c0616a1b0b086368c7ca3cbacb80996a2b30b4f2b67
bpe.codes1.1 MB (1,135,173 B)b9a70c1a314ef0c6d97dffd98b34a1c60b988a6e9dfe53fb8abbddd3387da99641c36e00bee757a3679aad9cf0a7cdc4b30f6ef8
config.json731 B (731 B)c8e6a443914ed236a1306279cafe3b7a75ebac9a4bc82a39c36f328f3fbcbfd83c26d00621b396ac7e9ff1a38cfa7c70d88fa608
model.safetensors517.3 MB (542,381,752 B)d0031e84c71baf676a1812611e5b969fd949271f2559811f500b42fa23b8fe313d94a9503299aff1f0e0f58fdd4824571cb4423c
pytorch_model.bin517.3 MB (542,443,775 B)36299ebccc735149c1e26726793a0f8141339367920246a089ab078ab493cf03c42c6a6d788683d319d97a48e4dcae8eeed2220a
special_tokens_map.json150 B (150 B)6cd1d9021e10d47aed59399af6b0e30312b46ca47638f5bbbe86ef6d604ef28ad3647dc690d6d117c81c0d63e885416be8da1150
tokenizer_config.json270 B (270 B)f199bc06e75b3b7054366c8eba69dc8b413bc00ef80601760ebdd7737e988a60bb3c14bca12a6786c06e84c99bd2f3329ad80fa0
vocab.txt874.3 KB (895,321 B)0dbdec11459dd9d1f6e985bf6c58dbcf6adaeabddffd7543c401fb6567253ae7c3313004532c33d062525250049c616544bad777

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 repositoryVoVanPhuc/sup-SimCSE-VietNamese-phobert-base
Revision (pinned)608779b86741a8acd8c8d38132974ff04086b138
Fetched at2026-09-03T20:43:54Z
License at fetchno license recorded
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ 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