From e3b1095de323cd0ad7fa2dc2d47ed8456842ec14 Mon Sep 17 00:00:00 2001 From: ClashSAN <98228077+ClashSAN@users.noreply.github.com> Date: Wed, 3 May 2023 22:13:18 +0000 Subject: [PATCH] add CUDA_VISIBLE_DEVICES to enviornment variables --- Command-Line-Arguments-and-Settings.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Command-Line-Arguments-and-Settings.md b/Command-Line-Arguments-and-Settings.md index 709e980..cd78aff 100644 --- a/Command-Line-Arguments-and-Settings.md +++ b/Command-Line-Arguments-and-Settings.md @@ -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):