Skip to content
Snippets Groups Projects
Unverified Commit e13f116a authored by i-robot's avatar i-robot Committed by Gitee
Browse files

!3132 更新resnet中golden-stick的多卡启动脚本

Merge pull request !3132 from fuzhongqian/master
parents 08ed60b2 319af1c0
No related branches found
No related tags found
No related merge requests found
......@@ -89,13 +89,13 @@ cd ./train_parallel || exit
if [ "x$CKPT_TYPE" == "xFP32" ]; then
mpirun --allow-run-as-root -n $RANK_SIZE --output-filename log_output --merge-stderr-to-stdout \
python train.py --config_path=$CONFIG_FILE --run_distribute=True --device_target="GPU" \
--data_path=$DATASET_PATH --fp32_ckpt=$CKPT_FILE --output_path './output' &> log &
--device_num=$DEVICE_NUM --data_path=$DATASET_PATH --fp32_ckpt=$CKPT_FILE --output_path './output' &> log &
elif [ "x$CKPT_TYPE" == "xPRETRAINED" ]; then
mpirun --allow-run-as-root -n $RANK_SIZE --output-filename log_output --merge-stderr-to-stdout \
python train.py --config_path=$CONFIG_FILE --run_distribute=True --device_target="GPU" \
--data_path=$DATASET_PATH --pre_trained=$CKPT_FILE --output_path './output' &> log &
--device_num=$DEVICE_NUM --data_path=$DATASET_PATH --pre_trained=$CKPT_FILE --output_path './output' &> log &
else
mpirun --allow-run-as-root -n $RANK_SIZE --output-filename log_output --merge-stderr-to-stdout \
python train.py --config_path=$CONFIG_FILE --run_distribute=True --device_target="GPU" \
--data_path=$DATASET_PATH --output_path './output' &> log &
--device_num=$DEVICE_NUM --data_path=$DATASET_PATH --output_path './output' &> log &
fi
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment