Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use multiGPU #83

Open
deavn2236 opened this issue May 23, 2024 · 2 comments
Open

how to use multiGPU #83

deavn2236 opened this issue May 23, 2024 · 2 comments

Comments

@deavn2236
Copy link

How can I use multiple GPUs to train a model simultaneously

@YY-GX
Copy link

YY-GX commented Jun 16, 2024

I have the same question, it'll be quite helpful if this repo could support multi-GPU training considering it takes such a long time to train some environments.

@qureshinomaan
Copy link

I think the UMI repository has provided a way of training multi GPU training.
https://github.com/real-stanford/universal_manipulation_interface

I was able to make it work with this repository as well. There are only three changes :
Using the environment in umi instead of the diffusion policy one..

Use this workspace : https://github.com/real-stanford/universal_manipulation_interface/blob/main/diffusion_policy/workspace/train_diffusion_unet_image_workspace.py

And in https://github.com/real-stanford/diffusion_policy/blob/main/diffusion_policy/model/common/module_attr_mixin.py
make the change : self._dummy_variable = nn.Parameter(requires_grad=False)

accelerate launch --num_processes train.py --config-dir=. --config-name=image_pusht_diffusion_policy_cnn.yaml training.seed=42 training.device=cuda:0 hydra.run.dir='data/outputs/${now:%Y.%m.%d}/${now:%H.%M.%S}${name}${task_name}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants