Closed jdw-mis closed 5 days ago
Definitely Zluda error. Try to uninstall HIP SDK 6.1.2, reinstall HIP SDK 5.7.1 put optimized rocmlibs again and make sure you put in correct folder. Then before launching Forge delete Venv folder. If it won't work you might try to delete venv folder again and change command into --zluda
i am not sure if --use-zluda
still works correctly but i was installing only on --zluda
command without any issues
Uninstalled both ROCm, made sure Program Files folder was clear, installed 5.7.1, backed up original library files, overwrote with gfx1031 library ontop, deleted the entire sd forge folder and recloned from git, put AOM2 in models folder, and changed launch param to --zluda --loglevel debug
even though --use-zluda
should be a valid alias.
Same errors as before.
I fixed it by manually adding the generated .zluda folder to Path then rebuilding the venv. Bizarre.
I was going to ask if your folder is added to PATH but i was like "naaah it was added automatically when i was testing zluda". Kind of funny how on 1 PC it adds itself but on other it doesn't. Windows is like a lottery :D
OS: Windows 11 Build 22631 GPU: 6700 XT Driver: 24.10.16 (Pro Edition) ROCm/HIP: both 5.7.1 and 6.1.2 Python: 3.10.6 I have already replaced the ROCm libraries for both ROCm versions with the gtx1031 libraries as detailed here: https://github.com/brknsoul/ROCmLibs/wiki/Installing-Forge%E2%80%90Zluda
WebUI launches, allows for full input, but when attempting to generate an image with any model it fails with the message:
Notably, prior in the log I've noticed the following lines:
I have attempted to install ZLUDA manually, it changed nothing. Same with deleting one or the other ROCm version paths. I think its just not loading ZLUDA for some incomprehensible reason.
Full Log
``` venv "C:\stable-diffusion-webui\stable-diffusion-webui-amdgpu-forge\venv\Scripts\Python.exe" WARNING: ZLUDA works best with SD.Next. Please consider migrating to SD.Next. fatal: No names found, cannot describe anything. Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] Version: f2.0.1v1.10.1-1.10.1 Commit hash: 2e4a9d6f849294b4f2988d8e7f93bf10259e52cb Using ZLUDA in C:\stable-diffusion-webui\stable-diffusion-webui-amdgpu-forge\.zluda Failed to load ZLUDA: list index out of range Using CPU-only torch 2024-09-21 16:58:58 DEBUG [root] Installing put extensions here.txt 2024-09-21 16:58:58 DEBUG [root] Installing extra-options-section 2024-09-21 16:58:58 DEBUG [root] Installing forge_legacy_preprocessors 2024-09-21 16:58:58 DEBUG [root] Installing forge_preprocessor_inpaint 2024-09-21 16:58:58 DEBUG [root] Installing forge_preprocessor_marigold 2024-09-21 16:58:58 DEBUG [root] Installing forge_preprocessor_normalbae 2024-09-21 16:58:58 DEBUG [root] Installing forge_preprocessor_recolor 2024-09-21 16:58:58 DEBUG [root] Installing forge_preprocessor_reference 2024-09-21 16:58:58 DEBUG [root] Installing forge_preprocessor_revision 2024-09-21 16:58:58 DEBUG [root] Installing forge_preprocessor_tile 2024-09-21 16:58:58 DEBUG [root] Installing forge_space_animagine_xl_31 2024-09-21 16:58:58 DEBUG [root] Installing forge_space_birefnet 2024-09-21 16:58:58 DEBUG [root] Installing forge_space_example 2024-09-21 16:58:58 DEBUG [root] Installing forge_space_florence_2 2024-09-21 16:58:58 DEBUG [root] Installing forge_space_geowizard 2024-09-21 16:58:58 DEBUG [root] Installing forge_space_iclight 2024-09-21 16:58:58 DEBUG [root] Installing forge_space_idm_vton 2024-09-21 16:58:58 DEBUG [root] Installing forge_space_illusion_diffusion 2024-09-21 16:58:58 DEBUG [root] Installing forge_space_photo_maker_v2 2024-09-21 16:58:58 DEBUG [root] Installing forge_space_sapiens_normal 2024-09-21 16:58:58 DEBUG [root] Installing mobile 2024-09-21 16:58:58 DEBUG [root] Installing prompt-bracket-checker 2024-09-21 16:58:58 DEBUG [root] Installing ScuNET 2024-09-21 16:58:58 DEBUG [root] Installing sd_forge_controlllite 2024-09-21 16:58:58 DEBUG [root] Installing sd_forge_controlnet 2024-09-21 16:58:59 DEBUG [root] Installing sd_forge_dynamic_thresholding 2024-09-21 16:58:59 DEBUG [root] Installing sd_forge_fooocus_inpaint 2024-09-21 16:58:59 DEBUG [root] Installing sd_forge_freeu 2024-09-21 16:58:59 DEBUG [root] Installing sd_forge_ipadapter 2024-09-21 16:58:59 DEBUG [root] Installing sd_forge_kohya_hrfix 2024-09-21 16:58:59 DEBUG [root] Installing sd_forge_latent_modifier 2024-09-21 16:58:59 DEBUG [root] Installing sd_forge_lora 2024-09-21 16:58:59 DEBUG [root] Installing sd_forge_multidiffusion 2024-09-21 16:58:59 DEBUG [root] Installing sd_forge_neveroom 2024-09-21 16:58:59 DEBUG [root] Installing sd_forge_perturbed_attention 2024-09-21 16:58:59 DEBUG [root] Installing sd_forge_sag 2024-09-21 16:58:59 DEBUG [root] Installing sd_forge_stylealign 2024-09-21 16:58:59 DEBUG [root] Installing soft-inpainting 2024-09-21 16:58:59 DEBUG [root] Installing SwinIR Launching Web UI with arguments: --theme dark --use-zluda --loglevel debug Total VRAM 12272 MB, total RAM 32621 MB pytorch version: 2.3.1+cu121 Set vram state to: NORMAL_VRAM Device: cuda:0 AMD Radeon RX 6700 XT [ZLUDA] : native VAE dtype preferences: [torch.bfloat16, torch.float32] -> torch.bfloat16 CUDA Using Stream: False 2024-09-21 16:59:11 DEBUG [httpx] load_ssl_context verify=True cert=None trust_env=True http2=False 2024-09-21 16:59:11 DEBUG [httpx] load_verify_locations cafile='C:\\stable-diffusion-webui\\stable-diffusion-webui-amdgpu-forge\\venv\\lib\\site-packages\\certifi\\cacert.pem' 2024-09-21 16:59:11 DEBUG [httpx] load_ssl_context verify=True cert=None trust_env=True http2=False 2024-09-21 16:59:11 DEBUG [httpx] load_verify_locations cafile='C:\\stable-diffusion-webui\\stable-diffusion-webui-amdgpu-forge\\venv\\lib\\site-packages\\certifi\\cacert.pem' 2024-09-21 16:59:11 DEBUG [httpx] load_ssl_context verify=True cert=None trust_env=True http2=False 2024-09-21 16:59:11 DEBUG [httpx] load_verify_locations cafile='C:\\stable-diffusion-webui\\stable-diffusion-webui-amdgpu-forge\\venv\\lib\\site-packages\\certifi\\cacert.pem' 2024-09-21 16:59:11 DEBUG [bitsandbytes.cextension] Loading bitsandbytes native library from: C:\stable-diffusion-webui\stable-diffusion-webui-amdgpu-forge\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cuda121.dll Using pytorch cross attention Using pytorch attention for VAE 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing BlpImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing BmpImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing BufrStubImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing CurImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing DcxImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing DdsImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing EpsImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing FitsImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing FitsStubImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing FliImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing FpxImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Image: failed to import FpxImagePlugin: No module named 'olefile' 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing FtexImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing GbrImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing GifImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing GribStubImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing Hdf5StubImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing IcnsImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing IcoImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing ImImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing ImtImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing IptcImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing JpegImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing Jpeg2KImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing McIdasImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing MicImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Image: failed to import MicImagePlugin: No module named 'olefile' 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing MpegImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing MpoImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing MspImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing PalmImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing PcdImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing PcxImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing PdfImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing PixarImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing PngImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing PpmImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing PsdImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing QoiImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing SgiImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing SpiderImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing SunImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing TgaImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing TiffImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing WebPImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing WmfImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing XbmImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing XpmImagePlugin 2024-09-21 16:59:18 DEBUG [PIL.Image] Importing XVThumbImagePlugin 2024-09-21 16:59:23 DEBUG [matplotlib] matplotlib data path: C:\stable-diffusion-webui\stable-diffusion-webui-amdgpu-forge\venv\lib\site-packages\matplotlib\mpl-data 2024-09-21 16:59:23 DEBUG [matplotlib] CONFIGDIR=C:\Users\MEDIUM_MK_5_0\.matplotlib 2024-09-21 16:59:23 DEBUG [matplotlib] interactive is False 2024-09-21 16:59:23 DEBUG [matplotlib] platform is win32 2024-09-21 16:59:23 DEBUG [matplotlib] CACHEDIR=C:\Users\MEDIUM_MK_5_0\.matplotlib 2024-09-21 16:59:23 DEBUG [matplotlib.font_manager] Using fontManager instance from C:\Users\MEDIUM_MK_5_0\.matplotlib\fontlist-v390.json 2024-09-21 16:59:24 DEBUG [git.cmd] Popen(['git', 'version'], cwd=C:\stable-diffusion-webui\stable-diffusion-webui-amdgpu-forge, universal_newlines=False, shell=None, istream=None) 2024-09-21 16:59:24 DEBUG [git.cmd] Popen(['git', 'version'], cwd=C:\stable-diffusion-webui\stable-diffusion-webui-amdgpu-forge, universal_newlines=False, shell=None, istream=None) ONNX: version=1.19.2 provider=CPUExecutionProvider, available=['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] ZLUDA device failed to pass basic operation test: index=0, device_name=AMD Radeon RX 6700 XT [ZLUDA] CUDA error: operation not supported CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1. Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions. ControlNet preprocessor location: C:\stable-diffusion-webui\stable-diffusion-webui-amdgpu-forge\models\ControlNetPreprocessor 2024-09-21 16:59:30 DEBUG [asyncio] Using selector: SelectSelector 2024-09-21 16:59:31,709 - ControlNet - INFO - ControlNet UI callback registered. Model selected: {'checkpoint_info': {'filename': 'C:\\stable-diffusion-webui\\stable-diffusion-webui-amdgpu-forge\\models\\Stable-diffusion\\AbyssOrangeMix2_nsfw.safetensors', 'hash': 'a87fd7da'}, 'additional_modules': [], 'unet_storage_dtype': None} Using online LoRAs in FP16: False 2024-09-21 16:59:33 DEBUG [asyncio] Using selector: SelectSelector Running on local URL: http://127.0.0.1:7860 2024-09-21 16:59:34 DEBUG [httpx] load_ssl_context verify=None cert=None trust_env=True http2=False 2024-09-21 16:59:34 INFO [httpx] HTTP Request: GET http://127.0.0.1:7860/startup-events "HTTP/1.1 200 OK" 2024-09-21 16:59:34 DEBUG [httpx] load_ssl_context verify=False cert=None trust_env=True http2=False 2024-09-21 16:59:34 INFO [httpx] HTTP Request: HEAD http://127.0.0.1:7860/ "HTTP/1.1 200 OK" To create a public link, set `share=True` in `launch()`. Startup time: 39.6s (prepare environment: 4.5s, import torch: 25.3s, initialize shared: 2.7s, other imports: 0.1s, load scripts: 2.8s, create ui: 2.8s, gradio launch: 1.6s). 2024-09-21 16:59:38 DEBUG [matplotlib.pyplot] Loaded backend tkagg version 8.6. 2024-09-21 16:59:38 DEBUG [matplotlib.pyplot] Loaded backend agg version v2.2. 2024-09-21 16:59:38 DEBUG [matplotlib.pyplot] Loaded backend tkagg version 8.6. 2024-09-21 16:59:38 DEBUG [matplotlib.pyplot] Loaded backend agg version v2.2. 2024-09-21 16:59:38 DEBUG [matplotlib.pyplot] Loaded backend tkagg version 8.6. 2024-09-21 16:59:38 DEBUG [matplotlib.pyplot] Loaded backend agg version v2.2. Environment vars changed: {'stream': False, 'inference_memory': 1024.0, 'pin_shared_memory': False} [GPU Setting] You will use 91.66% GPU memory (11248.00 MB) to load weights, and use 8.34% GPU memory (1024.00 MB) to do matrix computation. 2024-09-21 16:59:38 DEBUG [git.cmd] Popen(['git', 'remote', 'get-url', '--all', 'origin'], cwd=C:\stable-diffusion-webui\stable-diffusion-webui-amdgpu-forge, universal_newlines=False, shell=None, istream=None) 2024-09-21 16:59:38 DEBUG [git.cmd] Popen(['git', 'cat-file', '--batch-check'], cwd=C:\stable-diffusion-webui\stable-diffusion-webui-amdgpu-forge, universal_newlines=False, shell=None, istream=