Repository: stable-diffusion-webui
Issue: [Bug]: My AMD device cannot check CPU to run CPU mode?
Labels: bug-report

### Checklist

- [ ] The issue exists after disabling all extensions
- [X] The issue exists on a clean installation of webui
- [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [X] The issue exists in the current version of the webui
- [ ] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet

### What happened?

when i add "--skip-torch-cuda-test" to "webui-user.bat" and run it, it still scan "cu121" (cuda) to download and not scan "cpu". (tears of joy)

### Steps to reproduce the problem

1. download python 3.10.6 (conda install), git 2.45.2 (latest ver.), and git clone stable-diffusion-webui.
2. add "--skip-torch-cuda-test" behind the line "set COMMANDLINE_ARGS=" in "webui-user.bat" file.
3. run and get the problem.

### What should have happened?

1. first time i try to run directly, will download cu121.
2. i try to read some python files, then go to "modules/launch_utils.py", and replace the text "cu121" as "cpu" then save, this time run "webui_user.bat".
3. now i can download torch (cpu version), but after installing torch and torchvision, it still show error that i have to... add "--skip-torch-cuda-test" into "webui-user.bat"? (tears of joy again)

### What browsers do you use to access the UI ?

_No response_

### Sysinfo

Windows 10 LTSC 2019, build 17763.5696
AMD Ryzen 5 5600G, AMD Radeon Graphics (this is GPU so i won't use it), 16GB RAM

### Console logs

```Shell
(sd) C:\Users\Lenbot\_Stable_Diffusion_WebUI\stable-diffusion-webui>.\webui-user.bat
Creating venv in directory C:\Users\Lenbot\_Stable_Diffusion_WebUI\stable-diffusion-webui\venv using python "C:\Users\Lenbot\miniconda3\envs\sd\python.exe"
venv "C:\Users\Lenbot\_Stable_Diffusion_WebUI\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 | packaged by conda-forge | (main, Oct 24 2022, 16:02:16) [MSC v.1916 64 bit (AMD64)]
Version: v1.9.4
Commit hash: feee37d75f1b168768014e4634dcb156ee649c05
Installing torch and torchvision
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu121  # the problem is here, so i press Ctrl+C when i met this.

ERROR: Operation cancelled by user

[notice] A new release of pip available: 22.2.1 -> 24.1
[notice] To update, run: C:\Users\Lenbot\_Stable_Diffusion_WebUI\stable-diffusion-webui\venv\Scripts\python.exe -m pip install --upgrade pip
Traceback (most recent call last):
  File "C:\Users\Lenbot\_Stable_Diffusion_WebUI\stable-diffusion-webui\launch.py", line 48, in <module>
    main()
  File "C:\Users\Lenbot\_Stable_Diffusion_WebUI\stable-diffusion-webui\launch.py", line 39, in main
    prepare_environment()
  File "C:\Users\Lenbot\_Stable_Diffusion_WebUI\stable-diffusion-webui\modules\launch_utils.py", line 380, in prepare_environment
    run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True)
  File "C:\Users\Lenbot\_Stable_Diffusion_WebUI\stable-diffusion-webui\modules\launch_utils.py", line 103, in run
    result = subprocess.run(**run_kwargs)
  File "C:\Users\Lenbot\miniconda3\envs\sd\lib\subprocess.py", line 503, in run
    stdout, stderr = process.communicate(input, timeout=timeout)
  File "C:\Users\Lenbot\miniconda3\envs\sd\lib\subprocess.py", line 1144, in communicate
    self.wait()
  File "C:\Users\Lenbot\miniconda3\envs\sd\lib\subprocess.py", line 1207, in wait
    return self._wait(timeout=timeout)
  File "C:\Users\Lenbot\miniconda3\envs\sd\lib\subprocess.py", line 1488, in _wait
    result = _winapi.WaitForSingleObject(self._handle,
KeyboardInterrupt
^C终止批处理操作吗(Y/N)? y
```


### Additional information

the project can run well on 1.8.0 version (even i run well on my "Windows 11 on ARM" device), but 1.9.4 has this problem.
so i can easily confuse on it. @_@