Instructions to use Helsinki-NLP/opus-mt-cel-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-cel-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-cel-en")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-cel-en") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-cel-en") - Notebooks
- Google Colab
- Kaggle
Add multilingual to the language tag
#2
by lbourdois - opened
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
language:
|
| 3 |
- gd
|
| 4 |
- ga
|
| 5 |
- br
|
|
@@ -8,11 +8,10 @@ language:
|
|
| 8 |
- cy
|
| 9 |
- cel
|
| 10 |
- en
|
| 11 |
-
|
|
|
|
| 12 |
tags:
|
| 13 |
- translation
|
| 14 |
-
|
| 15 |
-
license: apache-2.0
|
| 16 |
---
|
| 17 |
|
| 18 |
### cel-eng
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
- gd
|
| 4 |
- ga
|
| 5 |
- br
|
|
|
|
| 8 |
- cy
|
| 9 |
- cel
|
| 10 |
- en
|
| 11 |
+
- multilingual
|
| 12 |
+
license: apache-2.0
|
| 13 |
tags:
|
| 14 |
- translation
|
|
|
|
|
|
|
| 15 |
---
|
| 16 |
|
| 17 |
### cel-eng
|