ray start --head--node-ip-address$MASTER_ADDR--port$MASTER_PORT--num-gpus$USER_GPUS_PER_NODE--temp-dir=$RAY_TEMP_DIR# https://github.com/OpenRLHF/OpenRLHF/issues/339
fi
if["$SLURM_PROCID"-ne 0 ];then
# # if you want to launch ray on more nodes, use
ray start --address$MASTER_ADDR:$MASTER_PORT--num-gpus$USER_GPUS_PER_NODE--temp-dir=$RAY_TEMP_DIR
fi
echo"All worker nodes are ready!"
ray status
# only need to submit job on the master node,
# and submitting on other nodes will cause network errors