Model reference · open weights
sup-SimCSE-VietNamese-phobert is an open-weight embedding model from VoVanPhuc, listed in the AxForge catalogue. AxForge can bring it up on EU-owned hardware for you on request — with the licence handled where one is required.
About
Table of contents 1. Introduction 2. Pretrain model 3. Using SimeCSEVietnamese with sentences-transformers - Installation - Example usage 4. Using SimeCSEVietnamese with transformers - Installation - Example usage <a name="introduction"</a SimeCSEVietnamese: Simple Contrastive Learning of Sentence Embeddings with Vietnamese Pre-trained SimeCSEVietnamese models are the state-of-the-art of Sentence Embeddings with Vietnamese : - SimeCSEVietnamese pre-training approach is based on SimCSE which optimizes the SimeCSEVietnamese pre-training procedure for more robust performance. - SimeCSEVietnamese encode input sentences using a pre-trained language model such as PhoBert - SimeCSEVietnamese works with both unlabeled and labeled data. Pre-trained models <a name="models"</a Model | #params | Arch. VoVanPhuc/sup-SimCSE-VietNamese-phobert-base | 135M | base VoVanPhuc/unsup-SimCSE-VietNamese-phobert-base | 135M | base <a name="sentences-transformers"</a Using SimeCSEVietnamese with sentences-transformers Installation <a name="install1"</a - Install sentence-transformers: - pip install -U sentence-transformers - Install pyvi to word segment: - pip install pyvi Example usage <a name="usage1"</a <a name="sentences-transformers"</a Using SimeCSEVietnamese with transformers Installation <a name="install2"</a - Install transformers: - pip install -U transformers - Install pyvi to word segment: - pip install pyvi Example usage <a name="usage2"</a 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} }
Summarised from the published model card. Read the full card on the HuggingFace links below.
Specifications
| Maker | VoVanPhuc |
|---|---|
| Type | Embedding models |
| Parameters (lead) | 136M |
| Context | 258 tokens |
| Variants | 1 |
| Runs with | transformers |
| Released | 2022-03-02 |
| Popularity | 401k downloads / month |
| Likes | 30 |
| Licence | Commercial licence needed |
How it works
Variants
Open weights ship in several sizes and precisions. One page, all the variants — pick the one that fits your GPU. VRAM figures are estimates from model size.
| Variant | Params | Precision | VRAM | Fits 16 GB | Weights |
|---|---|---|---|---|---|
| sup-SimCSE-VietNamese-phobert-base | 136M | BF16 | ~0.3 GB | ✓ | Weights ↗ |
Using it via the API
Once AxForge deploys sup-simcse-vietnamese-phobert for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (sup-simcse-vietnamese-phobert below is illustrative; you get the exact model name on deployment.)
$ curl -sS https://api.axforge.ai/v1/embeddings \
-H "Authorization: Bearer $AXFORGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"sup-simcse-vietnamese-phobert","input":"text to embed"}'
Licence
The weights are open but its licence needs a commercial agreement for business use. AxForge can arrange that licence and host the model for you — you pay AxForge, we settle with the model’s maker. Ask us for a quote. Read the licence ↗
Explore