File size: 442 Bytes
9e14838 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
GPU_NUM=8
WORLD_SIZE=1
RANK=0
MASTER_ADDR=localhost
MASTER_PORT=29572
DISTRIBUTED_ARGS="
--nproc_per_node $GPU_NUM \
--nnodes $WORLD_SIZE \
--node_rank $RANK \
--master_addr $MASTER_ADDR \
--master_port $MASTER_PORT
"
PY_ARGS=${@:1} # Any other arguments
python -m torch.distributed.launch $DISTRIBUTED_ARGS main_finetune.py \
--model AIDE \
--batch_size 32 \
--blr 5e-4 \
--epochs 5 \
${PY_ARGS}
|