Forcing PyTorch version for AMD GPUs automatic install#9404
Forcing PyTorch version for AMD GPUs automatic install#9404AUTOMATIC1111 merged 3 commits intoAUTOMATIC1111:devfrom
Conversation
The old code tries to install the newest versions of pytorch, wich is currently 2.0. Forcing it to 1.13.1
|
Aren't we supposed to use pytorch 2.0 now? |
Not yet. There are many people wich are already using pytorch 2.0, but the default TORCH_COMMAND is still 1.13.1 in launch.py:
|
|
PyTorch seems to have screwed up the install command and now suggests |
In the "install previous versions" page it still uses --extra-index-url https://pytorch.org/get-started/previous-versions/ |
|
I know that #9191 has just been merged and now the torch base enviroment is PyTorch2, but i'm having some issues with it on my RX 5700XT, it gives me "bus error" when i try to generate an image. i don't know if it's just me, but i think is safer to keep 1.13.1 for AMD users until the next ROCm version is released |
That’s weird, I have a 6700xt and been running torch 2.0 with no issue at for the past month or so. Install the newest rocm 5.4.2/3 drivers, remove all instances or torch and reinstall from scratch. Unless this is an issue only affecting the 5000 series. |
|
The issue is that it depends on the card, some work fine on 2.x and some only work on 1.x, and some work on both but are faster on one. Theres no one version that everything works well on, sadly. Hopefully a new ROCm or PyTorch version fixes this |
Precisely. And for user wich have installed pytorch2 manually, they can just continue to use it without any problem |
|
Fresh installation of Automatic1111 still installing pytorch 2.0 on first launch of webui-user.bat, which later prompts the message about not able to use GPU. Test generating an image, no usage of GPU at all....a 512x768 image takes 1hr. Deleted venv folder and tried to manually install: ??? what should I do next to get the older version torch? |
That's for Linux + ROCm drivers only. It's currently not possible to use it on windows on AMD because there's no support for PyTorch (yet) It's all written in the docs: |
|
my MacBook pro also have this question. |
This is an old pull request for some code wich has been partially re-written on newer versions. |
The old code tries to install the newest versions of pytorch, wich is currently 2.0. Forcing it to 1.13.1
should also fix #9402