ku-nlp / bart-base-japanese

huggingface.co
Total runs: 253
24-hour runs: 6
7-day runs: 30
30-day runs: 128
Model's Last Updated: May 12 2023
text-generation

Introduction of bart-base-japanese

Model Details of bart-base-japanese

Model Card for Japanese BART base

Model description

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')
...

You can fine-tune this model on downstream tasks.

Tokenization

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 .

Training data

We used the following corpora for pre-training:

  • Japanese Wikipedia (18M sentences)
Training procedure

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

More bart-base-japanese license Visit here:

https://choosealicense.com/licenses/cc-by-sa-4.0

bart-base-japanese huggingface.co

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 Url

https://huggingface.co/ku-nlp/bart-base-japanese

ku-nlp bart-base-japanese online free

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:

https://huggingface.co/ku-nlp/bart-base-japanese

bart-base-japanese install

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.

bart-base-japanese install url in huggingface.co:

https://huggingface.co/ku-nlp/bart-base-japanese

Url of bart-base-japanese

bart-base-japanese huggingface.co Url

Provider of bart-base-japanese huggingface.co

ku-nlp
ORGANIZATIONS

Other API from ku-nlp