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