Instructions to use facebook/nllb-200-3.3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/nllb-200-3.3B 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="facebook/nllb-200-3.3B")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("facebook/nllb-200-3.3B") model = AutoModelForSeq2SeqLM.from_pretrained("facebook/nllb-200-3.3B") - Notebooks
- Google Colab
- Kaggle
Moving this model to `translation` for better integration with `transformers` + remove inference since the widget won't work out of the box (#5)
Browse files- Moving this model to `translation` for better integration with `transformers` + remove inference since the widget won't work out of the box (f555c8a068d16f0ed1c3e5c1a02a757051c0cb39)
Co-authored-by: Nicolas Patry <Narsil@users.noreply.huggingface.co>
README.md
CHANGED
|
@@ -201,6 +201,7 @@ language_details: "ace_Arab, ace_Latn, acm_Arab, acq_Arab, aeb_Arab, afr_Latn, a
|
|
| 201 |
|
| 202 |
tags:
|
| 203 |
- nllb
|
|
|
|
| 204 |
license: "cc-by-nc-4.0"
|
| 205 |
datasets:
|
| 206 |
- flores-200
|
|
@@ -208,6 +209,7 @@ metrics:
|
|
| 208 |
- bleu
|
| 209 |
- spbleu
|
| 210 |
- chrf++
|
|
|
|
| 211 |
---
|
| 212 |
|
| 213 |
# NLLB-200
|
|
|
|
| 201 |
|
| 202 |
tags:
|
| 203 |
- nllb
|
| 204 |
+
- translation
|
| 205 |
license: "cc-by-nc-4.0"
|
| 206 |
datasets:
|
| 207 |
- flores-200
|
|
|
|
| 209 |
- bleu
|
| 210 |
- spbleu
|
| 211 |
- chrf++
|
| 212 |
+
inference: false
|
| 213 |
---
|
| 214 |
|
| 215 |
# NLLB-200
|