mirror of https://github.com/hpcaitech/ColossalAI
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
600 B
24 lines
600 B
set -x
|
|
$(cd `dirname $0`;pwd)
|
|
export TRAIN_STEP=4
|
|
|
|
for MODEL_TYPE in "gpt2_medium"; do
|
|
for DISTPLAN in "CAI_Gemini"; do
|
|
for BATCH_SIZE in 2; do
|
|
for GPUNUM in 1 4; do
|
|
MODEL_TYPE=${MODEL_TYPE} DISTPLAN=${DISTPLAN} BATCH_SIZE=${BATCH_SIZE} GPUNUM=${GPUNUM} \
|
|
bash ./run_gemini.sh
|
|
done
|
|
done
|
|
done
|
|
|
|
for DISTPLAN in "CAI_ZeRO2" "CAI_ZeRO1"; do
|
|
for BATCH_SIZE in 2; do
|
|
for GPUNUM in 1 4; do
|
|
MODEL_TYPE=${MODEL_TYPE} DISTPLAN=${DISTPLAN} BATCH_SIZE=${BATCH_SIZE} GPUNUM=${GPUNUM} \
|
|
bash ./run_gemini.sh
|
|
done
|
|
done
|
|
done
|
|
done
|