Instructions to use Helsinki-NLP/opus-mt-en-de with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-en-de 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-en-de")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-en-de") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-en-de", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
joaogante commited on
Commit ·
bb3e01d
1
Parent(s): 61a2efe
Update TF weights (#3)
Browse files- Update TF weights (c95076622ddb2378f0bbbcd48d80cb65af803099)
- tf_model.h5 +2 -2
tf_model.h5
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2871ccde1f8c20501b0285dd97d757c5c3ad35291bf8711913501f7fdd90ec20
|
| 3 |
+
size 298394200
|