Downloads · 30 days
9
14% of all-time downloads
nguyentran206/vit5-translation-vi2en-v1.1
vit5-translation-vi2en-v1.1 is a translation model from nguyentran206. Use it when you need text moved from one language to another. It is set up for transformers.
A sequence-to-sequence translation model based on VietAI ViT5-base, fine-tuned for Vietnamese to English machine translation. This model is intended for general-purpose translation tasks, both academic and production-…
Downloads · 30 days
9
14% of all-time downloads
All-time downloads
66
Public
Parameters
226M
2.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.pt1.8 GB · 67%
From the Hugging Face model README
A sequence-to-sequence translation model based on VietAI ViT5-base, fine-tuned for Vietnamese to English machine translation.
This model is intended for general-purpose translation tasks, both academic and production-oriented.
This model is an encoder–decoder Transformer designed for text-to-text generation tasks such as translation.
It is fine-tuned from VietAI/vit5-base, a pretrained multilingual T5 variant optimized for Vietnamese NLP tasks.
In addition to real bilingual corpora, this model was also trained using a synthetic English–Vietnamese dataset created to improve translation robustness and domain diversity.
Synthetic data was generated using a large language model (LLM) through a multi-step workflow:
Prompting a large LLM (e.g., GPT or Qwen) to generate bilingual sentence pairs with:
Filtering and Cleaning
Formatting
The synthetic dataset was introduced to:
Users should manually review the translations when used in professional, safety-critical, or high-importance scenarios.
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
model_name = "tnguyen20604/vit5-translation-vi2en-v1.1"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
text = "Tôi yêu học máy."
inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(**inputs)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))