Instructions to use Helsinki-NLP/opus-mt-afa-afa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-afa-afa 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-afa-afa")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-afa-afa") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-afa-afa") - 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 |
- so
|
| 4 |
- ti
|
| 5 |
- am
|
|
@@ -7,11 +7,10 @@ language:
|
|
| 7 |
- mt
|
| 8 |
- ar
|
| 9 |
- afa
|
| 10 |
-
|
|
|
|
| 11 |
tags:
|
| 12 |
- translation
|
| 13 |
-
|
| 14 |
-
license: apache-2.0
|
| 15 |
---
|
| 16 |
|
| 17 |
### afa-afa
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
- so
|
| 4 |
- ti
|
| 5 |
- am
|
|
|
|
| 7 |
- mt
|
| 8 |
- ar
|
| 9 |
- afa
|
| 10 |
+
- multilingual
|
| 11 |
+
license: apache-2.0
|
| 12 |
tags:
|
| 13 |
- translation
|
|
|
|
|
|
|
| 14 |
---
|
| 15 |
|
| 16 |
### afa-afa
|