-
My GPU0 is rtx3070 8G, and my GPU1 is Tesla M40 24G.I don't want two graphics cards to work in parallel., I just want to only use the second video card, the Tesla M40, for training. I have added -- device id 1 to the startup item of WebUI, but when this plug-in runs, it still uses GPU0, RTX3070. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Can you add a listbox to chose which device to use ? |
Beta Was this translation helpful? Give feedback.
-
edit the webui-user.bat as follows: after
in This will result in GPU 1 (your second GPU) being the only GPU seen by the UI, which means that it becomes --device-id 0 as far as it's concerned. If you're on Linux, basically same thing just slightly different language (webui-user.sh):
somewhere in the beginning I usually put it near the venv section |
Beta Was this translation helpful? Give feedback.
edit the webui-user.bat as follows:
after
@echo off
add:in
COMMAND_LINE_ARGS=
use--device-id 0
This will result in GPU 1 (your second GPU) being the only GPU seen by the UI, which means that it becomes --device-id 0 as far as it's concerned.
If you're on Linux, basically same thing just slightly different language (webui-user.sh):
somewhere in the beginning I usually put it near the venv section