flow_grpo_cxr / scripts /multi_node /qwenimage_edit.sh
zhui711's picture
Upload folder using huggingface_hub
535fb25 verified
Raw
History Blame Contribute Delete
473 Bytes
#!/bin/bash
GPUS_PER_NODE=8
NUM_MACHINES=4
NUM_PROCESSES=$((NUM_MACHINES * GPUS_PER_NODE))
MASTER_PORT=19001
MASTER_ADDR=10.82.139.22
RANK=$1
# Launch command using torchrun (native PyTorch distributed)
torchrun \
--nproc_per_node=${GPUS_PER_NODE} \
--nnodes=${NUM_MACHINES} \
--node_rank=${RANK} \
--master_addr=${MASTER_ADDR} \
--master_port=${MASTER_PORT} \
scripts/train_qwenimage_edit.py \
--config config/grpo.py:counting_qwenimage_edit