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", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Download pytorch_model.bin from Helsinki-NLP/opus-mt-zh-en: direct link, hf CLI and curl.
- Browser
- Download file 312 MB
-
https://huggingface.co/Helsinki-NLP/opus-mt-zh-en/resolve/a5785166627e7e53295c3203087d10ea8b843e49/pytorch_model.bin
- Command line
-
hf download hf://Helsinki-NLP/opus-mt-zh-en@a5785166627e7e53295c3203087d10ea8b843e49/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/Helsinki-NLP/opus-mt-zh-en/resolve/a5785166627e7e53295c3203087d10ea8b843e49/pytorch_model.bin
312 MB
- Xet hash:
- 2d412704c263f3baaaaf234b3d64125156de9a0e2273dfbb8061011ba32ef1d9
- Size of remote file:
- 312 MB
- SHA256:
- 9d8ceb91d103ef89400c9d9d62328b4858743cf8924878aee3b8afc594242ce0
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.