TSjB/qarachay-malqar_russian_parallel_corpora_dialectic-free
Viewer • Updated • 289k • 122 • 1
How to use TSjB/NLLB-201-600M-QM-V2 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="TSjB/NLLB-201-600M-QM-V2") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("TSjB/NLLB-201-600M-QM-V2")
model = AutoModelForSeq2SeqLM.from_pretrained("TSjB/NLLB-201-600M-QM-V2")Authors: Bogdan Tewunalany, Ali Berberov
Github
As a base we took NLLB-200-600M model and trained it on 288532 parallel sentences from Qarachay-Malqar to russian language. It is the 2 version of translator based on NLLB-200.
Where to use:
HF
Site