openpi icon indicating copy to clipboard operation
openpi copied to clipboard

Multi GPU training acceleration

Open yuwei-will-xia opened this issue 1 year ago • 8 comments

Hi, I am using multiple GPU for training by setting fsdp_device=n, batch_size=8*n, cuda_devcie_visible=n

But when actually training, the speed does not accelerate a lot, but only increase by 10%, is there anything missing to speed it up?

Thanks

yuwei-will-xia avatar Aug 05 '25 18:08 yuwei-will-xia

@yuwei-will-xia fsdp is probably is not what you need.

By default openpi training script already use all available GPU

FSDP is needed if model does not fit into a single GPU

r7vme avatar Aug 05 '25 18:08 r7vme

For reference

r7vme avatar Aug 05 '25 18:08 r7vme

Hi,

I’ve encountered a similar problem. I finetuned pi0_fast_libero. What I did correctly was to set fsdp_devices to the default value of 1. However, I still find that the GPU utilization is mostly idling, and the training speed is around 2 seconds per iteration. I’m using 8x H100 GPUs.

When I switch to using just 1x H100 GPU, the speed is nearly the same, and the GPU utilization reaches 100%. It seems like the bottleneck is related to I/O.

zwbx avatar Aug 24 '25 05:08 zwbx

I note that you have also support RLDS ( is that called simpledata class?), is it possible to train on Libero with RLDS format

zwbx avatar Aug 24 '25 05:08 zwbx

I note that you have also support RLDS ( is that called simpledata class?), is it possible to train on Libero with RLDS format

hello! I encountered similar situation. Do you find the bottleneck? Thanks

huangyize-me avatar Sep 02 '25 21:09 huangyize-me

I have encouter the same problem. I use 8xh100, global batchsize=96. Use default training(maybe full parameter). And the training speed is around 2s/it. Which is 2 times slower than version of deepspeed training framework.

JayceWen avatar Sep 10 '25 12:09 JayceWen

the bottleneck is mainly in I/O, a simple way is to copy data in to /dev/shm folder

zwbx avatar Sep 13 '25 10:09 zwbx

the bottleneck is mainly in I/O, a simple way is to copy data in to /dev/shm folder

Can you explain "explicit"?

LufanM avatar Jan 20 '26 03:01 LufanM