/ Модель

Характеристики

Лицензия
Своя лицензия
Библиотека
transformers
Опубликована
28 сен 2026

GoiBERT-S

ЭмбеддингиТекст → embedding4 профессии

GoiBERT-S — компактный вьетнамский энкодер RoBERTa для извлечения признаков и тонкой настройки под задачи обработки текста.

186скачиваний за 30 дней3лайкавеса обновлены19 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Эмбеддинги» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

GoiBERT-S — компактный вьетнамоязычный энкодер на архитектуре RoBERTa, выпущенный TwoheartsTechnologies и описанный в статье GoiBERT: Compact Vietnamese Language Models via Two-Stage Knowledge Distillation. Модель содержит около 26,4 млн параметров, состоит из 10 слоёв с размером скрытого представления 384 и шестью головами внимания. Это энкодер без предметной головы: он принимает текст и формирует признаки для последующей настройки под конкретную задачу. Токенизатор унаследован от BamiBERT, сегментация слов не требуется.

Модель предназначена для извлечения признаков и последующей тонкой настройки на задачах классификации текста, анализа тональности, распознавания именованных сущностей и вывода на вьетнамском языке. В описанных авторами тестах она в среднем сохранила около 99% результата BamiBERT на восьми бенчмарках, при этом показала более высокую пропускную способность и меньший расход GPU-памяти. Вход ограничен 256 токенами; на ViNLI и PhoNER_COVID19 модель уступает BamiBERT, а диалекты и новые предметные области не оценивались.

GoiBERT-S получена дистилляцией BamiBERT; при обучении использовался очищенный вьетнамский корпус объёмом около 329 млн токенов. Для доступа к весам требуется принять лицензию на странице модели Hugging Face; метаданные указывают лицензию other, поэтому условия использования следует сверять с карточкой модели.

Сценарии применения

  • извлечение признаков из вьетнамского текста
  • тонкая настройка классификатора отзывов на вьетнамском языке
  • анализ тональности вьетнамских отзывов
  • распознавание именованных сущностей во вьетнамских текстах
  • определение логического следования во вьетнамских предложениях

Ограничения

Вход ограничен 256 токенами; на ViNLI и PhoNER_COVID19 модель уступает BamiBERT, а диалекты и новые предметные области не оценивались.

Для каких профессий подходит4

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

GoiBERT-S (Small): a small, fast Vietnamese encoder

GoiBERT-S (Small) is the Hugging Face release described in the paper GoiBERT: Compact Vietnamese Language Models via Two-Stage Knowledge Distillation. It is a 26.4M-parameter Vietnamese RoBERTa encoder, about ¼ the size of BamiBERT, distilled from BamiBERT on a cleaned 329M-token Vietnamese corpus. It uses BamiBERT's tokenizer (20,481 tokens) and takes raw text, with no word segmentation needed.

On 8 Vietnamese benchmarks, GoiBERT-S averages 80.02, about 99% of BamiBERT's 80.65, at a quarter of the size. It runs at 3.5× BamiBERT's batched GPU throughput and uses about ⅓ of the GPU memory.

This is the backbone encoder only, with no task head. Fine-tune it for your task.

Paper naming: The paper uses GoiBERT-base for GoiBERT-S (Small) and GoiBERT-large for GoiBERT-M (Medium). The repository IDs and checkpoints are unchanged.

Research overview: English · Tiếng Việt · Code

Model details

Model nameGoiBERT-S (Small)
ArchitectureRoBERTa encoder: 10 layers, hidden size 384, 6 attention heads, FFN size 1,536
Parameters26,397,696 (encoder, no pooler)
TokenizerBamiBERT tokenizer, vocabulary 20,481; takes raw (unsegmented) Vietnamese text
Recommended max length256 tokens. Distillation used 256-token sequences, so position embeddings beyond 256 are untrained.
TeachersStage 1: BamiBERT (102.4M), used unchanged. Stage 2 (fine-tuning only): CafeBERT out-of-fold soft labels
FamilyGoiBERT-S (Small, 26.4M), GoiBERT-M (Medium, 49.4M)
PaperarXiv:2610.30067

Usage

  1. Sign in to Hugging Face and complete the short access form on this model page. Access is approved automatically after license acceptance.
  2. Authenticate once on your development machine (use a read token or a fine-grained token with access to this model):
pip install -U huggingface_hub
hf auth login

For notebooks, use from huggingface_hub import login; login() instead. For CI, provide HF_TOKEN through your secret manager; never commit a token to source code.

Then run the example below. The saved login is picked up automatically. Access approval does not replace a separate commercial agreement where the license requires one.

from transformers import AutoTokenizer, AutoModel

tokenizer = AutoTokenizer.from_pretrained("TwoheartsTechnologies/GoiBERT-S")
model = AutoModel.from_pretrained("TwoheartsTechnologies/GoiBERT-S")

inputs = tokenizer("Sản phẩm dùng tốt, giao hàng nhanh.", return_tensors="pt",
                   truncation=True, max_length=256)
hidden = model(**inputs).last_hidden_state   # (1, seq_len, 384)

Training

Initialization

  • Word embeddings: PCA projection (768 → 384) of BamiBERT's word embeddings.
  • Transformer layers: random initialization.

General distillation (TinyBERT-style, no labels). The student learns to match two things from BamiBERT:

  • hidden states, through learned linear projections;
  • attention maps, averaged over heads.

Student layers map to teacher layers [0,1,2,4,5,6,7,8,10,11,12].

