Instructions to use Helsinki-NLP/opus-mt-mul-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-mul-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-mul-en")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-mul-en") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-mul-en", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Download pytorch_model.bin from Helsinki-NLP/opus-mt-mul-en: direct link, hf CLI and curl.
- Browser
- Download file 310 MB
-
https://huggingface.co/Helsinki-NLP/opus-mt-mul-en/resolve/main/pytorch_model.bin
- Command line
-
hf download hf://Helsinki-NLP/opus-mt-mul-en/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/Helsinki-NLP/opus-mt-mul-en/resolve/main/pytorch_model.bin
310 MB
- Xet hash:
- c87ec87cb0d93f1e14ffa2bbc5c8a1d33e0d27328fa79b1a69e0f33b0caaef9d
- Size of remote file:
- 310 MB
- SHA256:
- 33ff438ec37160a105f0700819a5b78a07918e1913fc2f249184b1f46a248e4e
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.