Machine Translation Models
Collection
8 items • Updated
How to use techiaith/nllb-200-1.3B-ft-cym-to-eng 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="techiaith/nllb-200-1.3B-ft-cym-to-eng") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("techiaith/nllb-200-1.3B-ft-cym-to-eng")
model = AutoModelForSeq2SeqLM.from_pretrained("techiaith/nllb-200-1.3B-ft-cym-to-eng")This model is a fine-tuned version of facebook/nllb-200-1.3B for improved Welsh to English translation. It achieves the following results on the evaluation set:
Machine translations can be unreliable. Always get a human proofreader to ensure accuracy and avoid errors.
Base model
facebook/nllb-200-1.3B