Pamiri MT
Collection
The aim of this project is to create a collection of usable translation models for Pamiri languages and Shughni in particular. • 4 items • Updated
How to use Novokshanov/nllb-200-distilled-600M-Shughni-v1 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="Novokshanov/nllb-200-distilled-600M-Shughni-v1") # Load model directly
from transformers import AutoTokenizer, AutoModelForMultimodalLM
tokenizer = AutoTokenizer.from_pretrained("Novokshanov/nllb-200-distilled-600M-Shughni-v1")
model = AutoModelForMultimodalLM.from_pretrained("Novokshanov/nllb-200-distilled-600M-Shughni-v1")Base model
facebook/nllb-200-distilled-600M