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.
11 lines
460 B
11 lines
460 B
# distplan in ["colossalai", "zero1", "zero2", "torch_ddp", "torch_zero"]
|
|
export DISTPAN="colossalai"
|
|
|
|
# The following options only valid when DISTPAN="colossalai"
|
|
export TPDEGREE=2
|
|
export GPUNUM=4
|
|
export PLACEMENT='cpu'
|
|
export USE_SHARD_INIT=False
|
|
|
|
env OMP_NUM_THREADS=16 torchrun --standalone --nproc_per_node=${GPUNUM} train_gpt_demo.py --tp_degree=${TPDEGREE} --placement ${PLACEMENT} --shardinit ${USE_SHARD_INIT} --distplan ${DISTPAN} 2>&1 | tee run.log
|