Instructions to use Helsinki-NLP/opus-mt-zh-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-zh-en with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-zh-en")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-zh-en") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-zh-en") - Inference
- Notebooks
- Google Colab
- Kaggle
Opus-mt-zh-en
1
#21 opened 3 months ago
by
BigTiger78
need to test
#19 opened 11 months ago
by
wiliam-xue
Comfyui Model Location
1
#18 opened over 1 year ago
by
Skettalee
How to add custom term dictionary?
1
#17 opened about 2 years ago
by
joey0922
When translating specific Chinese, output error
#16 opened about 2 years ago
by
konkong
RuntimeError: got an unexpected keyword argument 'metaclass'
4
#15 opened over 2 years ago
by
Xi12138
Add Core ML conversion
1
#14 opened over 2 years ago
by
Aiden2x
When translating an entire passage, some sentences may be missed
1
#13 opened over 2 years ago
by
lizi123
Adding `safetensors` variant of this model
#12 opened almost 3 years ago
by
SFconvertbot
How can I run the model in python?
1
#11 opened almost 3 years ago
by
Sohaib36
Update README.md
#10 opened almost 3 years ago
by
Hishamkhan
Adding ONNX file of this model
2
#9 opened almost 3 years ago
by
bcq
Update generation_config.json
#8 opened almost 3 years ago
by
johnsu6616
Adding paper link
#7 opened about 3 years ago
by
Ezi
Adding `safetensors` variant of this model
#6 opened about 3 years ago
by
SFconvertbot
Add multilingual to the language tag
#4 opened over 3 years ago
by
lbourdois
Building out the model card
#1 opened almost 4 years ago
by
Marissa