-
Notifications
You must be signed in to change notification settings - Fork 0
/
train.sh
19 lines (16 loc) · 856 Bytes
/
train.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
meta_path=PROJECT_PATH
CUDA_VISIBLE_DEVICES='0' python instruction-llms-safety-eval/training/finetuning.py \
--num_epochs 3 \
--cutoff_len 1024 \
--val_set_size 0 \
--base_model PATH_TO_LLAMA1 \
--data_path $meta_path/instruction-llms-safety-eval/data/training/saferpaca_Instructions_100_2_mix.json \
--output_dir $meta_path/instruction-llms-safety-eval/checkpoints/Instructions_100_2_mix_llama
CUDA_VISIBLE_DEVICES='1' python instruction-llms-safety-eval/training/finetuning.py \
--num_epochs 3 \
--cutoff_len 1024 \
--val_set_size 0 \
--base_model PATH_TO_LLAMA2 \
--prompt_template_name llama2 \
--data_path $meta_path/instruction-llms-safety-eval/data/training/saferpaca_Instructions_100_2_mix.json \
--output_dir $meta_path/instruction-llms-safety-eval/checkpoints/Instructions_100_2_mix_llama2