SettingValue
Steps120,000
Batch32 sequences × 256 tokens (about 0.98B tokens seen, about 3 passes over the corpus)
OptimizerAdamW, learning rate 1e-4, weight decay 0.01, 1,000 warmup steps, linear decay
Precisionbf16 autocast
Hardware1× NVIDIA L40S

Distillation corpus (corpus v2)

The corpus has 328.6M BamiBERT tokens. Documents are shuffled as whole units, so paragraphs stay in order within each document.

SourceTokensShare
HPLT 3.0 Vietnamese web: bins 7–9, spun/machine-translated text filtered out, at most 2% per host, near- and exact-deduplicated232.9M71%
Vietnamese Wikipedia (articles ≥ 300 words)49.4M15%
User-generated and forum text (from HPLT)25.5M8%
Unlabeled training-split text of 8 Vietnamese benchmarks, repeated up to 10×20.9M6%

Decontamination

  • Validation and test text from the 8 benchmarks was removed from the corpus: 30,334 paragraphs and 2,630 documents.
  • A paragraph was removed if it shared any 13-gram with a validation or test example, or, for short examples, matched one exactly.
  • A final scan found 0 exact matches with any validation or test example.

Evaluation

Results are from Table 1 of the paper: test sets, mean of 3 fine-tuning seeds, one metric per task (%).

Protocol

  • 3 seeds per task; epoch and learning rate chosen on validation.
  • Test set evaluated once per model, from a manifest locked before test access.

Fine-tuning recipe

  • 30 epochs, batch size 32, layer-wise learning-rate decay (γ = 0.8).
  • Loss: cross-entropy plus knowledge distillation from out-of-fold CafeBERT soft labels (α = 0.5, T = 2). CafeBERT is used only as a task teacher during fine-tuning; it is not part of the released weights.

BamiBERT baseline. Re-run under the same downstream protocol, with its learning rate tuned on validation and standard cross-entropy fine-tuning.

TaskMetricBamiBERT (102.4M)GoiBERT-S (Small, 26.4M)GoiBERT-M (Medium, 49.4M)
ViNLImacro-F180.1875.8678.52
ViSpamReviewsmacro-F177.5576.5278.13
PhoNER_COVID19 (syllable)entity F194.3292.9793.47
UIT-ABSA Restaurantaspect-sentiment pair F173.5374.1576.00
UIT-ABSA Hotelaspect-sentiment pair F173.9475.0175.67
UIT-VSFC topicmacro-F178.8880.1780.42
UIT-VSFC sentimentmacro-F182.3681.5082.03
UIT-ViSFDaspect-sentiment pair F184.4183.9484.78
Average (8 tasks)80.6580.0281.13
Parameters102.4M26.4M49.4M
GFLOPs per 128-token input22.44.810.1

The paper's Table 1 also reports CafeBERT (task teacher), XLM-R, ViSoBERT and PhoBERT-v2 on the same tasks.

Inference efficiency

Encoder only. GPU: NVIDIA L40S, bf16. CPU: fp32, 8 threads.

BamiBERTGoiBERT-S (Small)
GPU latency, batch 1 × 1282.93 ms2.52 ms
GPU throughput, batch 32 × 2562,397 seq/s8,285 seq/s (3.5×)
CPU latency, batch 1 × 12831.0 ms14.2 ms (2.2×)
Peak GPU memory, batch 32 × 256801 MB248 MB
Weights (bf16)206 MB53 MB

Limitations

As stated in the paper:

  • GoiBERT trails BamiBERT on ViNLI and PhoNER_COVID19; compression is costlier for inference and entity recognition than for sentiment and classification.
  • The comparison with BamiBERT is not a pure architecture comparison: GoiBERT also uses CafeBERT distillation, layer-wise learning-rate decay and benchmark training text in its distillation corpus.
  • General distillation was run once per model, so seed ranges reflect fine-tuning only.
  • Inputs are limited to 256 tokens; dialects and unseen domains have not been evaluated.
  • Efficiency figures exclude tokenization, task heads and the cost of training the teachers.

Citation

@article{goibert2026,
  title   = {GoiBERT: Compact Vietnamese Language Models via Two-Stage Knowledge Distillation},
  author  = {Tran, Quang Anh Kiet and Tran, Nam Anh and Trinh, Manh Hung and Le, Thanh Danh and Vo, Khang Nhat Hoang and Tran, Huynh Dai Nhan},
  journal = {arXiv preprint arXiv:2610.30067},
  year    = {2026}
}

License and commercial use

This release is offered under the GoiBERT Community Model License for Twohearts' licensable contributions. Research and evaluation are royalty-free, subject to the license and applicable upstream terms. Commercial use is royalty-free for an organization group with fewer than 100 personnel AND fewer than 1,000 customers, as defined in the license.

An organization group meeting either threshold needs a separate written commercial agreement before commercial use. Contact nhan@twohearts.vn.

GoiBERT was developed using BamiBERT. Applicable BSD-3-Clause-Clear and Qualcomm Responsible AI License obligations remain in effect; our license does not replace them or authorize exceptions. See NOTICE, BSD-3-Clause-Clear and Qualcomm RAIL.

This release contains the backbone encoder. Task heads, benchmark datasets and the training corpus are not licensed or distributed by this model license. This community license has commercial conditions and is not an OSI-approved open-source license. The license does not waive third-party rights or replace permissions required for training data or upstream materials. It does not retroactively amend an earlier model release.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Ревизия весов
5e5d1a9

0 моделей