run-full.sh 891 Bytes
Newer Older
zhaoying1's avatar
zhaoying1 committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
deepspeed --num_gpus=8 src/train_bash.py \
    --stage sft \
    --model_name_or_path ../baichuan-13b-chat \
    --do_train \
    --template baichuan \
    --dataset alpaca_gpt4_en,alpaca_gpt4_zh,self_cognition,oaast_sft,sharegpt_zh,lima \
    --finetuning_type full \
    --output_dir output \
    --per_device_train_batch_size 1 \
    --per_device_eval_batch_size 1 \
    --gradient_accumulation_steps 2 \
    --preprocessing_num_workers 16 \
    --lr_scheduler_type cosine \
    --logging_steps 10 \
    --save_steps 100 \
    --eval_steps 100 \
    --learning_rate 5e-5 \
    --max_grad_norm 0.5 \
    --num_train_epochs 2.0 \
    --val_size 0.01 \
    --evaluation_strategy steps \
    --load_best_model_at_end \
    --weight_decay 0. \
    --warmup_ratio 0.03 \
    --max_source_length 2000 \
    --max_target_length 1200 \
    --plot_loss \
    --fp16 \
    --deepspeed deepspeed.json