This is a Japanese DeBERTa V2 large model pre-trained on Japanese Wikipedia, the Japanese portion of CC-100, and the
Japanese portion of OSCAR.
How to use
You can use this model for masked language modeling as follows:
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained('ku-nlp/deberta-v2-large-japanese')
model = AutoModelForMaskedLM.from_pretrained('ku-nlp/deberta-v2-large-japanese')
sentence = '京都 大学 で 自然 言語 処理 を [MASK] する 。'# input should be segmented into words by Juman++ in advance
encoding = tokenizer(sentence, return_tensors='pt')
...
You can also fine-tune this model on downstream tasks.
Japanese Wikipedia (as of 20221020, 3.2GB, 27M sentences, 1.3M documents)
Japanese portion of CC-100 (85GB, 619M sentences, 66M documents)
Japanese portion of OSCAR (54GB, 326M sentences, 25M documents)
Note that we filtered out documents annotated with "header", "footer", or "noisy" tags in OSCAR.
Also note that Japanese Wikipedia was duplicated 10 times to make the total size of the corpus comparable to that of
CC-100 and OSCAR. As a result, the total size of the training data is 171GB.
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 DeBERTa model
using
transformers
library.
The training took 36 days using 8 NVIDIA A100-SXM4-40GB GPUs.
The following hyperparameters were used during pre-training:
learning_rate: 1e-4
per_device_train_batch_size: 18
distributed_type: multi-GPU
num_devices: 8
gradient_accumulation_steps: 16
total_train_batch_size: 2,304
max_seq_length: 512
optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-06
lr_scheduler_type: linear schedule with warmup
training_steps: 300,000
warmup_steps: 10,000
The accuracy of the trained model on the masked language modeling task was 0.799.
The evaluation set consists of 5,000 randomly sampled documents from each of the training corpora.
Fine-tuning on NLU tasks
We fine-tuned the following models and evaluated them on the dev set of JGLUE.
We tuned learning rate and training epochs for each model and task
following
the JGLUE paper
.
This work was supported by Joint Usage/Research Center for Interdisciplinary Large-scale Information Infrastructures (
JHPCN) through General Collaboration Project no. jh221004, "Developing a Platform for Constructing and Sharing of
Large-Scale Japanese Language Models".
For training models, we used the mdx: a platform for the data-driven future.
Runs of ku-nlp deberta-v2-large-japanese on huggingface.co
980
Total runs
0
24-hour runs
100
3-day runs
124
7-day runs
71
30-day runs
More Information About deberta-v2-large-japanese huggingface.co Model
More deberta-v2-large-japanese license Visit here:
deberta-v2-large-japanese huggingface.co is an AI model on huggingface.co that provides deberta-v2-large-japanese's model effect (), which can be used instantly with this ku-nlp deberta-v2-large-japanese model. huggingface.co supports a free trial of the deberta-v2-large-japanese model, and also provides paid use of the deberta-v2-large-japanese. Support call deberta-v2-large-japanese model through api, including Node.js, Python, http.
deberta-v2-large-japanese huggingface.co is an online trial and call api platform, which integrates deberta-v2-large-japanese's modeling effects, including api services, and provides a free online trial of deberta-v2-large-japanese, you can try deberta-v2-large-japanese online for free by clicking the link below.
ku-nlp deberta-v2-large-japanese online free url in huggingface.co:
deberta-v2-large-japanese is an open source model from GitHub that offers a free installation service, and any user can find deberta-v2-large-japanese on GitHub to install. At the same time, huggingface.co provides the effect of deberta-v2-large-japanese install, users can directly use deberta-v2-large-japanese installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
deberta-v2-large-japanese install url in huggingface.co: