Helsinki-NLP/kde4
Updated โข 322 โข 26
How to use jieshenai/zh_en_translation with Transformers:
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("jieshenai/zh_en_translation")
model = AutoModelForSeq2SeqLM.from_pretrained("jieshenai/zh_en_translation", device_map="auto")translation zh to en.
You can post issues at https://github.com/JieShenAI/torch