This is a Japanese DeBERTa V3 base model pre-trained on LLM-jp corpus v1.0.
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-v3-base-japanese')
model = AutoModelForMaskedLM.from_pretrained('ku-nlp/deberta-v3-base-japanese')
sentences = [
"京都大学で自然言語処理を研究する。",
"I research NLP at Kyoto University.",
'int main() { printf("Hello, world!"); return 0; }',
]
encodings = tokenizer(sentences, return_tensors='pt')
...
You can also fine-tune this model on downstream tasks.
Tokenization
The tokenizer of this model is based on
huggingface/tokenizers
Unigram byte-fallback model.
The vocabulary entries were converted from
llm-jp-tokenizer v2.2 (100k)
.
Please refer to
README.md
of
llm-jp/llm-ja-tokenizer
for details on the vocabulary construction procedure.
Note that, unlike
ku-nlp/deberta-v2-base-japanese
, pre-segmentation by a morphological analyzer (e.g., Juman++) is no longer required for this model.
Training data
We used the
LLM-jp corpus
v1.0.1 for pre-training.
The corpus consists of the following corpora:
Japanese
Wikipedia (1B tokens)
mC4 (129B tokens)
English
Wikipedia (4B tokens)
The Pile (126B tokens)
Code
The Stack (10B tokens)
We shuffled the corpora, which has 270B tokens in total, and trained the model for 2 epochs.
Thus, the total number of tokens fed to the model was 540B.
The following hyperparameters were used during pre-training:
learning_rate: 1e-4
per_device_train_batch_size: 800
num_devices: 8
gradient_accumulation_steps: 3
total_train_batch_size: 2400
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: 475,000
warmup_steps: 10,000
Fine-tuning on NLU tasks
We fine-tuned the following models and evaluated them on the dev set of JGLUE.
We tuned the 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. jh231006, "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-v3-base-japanese on huggingface.co
4.4K
Total runs
3
24-hour runs
-42
3-day runs
-181
7-day runs
-916
30-day runs
More Information About deberta-v3-base-japanese huggingface.co Model
deberta-v3-base-japanese huggingface.co is an AI model on huggingface.co that provides deberta-v3-base-japanese's model effect (), which can be used instantly with this ku-nlp deberta-v3-base-japanese model. huggingface.co supports a free trial of the deberta-v3-base-japanese model, and also provides paid use of the deberta-v3-base-japanese. Support call deberta-v3-base-japanese model through api, including Node.js, Python, http.
deberta-v3-base-japanese huggingface.co is an online trial and call api platform, which integrates deberta-v3-base-japanese's modeling effects, including api services, and provides a free online trial of deberta-v3-base-japanese, you can try deberta-v3-base-japanese online for free by clicking the link below.
ku-nlp deberta-v3-base-japanese online free url in huggingface.co:
deberta-v3-base-japanese is an open source model from GitHub that offers a free installation service, and any user can find deberta-v3-base-japanese on GitHub to install. At the same time, huggingface.co provides the effect of deberta-v3-base-japanese install, users can directly use deberta-v3-base-japanese installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
deberta-v3-base-japanese install url in huggingface.co: