"sgl-router/src/vscode:/vscode.git/clone" did not exist on "e2e378caba56ac169a37ea9b25c53dc74fba9ea2"
ft_train.sh 872 Bytes
Newer Older
zhaoying1's avatar
zhaoying1 committed
1
LR=5e-5
zhaoying1's avatar
zhaoying1 committed
2
3
4
export HSA_FORCE_FINE_GRAIN_PCIE=1
export NCCL_P2P_LEVEL=5
export NCCL_MIN_NCHANNELS=20
zhaoying1's avatar
zhaoying1 committed
5
6
7
8
9
10
11
12
MASTER_PORT=$(shuf -n 1 -i 10000-65535)
HIP_VISIBLE_DEVICES=0,1,2,3 deepspeed --num_gpus=4 --master_port $MASTER_PORT main.py \
    --deepspeed deepspeed.json \
    --do_train \
    --train_file AdvertiseGen/train.json \
    --test_file AdvertiseGen/dev.json \
    --prompt_column content \
    --response_column summary \
zhaoying1's avatar
zhaoying1 committed
13
14
    --model_name_or_path ../model/chatglm-6b \
    --output_dir ./output_ft/nooptim-adgen-chatglm-6b-ft-4c-$LR \
zhaoying1's avatar
zhaoying1 committed
15
    --overwrite_output_dir \
zhaoying1's avatar
zhaoying1 committed
16
17
18
    --max_source_length 512 \
    --max_target_length 512 \
    --per_device_train_batch_size 1 \
zhaoying1's avatar
zhaoying1 committed
19
20
21
    --per_device_eval_batch_size 1 \
    --gradient_accumulation_steps 1 \
    --predict_with_generate \
zhaoying1's avatar
zhaoying1 committed
22
23
    --max_steps 30 \
    --logging_steps 30 \
zhaoying1's avatar
zhaoying1 committed
24
25
    --save_steps 1000 \
    --learning_rate $LR \
zhaoying1's avatar
zhaoying1 committed
26
    --fp16 \