Downloads · 30 days
177
2% of all-time downloads
ku-nlp/bart-large-japanese
bart-large-japanese is a machine learning model from ku-nlp. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as cc-by-sa-4.0.
This is a Japanese BART large model pre-trained on Japanese Wikipedia.
Downloads · 30 days
177
2% of all-time downloads
All-time downloads
7.4K
Public
Repo size
3.1 GB
Likes
10
Public
Click a slice to open those files.
.bin1.6 GB · 100%
From the Hugging Face model README
This is a Japanese BART large model pre-trained on Japanese Wikipedia.
You can use this model as follows:
from transformers import AutoTokenizer, MBartForConditionalGeneration
tokenizer = AutoTokenizer.from_pretrained('ku-nlp/bart-large-japanese')
model = MBartForConditionalGeneration.from_pretrained('ku-nlp/bart-large-japanese')
sentence = '京都 大学 で 自然 言語 処理 を 専攻 する 。' # input should be segmented into words by Juman++ in advance
encoding = tokenizer(sentence, return_tensors='pt')
...
You can fine-tune this model on downstream tasks.
The input text should be segmented into words by Juman++ in advance. Juman++ 2.0.0-rc3 was used for pre-training. Each word is tokenized into subwords by sentencepiece.
We used the following corpora for pre-training:
We first segmented texts in the corpora into words using Juman++. Then, we built a sentencepiece model with 32000 tokens including words (JumanDIC) and subwords induced by the unigram language model of sentencepiece.
We tokenized the segmented corpora into subwords using the sentencepiece model and trained the Japanese BART model using fairseq library. The training took about 1 month using 4 Tesla V100 GPUs.
The following hyperparameters were used during pre-training: