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

set CUDA_VISIBLE_DEVICES through SM #1166

Closed
LaikaSa opened this issue Feb 21, 2025 · 2 comments
Closed

set CUDA_VISIBLE_DEVICES through SM #1166

LaikaSa opened this issue Feb 21, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@LaikaSa
Copy link

LaikaSa commented Feb 21, 2025

Proposal

Thank you for developing this app, I using this daily for how convenient it is for manage multiple generation tools. I have a suggestion:
Lets users choose which GPU to use by allowing set CUDA_VISIBLE_DEVICES=# within SM app.
Currently it only doable if I go into the package, add that line to and launch webui-user.bat directly. However launching through SM, it ignores the command and only using the default GPU
using COMMANDLINE_ARGS = --devices-id is not the same as it is unreliable.

@LaikaSa LaikaSa added the enhancement New feature or request label Feb 21, 2025
@mohnjiles
Copy link
Contributor

Hi, there should be an "Environment Variables" section in the SM Settings where you can set such things, like so:
Image

Will see if we can automatically set that based on the GPU selector further down in the settings perhaps 🤔

@LaikaSa
Copy link
Author

LaikaSa commented Feb 22, 2025

oh neat, I should've explore the app more before posting, thank you so much

@LaikaSa LaikaSa closed this as completed Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants