You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The trainer will move diffusion (the model) to the accelerator device -- cuda, which is written and fixed in Accelerator class. And accelerator.device is a read-only property that can not be changed.
How can I perform my training on cuda:1 (or other devices)?
Thanks a lot.
The text was updated successfully, but these errors were encountered:
GuGuGuDove
changed the title
How can I choose preferred GPU?
How can I choose my preferred GPU?
Aug 2, 2024
run export CUDA_VISIBLE_DEVICES=1 to select gpu 1 in bash or your chosen shell before running your python script. The GPU ID if 0 indexed, so 1 is the 2nd GPU in your machine.`
In your training script set the cuda cuda:0 since on python side it will only see 1 gpu.
The trainer will move diffusion (the model) to the accelerator device -- cuda, which is written and fixed in Accelerator class. And accelerator.device is a read-only property that can not be changed.
How can I perform my training on cuda:1 (or other devices)?
Thanks a lot.
The text was updated successfully, but these errors were encountered: