File size: 1,053 Bytes
936459a | 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 30 31 32 33 | export WANDB_MODE=disabled
export CUDA_LAUNCH_BLOCKING=0
DATASET=Instruments
CKPT_PATH=/datain/v-yinju/rq-llama/v11/Instruments
DATA_PATH=/datain/v-yinju/rqvae-zzx/data
OUTPUT_DIR=$CKPT_PATH/finetune
torchrun --nproc_per_node=8 fine-tune.py \
--ckpt_path $CKPT_PATH \
--output_dir $OUTPUT_DIR \
--dataset $DATASET \
--data_path $DATA_PATH \
--per_device_batch_size 6 \
--gradient_accumulation_steps 2 \
--learning_rate 5e-5 \
--epochs 4 \
--weight_decay 0.01 \
--save_and_eval_strategy epoch \
--fp16 \
--deepspeed ./config/ds_z2_fp16.json \
--dataloader_num_workers 4 \
--only_train_response \
--tasks seqrec,itemsearch,preferenceobtain,item2index,index2item,fusionseqrec,usersearch,user2pref,pref2user \
--train_prompt_sample_num 1,1,1,1,1,1,1,1,1 \
--train_data_sample_num 0,0,0,0,0,0,0,0,0 \
--index_file $CKPT_PATH/indices.item.json \
--user_index_file $CKPT_PATH/indices.user.json \
--reindex 17
cd convert
nohup ./convert.sh $OUTPUT_DIR >convert.log 2>&1 &
cd .. |