botisan-ai/cantonese-mandarin-translations
Viewer • Updated • 24.2k • 61 • 29
How to use botisan-ai/mt5-translate-yue-zh with Transformers:
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("botisan-ai/mt5-translate-yue-zh")
model = AutoModelForSeq2SeqLM.from_pretrained("botisan-ai/mt5-translate-yue-zh")This model is a fine-tuned version of google/mt5-base on dataset x-tech/cantonese-mandarin-translations.
The model translates Cantonese sentences to Mandarin.
When you use the model, please make sure to add translate cantonese to mandarin: <sentence> (please note the space after colon) before the text you want to translate.
Training Dataset: x-tech/cantonese-mandarin-translations
Training is based on example in transformers library
The following hyperparameters were used during training:
Since we still need to set up validation set, we do not have any training results yet.
Base model
google/mt5-base