Downloads · 30 days
71
77% of all-time downloads
DanVP/vp2vi
vp2vi is a translation model from DanVP. Use it when you need text moved from one language to another. It is set up for transformers. The card lists the license as cc-by-4.0.
vp2vi is a Vietnamese-to-Vietnamese text-rewriting model for polishing VietPhrase/QT-style Chinese web-novel drafts into more natural Vietnamese. It is a 36.5M-trainable-parameter Marian model with 8 encoder layers, 2…
Downloads · 30 days
71
77% of all-time downloads
All-time downloads
92
Public
Parameters
36.5M
147 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors146 MB · 97%
From the Hugging Face model README
vp2vi is a Vietnamese-to-Vietnamese text-rewriting model for polishing VietPhrase/QT-style Chinese web-novel drafts into more natural Vietnamese. It is a 36.5M-trainable-parameter Marian model with 8 encoder layers, 2 decoder layers, a 448-dimensional hidden size, and a shared 24,000-token vocabulary.
The model continues from DanVP/MoxhiMT-30-QT, retaining its full tokenizer, vocabulary, encoder, and two-layer decoder initialization.
import torch
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
model_id = "DanVP/vp2vi"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSeq2SeqLM.from_pretrained(model_id)
draft = "Hắn đối với chuyện này cũng không có biện pháp nào."
inputs = tokenizer(draft, return_tensors="pt", add_special_tokens=False)
with torch.inference_mode():
output_ids = model.generate(
**inputs,
do_sample=False,
num_beams=1,
max_new_tokens=224,
)
print(tokenizer.decode(output_ids[0], skip_special_tokens=True))
This is the standard Transformers compatibility path. Plain generate() can
still mishandle digits, repetition, or rare names; the
hosted browser application uses
additional decoding constraints. Its runtime is distributed separately and is
not part of this model repository.
This is not a Chinese-to-Vietnamese translator: the input is already a Vietnamese machine-converted draft. It is not intended for factual, legal, medical, or other high-stakes text.
The model was initialized from DanVP/MoxhiMT-30-QT and continued on
owner-curated Vietnamese draft→edited-text pairs. Training categories included
a filtered QT-convert pool (about 749k unique pairs), teacher-silver data
(about 49.6k pairs), a small teacher-gold seed (899 pairs), identity examples,
and about 150k synthetic name-swap pairs. Cumulative exposure reached
1,237,021,456 target labels. Raw training and holdout corpora are not
redistributed in this repository.
The published model.safetensors is a deterministic reverse mapping of the
training checkpoint into standard MarianMTModel tensor names. The release
gate verifies complete tensor coverage, exact expected key layout, successful
AutoTokenizer/AutoModelForSeq2SeqLM loading, and logits/argmax parity against
the training implementation. Exact hashes are recorded in
release_manifest.json.
The model repository is released under
CC BY 4.0. Commercial use,
modification, and redistribution are permitted with attribution. Suggested
credit: “vp2vi by DanVP”, linking to
https://huggingface.co/DanVP/vp2vi.
The project owner authorized this public release on 2026-08-11. The model repository contains model artifacts and documentation only; the separately deployed browser runtime/Space has its own release boundary.