File size: 583 Bytes
fd30a7e
 
a785f6e
fd30a7e
 
a785f6e
fd30a7e
be65c68
fd30a7e
 
 
 
 
 
 
 
 
 
 
ebcadc0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
!CUDA_VISIBLE_DEVICES=0 python src/train_bash.py \
    --stage sft \
    --model_name_or_path "ziqingyang/chinese-alpaca-2-7b" \
    --do_train \
    --dataset mydata \
    --template default \
    --finetuning_type lora \
    --lora_target q_proj,v_proj \
    --output_dir ckpoint \
    --overwrite_cache \
    --auto_find_batch_size=False \
    --per_device_train_batch_size 4 \
    --gradient_accumulation_steps 4 \
    --lr_scheduler_type cosine \
    --logging_steps 10 \
    --save_steps 10 \
    --learning_rate 5e-5 \
    --num_train_epochs 3.0 \
    --plot_loss \
    --fp16