Closed bzarky closed 4 months ago
I got it working again, I had to install some HIP ROCM packages from nobara ROCM. no idea how i figured that out.
You should not add --use-directml
because DirectML does not support Linux environment excepting WSL.
I was not aware of that. All the info i found said i had to use it, but i guess i figured out the hard way that it was not necessary. Thanks.
You have to use it when you are on Windows. But you are not on Windows and able to try ROCm. So --use-directml
is useless and won't work.
Got it, Thank you. This could be good information to keep around for people unfamiliar with it like myself.
What did u install? Facing the same issue
Checklist
What happened?
Fresh install of stable-diffusion-webui-directml, using pyenv to set env to 3.10.13. requirements_versions.txt edited to include torch-directml torch-directml appears to install successfully webui.sh launched with --use-directml
Error seen below. As far as I can surmise, i am doing everything correctly, according to the pinned issue with the same error, but the fixes there do not seem to apply here.
I was able to get it to work once yesterday, but i do not have any logs to prove it and i'm not sure how it worked, but after closing and launching it again, the error came back and it would not launch. So lets just go forward with the information i have.
Steps to reproduce the problem
git clone https://github.com/lshqqytiger/stable-diffusion-webui-directml && cd stable-diffusion-webui-directml
requirements_versions.txt
to includetorch-directml
sh webui.sh
RuntimeError: "LayerNormKernelImpl" not implemented for 'Half'
sh webui.sh --no-half
RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check
AttributeError: module 'torch' has no attribute 'dml'
What should have happened?
Webui should run and detect that torch-directml is installed
What browsers do you use to access the UI ?
Mozilla Firefox
Sysinfo
If I try to poll sysinfo via the webui (With
--skip-torch-cuda-test
to let it launch), it crashes withAttributeError: module 'torch' has no attribute 'dml'
even though--use-directml
was not passed at launch.running
sh webui.sh --dump-sysinfo
provides the same outcome.Console logs
Additional information
I've been trying over and over to get this to start reliably without luck. I'm really not sure what else to do. I'm hoping someone else can spot something I'm missing or doing wrong. I'll provide any more info necessary.