Downloads · 30 days
11
2% of all-time downloads
Normal1919/mbart-large-50-one-to-many-lil-fine-tune
mbart-large-50-one-to-many-lil-fine-tune is a translation model from Normal1919. Use it when you need text moved from one language to another. It is set up for transformers. The card lists the license as mit.
base model: mbart-large-50 pretrainedckpt: facebook/mbart-large-50-one-to-many-mmt This model was trained for rpy dl translate
Downloads · 30 days
11
2% of all-time downloads
All-time downloads
716
Public
Repo size
4.9 GB
Likes
2
Public
Click a slice to open those files.
.bin2.4 GB · 100%
From the Hugging Face model README
>>> from transformers import MBartForConditionalGeneration, MBart50TokenizerFast
>>> mode_name = 'Normal1919/mbart-large-50-one-to-many-lil-fine-tune'
>>> model = MBartForConditionalGeneration.from_pretrained(mode_name)
>>> tokenizer = MBart50TokenizerFast.from_pretrained(mode_name, src_lang="en_XX", tgt_lang="zh_CN")
>>> translation = pipeline("mbart-large-50-one-to-many-lil-fine-tune", model=model, tokenizer=tokenizer)
>>> translation('I {i} should {/i} say that I feel a little relieved to find out that {i}this {/i} is why you’ve been hanging out with Kaori lately, though. She’s really pretty and I got jealous and...I’m sorry', max_length=400)
[{'我{i}应该{/i}说,我有点松了一口气,发现{i}这个{/i}是你最近和Kaori一起出去玩的原因。她真的很漂亮,我嫉妒了,而且......对不起。'}]