Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use multiple gpu #644

Closed
qq6264214 opened this issue Sep 18, 2022 · 3 comments
Closed

How to use multiple gpu #644

qq6264214 opened this issue Sep 18, 2022 · 3 comments

Comments

@qq6264214
Copy link

I have many gpus, but defalut only use one. How to use many?

@SethRobinson
Copy link

Probably not what you're looking for, but a dumb way is simply to run multiple servers on the same computer like this:

(instance one)
CUDA_VISIBLE_DEVICES=0 python launch.py --listen --port 7860

(instance two)
CUDA_VISIBLE_DEVICES=1 python launch.py --listen --port 7861
(etc)

Then open multiple browser windows and control them separately.

@ghadeb
Copy link

ghadeb commented Sep 20, 2022

If you're referring to parallel data modelng, the feature was already requested in #311.

@SethRobinson, good option though.

@C43H66N12O12S2
Copy link
Collaborator

duplicate of #311

nne998 pushed a commit to fjteam/stable-diffusion-webui that referenced this issue Sep 26, 2023
…rtup

Improve startup performance by not deepcopying component state
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants