Closed iwcyou closed 3 months ago
This can be done by adding simple code as follows: diffusion.model = torch.nn.DataParallel(diffusion.model, device_ids=[0, 1, 2, 3])
This can be done by adding simple code as follows: diffusion.model = torch.nn.DataParallel(diffusion.model, device_ids=[0, 1, 2, 3])
Thank you. You are such a good persion.
I saw you use 4 GPUs in your training process. But there isn't mutiple GPU training code in your
drive.py
file. When I runpython drive.py
the arg ofnum_processes
is "1". And the use of accelerate is prepared for 1 process. I don't know which args I missed. What should I do can implement multiple GPU training, please.