stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

It is not possible to run SD/Auto instances on gpus separately

Open ivanced09 opened this issue 3 years ago • 3 comments

Until recently i could run two separate instances without problem using the command:

set cuda_visible_device="0" or 1

But since a few updates that such command no longer takes effect

ivanced09 avatar Oct 13 '22 00:10 ivanced09

still works here

rethink-studios avatar Oct 13 '22 04:10 rethink-studios

I had this issue at one point.. though for running one one gpu. appears to have been fixed

ClashSAN avatar Oct 17 '22 13:10 ClashSAN

I had this issue at one point.. though for running one one gpu. appears to have been fixed

So I must be doing something wrong, please correct me if I'm doing something wrong:

1-I open anaconda and go to the SD route 2-I put the command (please correct me if I am typing the command wrong) set CUDA_VISIBLE_DEVICE=1 3-I drag the bat "webui.bat" to the anaconda console to start SD

These were the steps that I followed before when it was still necessary to put "conda activate ldm" but after some update it is seen that now I have to do it in a different way.

ivanced09 avatar Oct 18 '22 04:10 ivanced09

I don't have two GPUs, but if I hear about this and if it works i'll try to put some documentation

ClashSAN avatar May 02 '23 23:05 ClashSAN

set CUDA_VISIBLE_DEVICES=(number of your GPU)

example: set CUDA_VISIBLE_DEVICES=2

On Tue, May 2, 2023 at 6:47 PM ClashSAN @.***> wrote:

I don't have two GPUs, but if I hear about this and if it works i'll try to put some documentation

— Reply to this email directly, view it on GitHub https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/2444#issuecomment-1532287157, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOKR6W7RUAHJCYKIQXZN7ALXEGMJZANCNFSM6AAAAAARDY4WJQ . You are receiving this because you commented.Message ID: @.***>

-- Brian Bullock

Founder / Director of CGI

RETHINK Studios

https://www.rethinkstudios.tv/ 708-289-1059 @.*** https://ai.rethinkstudios.tv/ [image: linkedin] https://www.linkedin.com/in/brian-bullock-9aa0512/ [image: instagram] https://www.instagram.com/brian.bullock.796/

rethink-studios avatar May 02 '23 23:05 rethink-studios

ty, but the option is "0" or "1" for specifying a dual GPU setup right? Everything working for you with the latest version?

ClashSAN avatar May 03 '23 00:05 ClashSAN

Correct, under Windows. Usually "0" is main, and "1" is the other and you can run both in a separate CLI, if you create two different webui-user.bat files

On Tue, May 2, 2023 at 7:07 PM ClashSAN @.***> wrote:

ty, but the option is "0" and "1" for a dual GPU setup right?

— Reply to this email directly, view it on GitHub https://mailtrack.io/trace/link/de88ea0f9f8a4761c190e73b4b97db478b4e9de2?url=https%3A%2F%2Fgithub.com%2FAUTOMATIC1111%2Fstable-diffusion-webui%2Fissues%2F2444%23issuecomment-1532299444&userId=656862&signature=882ff41ffb5e448d, or unsubscribe https://mailtrack.io/trace/link/c89d79f2ce75affad8f11155e7c33e137d21cfde?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAOKR6W4H5FYC6E2UXA6BJNDXEGOSRANCNFSM6AAAAAARDY4WJQ&userId=656862&signature=212c48d44b4988ab . You are receiving this because you commented.Message ID: @.***>

-- Brian Bullock

Founder / Director of CGI

RETHINK Studios

https://www.rethinkstudios.tv/ https://mailtrack.io/trace/link/592b251291948b0a3983985511bc25791b58d81c?url=https%3A%2F%2Fwww.rethinkstudios.tv%2F&userId=656862&signature=3095d42052916d15 708-289-1059 @.*** https://ai.rethinkstudios.tv/ https://mailtrack.io/trace/link/c528983c0c006c499397cc48ad421e45539744ad?url=https%3A%2F%2Fai.rethinkstudios.tv%2F&userId=656862&signature=486ac8e787fd6d19 [image: linkedin] https://mailtrack.io/trace/link/335206b50c4ee243279104f164c80c0359d383f7?url=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fbrian-bullock-9aa0512%2F&userId=656862&signature=eaad5a94464e6dcf [image: instagram] https://mailtrack.io/trace/link/05eb26fe8971b6ab6bdd7cc56f281deab292a4cd?url=https%3A%2F%2Fwww.instagram.com%2Fbrian.bullock.796%2F&userId=656862&signature=52ef07f8007beab6

rethink-studios avatar May 03 '23 01:05 rethink-studios

GPU can be specified with --device-id.

catboxanon avatar Aug 11 '23 16:08 catboxanon