mirror of https://github.com/hpcaitech/ColossalAI
aibig-modeldata-parallelismdeep-learningdistributed-computingfoundation-modelsheterogeneous-traininghpcinferencelarge-scalemodel-parallelismpipeline-parallelism
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
447 B
24 lines
447 B
set -xe |
|
pip install -r requirements.txt |
|
|
|
export BS=8 |
|
export MEMCAP=0 |
|
export GPUNUM=1 |
|
|
|
for BS in 8 32 |
|
do |
|
for PLUGIN in "torch_ddp" "torch_ddp_fp16" "low_level_zero" "gemini" "hybrid_parallel" |
|
do |
|
|
|
MODEL_PATH="google/vit-base-patch16-224" |
|
colossalai run \ |
|
--nproc_per_node ${GPUNUM} \ |
|
--master_port 29505 \ |
|
vit_benchmark.py \ |
|
--model_name_or_path ${MODEL_PATH} \ |
|
--mem_cap ${MEMCAP} \ |
|
--plugin ${PLUGIN} \ |
|
--batch_size ${BS} |
|
|
|
done |
|
done
|
|
|