stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Bug]: Don't start in RX 7600 (Linux)

Open fernandoisnaldo opened this issue 2 years ago • 11 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits

What happened?

Without set HSA_OVERRIDE_GFX_VERSION=11.0.0, this program doesn't start on my RX 7600.

I could solve this adding this variable, then I suggest to add this in webui.sh

Steps to reproduce the problem

bash webui.sh

What should have happened?

Missing setting HSA_OVERRIDE_GFX_VERSION=11.0.0 in source code conditionals of webui.sh.

Version or Commit where the problem happens

1.5.1

What Python version are you running on ?

Python 3.10.x

What platforms do you use to access the UI ?

Linux

What device are you running WebUI on?

AMD GPUs (RX 6000 above)

Cross attention optimization

Automatic

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

`HSA_OVERRIDE_GFX_VERSION=11.0.0 bash webui.sh` to solve this problem.

List of extensions

None

Console logs

Irrelevant information, because I solved the problem with the environment variable that they forgot to export in the code.

Additional information

I think this bug report didn't need so many fields.

fernandoisnaldo avatar Aug 08 '23 15:08 fernandoisnaldo

so,you can run with override command?

Boom-Hacker avatar Sep 15 '23 16:09 Boom-Hacker

can you join my AIT test?it can provide 170% speed

Boom-Hacker avatar Sep 15 '23 17:09 Boom-Hacker

@Boom-Hacker

Yep, I can assure you that with HSA override this works perfectly.

Without HSA override, the server crashes due to segfaut.

Regarding "AIT test", I will not cooperate, as I don't know you and I have no reference as to who you are, but assuming good intentions, I thank you in the same way.

fernandoisnaldo avatar Sep 15 '23 23:09 fernandoisnaldo

nothing

Boom-Hacker avatar Sep 20 '23 08:09 Boom-Hacker

@Boom-Hacker

Yep, I can assure you that with HSA override this works perfectly.

Without HSA override, the server crashes due to segfaut.

Regarding "AIT test", I will not cooperate, as I don't know you and I have no reference as to who you are, but assuming good intentions, I thank you in the same way.

what did you do?i can't start

Boom-Hacker avatar Sep 20 '23 14:09 Boom-Hacker

what did you do?i can't start

I got it working successfully with this command:

HSA_OVERRIDE_GFX_VERSION=11.0.0 webui.sh

You also can, in another alternative, export HSA_OVERRIDE_GFX_VERSION=11.0.0 to environment variables.

fernandoisnaldo avatar Sep 20 '23 23:09 fernandoisnaldo

what rocm and pytorch version?i stuck on Creating model from config: /home/beforespace/stable-diffusion-webui/configs/v1-inference.yaml

Boom-Hacker avatar Sep 21 '23 10:09 Boom-Hacker

Traceback (most recent call last): File "/home/beforespace/RX7600/sd/venv/lib/python3.11/site-packages/diffusers/utils/import_utils.py", line 684, in _get_module return importlib.import_module("." + module_name, self.name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1206, in _gcd_import File "", line 1178, in _find_and_load File "", line 1149, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "/home/beforespace/RX7600/sd/venv/lib/python3.11/site-packages/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py", line 20, in from transformers import CLIPImageProcessor, CLIPTextModel, CLIPTokenizer ImportError: cannot import name 'CLIPImageProcessor' from 'transformers' (/home/beforespace/RX7600/sd/venv/lib/python3.11/site-packages/transformers/init.py)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/home/beforespace/RX7600/sd/test.py", line 2, in from diffusers import StableDiffusionPipeline File "", line 1231, in _handle_fromlist File "/home/beforespace/RX7600/sd/venv/lib/python3.11/site-packages/diffusers/utils/import_utils.py", line 675, in getattr value = getattr(module, name) ^^^^^^^^^^^^^^^^^^^^^ File "/home/beforespace/RX7600/sd/venv/lib/python3.11/site-packages/diffusers/utils/import_utils.py", line 675, in getattr value = getattr(module, name) ^^^^^^^^^^^^^^^^^^^^^ File "/home/beforespace/RX7600/sd/venv/lib/python3.11/site-packages/diffusers/utils/import_utils.py", line 674, in getattr module = self._get_module(self._class_to_module[name]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/beforespace/RX7600/sd/venv/lib/python3.11/site-packages/diffusers/utils/import_utils.py", line 686, in _get_module raise RuntimeError( RuntimeError: Failed to import diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion because of the following error (look up to see its traceback): cannot import name 'CLIPImageProcessor' from 'transformers' (/home/beforespace/RX7600/sd/venv/lib/python3.11/site-packages/transformers/init.py)

Boom-Hacker avatar Sep 21 '23 10:09 Boom-Hacker

what rocm and pytorch version?i stuck on Creating model from config: /home/beforespace/stable-diffusion-webui/configs/v1-inference.yaml

From what I read in the webui.sh source code, the Torch version for Navi 3 is this:

https://download.pytorch.org/whl/nightly/rocm5.6

fernandoisnaldo avatar Sep 21 '23 12:09 fernandoisnaldo

i tested,no effect

Boom-Hacker avatar Sep 21 '23 14:09 Boom-Hacker

i think is about pytorch 2.2 update?

Boom-Hacker avatar Sep 21 '23 14:09 Boom-Hacker