dome272 / Diffusion-Models-pytorch

Pytorch implementation of Diffusion Models (https://arxiv.org/pdf/2006.11239.pdf)
Apache License 2.0
1.11k stars 256 forks source link

how to train the model on multiple GPUs? #35

Closed anchoret2009 closed 11 months ago

anchoret2009 commented 1 year ago

thanks.

NoahSchiro commented 11 months ago

Hi I am not the project maintainer but this question is more oriented towards a question about how PyTorch works. PyTorch has great documentation on multi-gpu training which you can find here https://pytorch.org/tutorials/beginner/ddp_series_intro.html

You will need to modify some of the variables in the train() function to do match the above documentation. It believe it is fairly straightforward as long as you are familiar with pytorch

anchoret2009 commented 11 months ago

thanks~