The issue regarding multi-GPU training
When I specified 4 Gpus for fine-tuning on the LIBERO dataset, I found that the total training time was no different from that of 1GPU training. I checked the GPU utilization rate, and it always reached 100% during training. Could you please tell me what caused the failure of multi-card training acceleration The following is the code I used:
#4 GPU training
torchrun --standalone --nnodes 1 --nproc_per_node 4 vla-scripts/finetune_libero.py \
--dataset_name libero_spatial_no_noops \
--run_root_dir ./train_exp/UniVLA/libero_spatial/ \
--max_steps 150005 \
--save_steps 30000
and
#1 GPU training
torchrun --standalone --nnodes 1 --nproc_per_node 1 vla-scripts/finetune_libero.py \
--dataset_name libero_spatial_no_noops \
--run_root_dir ./train_exp/UniVLA/libero_spatial/ \
--max_steps 150005 \
--save_steps 30000
Thanks for your interest in our work! In our training configuration, the batch_size refers to the batch size per GPU. We determine the training schedule based on optimization steps rather than epochs. So using additional GPUs effectively increases the total batch size (since more samples are processed per step), which can speed up training. However, the overall training time remains the same, as the total number of steps stays unchanged.