2023-06-08 03:27:05 +00:00
|
|
|
set -xe
|
|
|
|
pip install -r requirements.txt
|
|
|
|
|
|
|
|
BS=4
|
|
|
|
for PLUGIN in "torch_ddp" "torch_ddp_fp16" "low_level_zero" "gemini"
|
2023-01-16 06:44:29 +00:00
|
|
|
do
|
2023-06-08 03:27:05 +00:00
|
|
|
for GPUNUM in 1 4
|
|
|
|
do
|
|
|
|
|
2023-09-21 02:42:25 +00:00
|
|
|
colossalai run \
|
2023-06-08 03:27:05 +00:00
|
|
|
--nproc_per_node ${GPUNUM} \
|
2023-09-21 02:42:25 +00:00
|
|
|
--master_port 29505 \
|
2023-06-08 03:27:05 +00:00
|
|
|
opt_benchmark.py \
|
|
|
|
--model_name_or_path "facebook/opt-125m" \
|
|
|
|
--plugin ${PLUGIN} \
|
|
|
|
--batch_size ${BS}
|
|
|
|
|
|
|
|
done
|
2023-01-16 06:44:29 +00:00
|
|
|
done
|