Instructions to use Helsinki-NLP/opus-mt-en-roa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-en-roa 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-roa")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-en-roa") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-en-roa", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Add multilingual to the language tag
Browse filesHi! A PR to add multilingual to the language tag to improve the referencing.
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
language:
|
| 3 |
- en
|
| 4 |
- it
|
| 5 |
- ca
|
|
@@ -16,11 +16,10 @@ language:
|
|
| 16 |
- fr
|
| 17 |
- ht
|
| 18 |
- roa
|
| 19 |
-
|
|
|
|
| 20 |
tags:
|
| 21 |
- translation
|
| 22 |
-
|
| 23 |
-
license: apache-2.0
|
| 24 |
---
|
| 25 |
|
| 26 |
### eng-roa
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
- en
|
| 4 |
- it
|
| 5 |
- ca
|
|
|
|
| 16 |
- fr
|
| 17 |
- ht
|
| 18 |
- roa
|
| 19 |
+
- multilingual
|
| 20 |
+
license: apache-2.0
|
| 21 |
tags:
|
| 22 |
- translation
|
|
|
|
|
|
|
| 23 |
---
|
| 24 |
|
| 25 |
### eng-roa
|