Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Trainer] PaddleNLP trainer and finetune ernie-1.0 pretrain. #1761

Merged
merged 19 commits into from
Mar 30, 2022
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions examples/language_model/ernie-1.0/finetune/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Default Args for all dataset
# You can overwrite the configs in each dataset.
DefaultArgs:
learning_rate: 0.00005
num_train_epochs: 3
batch_size: 64
max_seq_length: 128
weight_decay: 0.01
logging_steps: 10
eval_steps: 200
minimum_eval_times: 20
max_steps: -1
warmup_steps: 0
metric: "Accuracy"
split: "train dev"

# Datasets which used for sequence classfication
SequenceClassification:
clue afqmc:
num_train_epochs: 4
clue tnews:
num_train_epochs: 4
clue iflytek:
num_train_epochs: 8
clue ocnli:
num_train_epochs: 8
clue cmnli:
learning_rate: 1e-4, 5e-5, 1e-5
num_train_epochs: 3
clue wsc:
num_train_epochs: 50
clue csl:
num_train_epochs: 10
max_seq_length: 256
batch_size: 32
xnli_cn:
learning_rate: 0.0001
num_train_epochs: 3
batch_size: 256
chnsenticorp_v2:
learning_rate: 0.00005
batch_size: 16
num_train_epochs: 8

# Datasets which used for token classfication
TokenClassification:
peoples_daily_ner:
learning_rate: 0.00005
num_train_epochs: 8
batch_size: 16
msra_ner:
num_train_epochs: 3

# Datasets which used for question answersing
QuestionAnswering:
cmrc2018:
learning_rate: 0.00005
num_train_epochs: 5
batch_size: 32
max_seq_length: 512
dureader_nlp:
num_train_epochs: 1
batch_size: 12
max_seq_length: 384
dureader_robust:
num_train_epochs: 1
batch_size: 12
max_seq_length: 384
dlbp:
num_train_epochs: 1
batch_size: 12
max_seq_length: 384
Loading