How to select a specific single GPU in a multi-GPU system #89
-
Thought I would drop this here because I was looking and could not find. I have a 3060ti (8gb) and a 3060 (12gb). when I first started training, it sent my 3060ti into helicopter take-off mode, since it is my system primary. To select the alternate GPU, I borrowed my code from Koya_ss launch. Edit your OneTrainer\start-ui.bat in the following manner: :activate_venv Add the CUDA_VISIBLE_DEVICES line to the batch file. System default is 0, the alternate is 1 This will probably apply to a very small portion of people, but thought I would help those in the same boat as I. Cheers! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
In the General tab, at Train Device, I was able to select which card to use by changing "cuda" for "cuda:0" or "cuda:1" |
Beta Was this translation helpful? Give feedback.
-
are you able to use multiple gpu's like you can with Kohya_ss? Will it take cuda:0,1? |
Beta Was this translation helpful? Give feedback.
-
This worked for me:
and in my train device I just kept "cuda". When I started it back up I was able to get it to use my other GPU Card |
Beta Was this translation helpful? Give feedback.
In the General tab, at Train Device, I was able to select which card to use by changing "cuda" for "cuda:0" or "cuda:1"