mirror of https://github.com/THUDM/ChatGLM-6B
fix error when only 1 gpu
parent
a0dc8f774a
commit
0b7dc01921
|
@ -2,8 +2,9 @@
|
|||
LR=1e-4
|
||||
|
||||
MASTER_PORT=$(shuf -n 1 -i 10000-65535)
|
||||
NUM_GPUS=$(nvidia-smi --list-gpus | wc -l)
|
||||
|
||||
deepspeed --num_gpus=1 --master_port $MASTER_PORT main.py \
|
||||
deepspeed --num_gpus=$NUM_GPUS --master_port $MASTER_PORT main.py \
|
||||
--deepspeed deepspeed.json \
|
||||
--do_train \
|
||||
--train_file AdvertiseGen/train.json \
|
||||
|
|
Loading…
Reference in New Issue