8 lines
152 B
Bash
8 lines
152 B
Bash
|
|
#!/usr/bin/env bash
|
||
|
|
|
||
|
|
set -x
|
||
|
|
NGPUS=$1
|
||
|
|
PY_ARGS=${@:2}
|
||
|
|
|
||
|
|
python -m torch.distributed.launch --nproc_per_node=${NGPUS} test.py --launcher pytorch ${PY_ARGS}
|