How to use multiple GPUs for Kohya Training?
I am using 2x gpus for training using Kohya(Dreambooth). But it is not utilizing both the gpus and instead only 1 gpu is being utilized.
I have tried following solutions:
p.s. docker image I am using: ashleykza/stable-diffusion-webui:3.12.0
I have tried following solutions:
- added "set CUDA_VISIBLE_DEVICES=1" to gui.bat file of kohya_ss
- added the parameters(hardcoded): "aceelerate launch --num_processes=[NUM_YOUR_GPUS_PER_MACHINE] --num_machines=[NUM_YOUR_INDEPENDENT_MACHINES] --multi_gpus --gpu_ids=[GPU_IDS] args..." in the run_cmd of dreambooth_gui.py
- Changed the config files where I set num_processes = 2
p.s. docker image I am using: ashleykza/stable-diffusion-webui:3.12.0