mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-04-12 15:59:00 +08:00
add CUDA_VISIBLE_DEVICES to enviornment variables
parent
00f16c0952
commit
e3b1095de3
@ -10,7 +10,7 @@
|
||||
| TORCH_COMMAND | command for installing pytorch |
|
||||
| INDEX_URL | --index-url parameter for pip |
|
||||
| TRANSFORMERS_CACHE | path to where transformers library will download and keep its files related to the CLIP model |
|
||||
|
||||
| CUDA_VISIBLE_DEVICES | select gpu to use for your instance on a system with multiple gpus. For example if you want to use secondary gpu, put "1". (add a line to webui-user.bat): `set CUDA_VISIBLE_DEVICES=0` alternatively, just use `--device-id` flag. |
|
||||
|
||||
### webui-user
|
||||
The recommended way to specify environment variables is by editing `webui-user.bat` (Windows) and `webui-user.sh` (Linux):
|
||||
|
Loading…
x
Reference in New Issue
Block a user