digitalWDF / examples /finetune.sh
bigPear's picture
Upload 76 files
7975f51
raw
history blame
460 Bytes
#!/bin/bash
CUDA_VISIBLE_DEVICES=0 python ../src/finetune.py \
--do_train \
--dataset alpaca_gpt4_zh \
--dataset_dir ../data \
--finetuning_type lora \
--output_dir path_to_sft_checkpoint \
--overwrite_cache \
--per_device_train_batch_size 4 \
--gradient_accumulation_steps 4 \
--lr_scheduler_type cosine \
--logging_steps 10 \
--save_steps 1000 \
--learning_rate 5e-5 \
--num_train_epochs 3.0 \
--fp16