Files
vietnamese-gpt2-medium/README.md
ModelHub XC 85b49f2cca 初始化项目,由ModelHub XC社区提供模型
Model: chronopt-research/vietnamese-gpt2-medium
Source: Original Platform
2026-06-08 22:06:41 +08:00

2.5 KiB

license, datasets, language, metrics, pipeline_tag, widget, model-index
license datasets language metrics pipeline_tag widget model-index
apache-2.0
duongttr/vi-dataset-for-pretrain
vi
perplexity
text-generation
text
Việt Nam là quốc gia có
text
Hoàng Sa, Trường Sa là của
name results
chronopt-research/vietnamese-gpt2-medium
task metrics
type
text-generation
type value verified
perplexity 17.5948 true

Vietnamese gpt2-medium

This is a pretrained gpt2-medium for Vietnamese language using casual language modeling (CLM) objective. It was introduced in this paper and first released at this page.

Model Description

GPT-2 (at first) is a transformers model pretrained on a very large corpus of English data in a self-supervised fashion. This means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it was trained to guess the next word in sentences.

This is the medium version of GPT-2, with 380M parameters.

You could've found other pretrained version from here: gpt2-base, gpt2-large

Dataset used for pretraining

This is a combination of multiple Vietnamese dataset for pretraining CLMs such as GPT, GPT2, etc.

The dataset consists of:

You can find out the combined version here: duongttr/vi-dataset-for-pretrain

Hyperparamters & Results

We trained the model ~100k steps, with lr=1e-4, bs=1920, optimizer=adamw on TPU-VM-3.8 from TRC Program. The training costs around 2.5 days.

Model Eval Loss Eval Perplexity
gpt2-base 3.939 51.35
gpt2-medium 2.8676 17.5948
gpt2-large - -

Contacts

Feel free to contact us via: email