Instructions to use Helsinki-NLP/opus-mt-de-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-de-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-de-en")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-de-en") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-de-en") - Inference
- Notebooks
- Google Colab
- Kaggle
About dataset
#9
by bangbangL - opened
Dear developers,
I am a student from a university and I am interested in knowing which subset of the OPUS dataset was used to train the opus-de-en model that you have published. My intention is purely for academic research and has no commercial implications. I look forward to your reply. Wish you all the best!
Sincerely, A student.