Instructions to use facebook/nllb-200-distilled-600M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/nllb-200-distilled-600M 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-distilled-600M")# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("facebook/nllb-200-distilled-600M") model = AutoModelForMultimodalLM.from_pretrained("facebook/nllb-200-distilled-600M") - Notebooks
- Google Colab
- Kaggle
The model is now added to WebAI.js. Run it in your browser with no code required.
#46
by AxolsWebAI - opened
Hi there,
We've packaged this model inside our open-source library WebAI.js, letting you run it directly in the browser with just a few lines of code—no backend hosting required:
import { WebAI } from '@axols/webai-js';
const webai = await WebAI.create({
modelId: "tsl-200-600m"
});
await webai.init({
mode: "webai",
precision: "q8",
device: "wasm"
});
const generation = await webai.generate({
userInput: {
texts: [
"Hello, how are you?",
"Artificial Intelligence is transforming the world."
]
},
modelConfig: {
src_lang: "eng_Latn",
tgt_lang: "spa_Latn"
},
generateConfig: {}
});
🔬 Try Whisper Large V3 Turbo Instantly (No Code Required)
You can benchmark and test the model directly here:
https://www.webai-js.com/models/tsl-200-600m/playground
📘 Full API Reference
Detailed parameter explanations can be found here:
https://www.webai-js.com/models/tsl-200-600m/api-reference/v1/class-api/methods/webai-generate
🧡 Fully Open Source
WebAI.js is completely open source and free to use.
Star or contribute on GitHub:
https://github.com/axolsai/webai-js
Thank

