mirror of https://github.com/THUDM/ChatGLM-6B
fix error when only 1 gpu
parent
23fe46f74a
commit
a0dc8f774a
|
@ -3,7 +3,7 @@ LR=1e-4
|
||||||
|
|
||||||
MASTER_PORT=$(shuf -n 1 -i 10000-65535)
|
MASTER_PORT=$(shuf -n 1 -i 10000-65535)
|
||||||
|
|
||||||
deepspeed --num_gpus=4 --master_port $MASTER_PORT main.py \
|
deepspeed --num_gpus=1 --master_port $MASTER_PORT main.py \
|
||||||
--deepspeed deepspeed.json \
|
--deepspeed deepspeed.json \
|
||||||
--do_train \
|
--do_train \
|
||||||
--train_file AdvertiseGen/train.json \
|
--train_file AdvertiseGen/train.json \
|
||||||
|
|
Loading…
Reference in New Issue