Downloads · 30 days
0
DanielPK1412/vn-zh-nmt
vn-zh-nmt is a machine learning model from DanielPK1412. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
A bidirectional Vietnamese-Chinese Neural Machine Translation model trained with curriculum learning and RoPE attention.
Downloads · 30 days
0
Access
Public
Updated Feb 6, 2026
Repo size
1.9 GB
Likes
0
Public
Click a slice to open those files.
.pt1.9 GB · 100%
From the Hugging Face model README
A bidirectional Vietnamese-Chinese Neural Machine Translation model trained with curriculum learning and RoPE attention.
import torch
from model.transformer_model import TransformerModel
# Load checkpoint
checkpoint = torch.load('model.pt', map_location='cuda')
model = TransformerModel(checkpoint['config'], vocab_size=8000)
model.load_state_dict(checkpoint['model_state_dict'])
model.eval()
# Inference (tokenization and decoding depend on SentencePiece)
# See training/utils.py for greedy_decode and beam_search_decode
<pad>: Padding token<s>: Begin-of-sequence</s>: End-of-sequence<2zh>: Prefix for Vietnamese→Chinese<2vi>: Prefix for Chinese→VietnameseIf you use this model, please cite:
@misc{vn_zh_nmt,
title={Vietnamese-Chinese Neural Machine Translation},
author={Duy},
year={2026}
}
This project is licensed under the MIT License.