How to use from the
Use from the
Transformers library
# 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/mbart-large-en-ro")
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("facebook/mbart-large-en-ro", device_map="auto")
Quick Links

mbart-large-en-ro

This is mbart-large-cc25, finetuned on wmt_en_ro.

It scores BLEU 28.1 without post processing and BLEU 38 with postprocessing. Instructions in romanian_postprocessing.md

Original Code: https://github.com/pytorch/fairseq/tree/master/examples/mbart

Docs: https://huggingface.co/transformers/master/model_doc/mbart.html

Finetuning Code: examples/seq2seq/finetune.py (as of Aug 20, 2020)

Downloads last month
69,672
Safetensors
Model size
0.6B params
Tensor type
F16
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Spaces using facebook/mbart-large-en-ro 3