25 lines
712 B
Bash
25 lines
712 B
Bash
python train.py \
|
|
--do_train \
|
|
--do_eval \
|
|
--do_export \
|
|
--model_name_or_path /mnt/d/weiweiwang/intention/models/ernie-3.0-tiny-base-v2-zh \
|
|
--output_dir checkpoint \
|
|
--device gpu:0 \
|
|
--train_path ./data/train.txt \
|
|
--dev_path ./data/dev.txt \
|
|
--label_path ./data/label.txt \
|
|
--num_train_epochs 100 \
|
|
--early_stopping True \
|
|
--early_stopping_patience 5 \
|
|
--learning_rate 3e-5 \
|
|
--max_length 256 \
|
|
--per_device_eval_batch_size 16 \
|
|
--per_device_train_batch_size 16 \
|
|
--metric_for_best_model accuracy \
|
|
--load_best_model_at_end \
|
|
--logging_steps 5 \
|
|
--evaluation_strategy epoch \
|
|
--save_strategy epoch \
|
|
--save_total_limit 1
|
|
|