This is a Japanese BART base model pre-trained on Japanese Wikipedia.
How to use
You can use this model as follows:
from transformers import AutoTokenizer, MBartForConditionalGeneration
tokenizer = AutoTokenizer.from_pretrained('ku-nlp/bart-base-japanese')
model = MBartForConditionalGeneration.from_pretrained('ku-nlp/bart-base-japanese')
sentence = '京都 大学 で 自然 言語 処理 を 専攻 する 。'# input should be segmented into words by Juman++ in advance
encoding = tokenizer(sentence, return_tensors='pt')
...
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 2 weeks using 4 Tesla V100 GPUs.
The following hyperparameters were used during pre-training:
distributed_type: multi-GPU
num_devices: 4
batch_size: 512
training_steps: 500,000
encoder layers: 6
decoder layers: 6
hidden size: 768
Runs of ku-nlp bart-base-japanese on huggingface.co
253
Total runs
6
24-hour runs
9
3-day runs
30
7-day runs
128
30-day runs
More Information About bart-base-japanese huggingface.co Model
bart-base-japanese huggingface.co is an AI model on huggingface.co that provides bart-base-japanese's model effect (), which can be used instantly with this ku-nlp bart-base-japanese model. huggingface.co supports a free trial of the bart-base-japanese model, and also provides paid use of the bart-base-japanese. Support call bart-base-japanese model through api, including Node.js, Python, http.
bart-base-japanese huggingface.co is an online trial and call api platform, which integrates bart-base-japanese's modeling effects, including api services, and provides a free online trial of bart-base-japanese, you can try bart-base-japanese online for free by clicking the link below.
ku-nlp bart-base-japanese online free url in huggingface.co:
bart-base-japanese is an open source model from GitHub that offers a free installation service, and any user can find bart-base-japanese on GitHub to install. At the same time, huggingface.co provides the effect of bart-base-japanese install, users can directly use bart-base-japanese installed effect in huggingface.co for debugging and trial. It also supports api for free installation.