Commit 3c28d2ed authored by dcuai's avatar dcuai
Browse files

Update dist_train.sh ——torchrun

parent 7e866c8a
...@@ -8,7 +8,7 @@ PORT=${MASTER_PORT:-29500} ...@@ -8,7 +8,7 @@ PORT=${MASTER_PORT:-29500}
MASTER_ADDR=${MASTER_ADDR:-"127.0.0.1"} MASTER_ADDR=${MASTER_ADDR:-"127.0.0.1"}
PYTHONPATH="$(dirname $0)/..":$PYTHONPATH \ PYTHONPATH="$(dirname $0)/..":$PYTHONPATH \
python -m torch.distributed.launch \ torchrun \
--nnodes=$NNODES \ --nnodes=$NNODES \
--node_rank=$NODE_RANK \ --node_rank=$NODE_RANK \
--master_addr=$MASTER_ADDR \ --master_addr=$MASTER_ADDR \
......
Markdown is supported
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