2023-01-04 03:59:26 +00:00
|
|
|
for MODEL_TYPE in "gpt2_medium"; do
|
2023-01-30 09:58:05 +00:00
|
|
|
for DISTPLAN in "CAI_Gemini"; do
|
2023-01-09 07:52:17 +00:00
|
|
|
for BATCH_SIZE in 16; do
|
|
|
|
for GPUNUM in 1 2 4 8; do
|
|
|
|
for TPDEGREE in 1 2 4 8; do
|
|
|
|
if [ ${TPDEGREE} -gt ${GPUNUM} ]; then
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
for PLACEMENT in "cpu" "auto"; do
|
|
|
|
echo "****************** Begin ***************************"
|
2023-01-10 03:39:25 +00:00
|
|
|
echo "+ benchmrking MODEL ${MODEL_TYPE} DISTPLAN ${DISTPLAN} GPU ${GPUNUM} BS ${BATCH_SIZE} TP ${TPDEGREE} POLICY ${PLACEMENT}"
|
|
|
|
MODEL_TYPE=${MODEL_TYPE} DISTPLAN=${DISTPLAN} BATCH_SIZE=${BATCH_SIZE} GPUNUM=${GPUNUM} TPDEGREE=${TPDEGREE} PLACEMENT=${PLACEMENT} \
|
2023-01-09 07:52:17 +00:00
|
|
|
bash ./run_gemini.sh
|
|
|
|
echo "****************** Finished ***************************"
|
|
|
|
echo ""
|
|
|
|
echo ""
|
|
|
|
done
|
2023-01-04 03:59:26 +00:00
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
2022-12-29 04:00:00 +00:00
|
|
|
done
|