Skip to content

fix: don't hardcode CUDA_VISIBLE_DEVICES#319

Open
fahimahmedx wants to merge 1 commit intoSafeAILab:mainfrom
fahimahmedx:main
Open

fix: don't hardcode CUDA_VISIBLE_DEVICES#319
fahimahmedx wants to merge 1 commit intoSafeAILab:mainfrom
fahimahmedx:main

Conversation

@fahimahmedx
Copy link

The webui had os.environ["CUDA_VISIBLE_DEVICES"] = "2,3" hardcoded on line 2, which assumes the user has at least 4 GPUs available.

To solve this, this PR replaces the hardcoded CUDA_VISIBLE_DEVICES value in webui.py with a configurable CLI argument --cuda-visible-devices.

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

Successfully merging this pull request may close these issues.

1 participant