-
-
Notifications
You must be signed in to change notification settings - Fork 493
Description
Package
ComfyUI-Zluda
When did the issue occur?
Running the Package
What GPU / hardware type are you using?
AMD Radeon RX 6800 XT
What happened?
After playing a bit with generation on default Comfy UI install with DirectML backend I decied to test others in hope to gain some performance. ROCm was out of the picture due to no support for Navi 21 on Windows, so I went ZLUDA way.
In the end I managed to set it up and performance improvement was huge, however it required a lot of debugging and messing around with options, to a point that normal Comfy UI ZLUDA directly from their repo was just easier and worked out of the box.
Problems:
- Out of the box experience with trying to generate txt to img (Illustrious) ended with
cuDNN Frontend error: [cudnn_frontend] Error: No execution plans support the graph). Both for Interference UI in Stability Matrix and own workflow from ComfyUI webUI.
- in Comfy UI i tried with different setups of
CFZ CUDNN Togglenode, but only thing I got was getting different errorCUDNN_STATUS_INTERNAL_ERROR - solution was to switch Cross Attention Method from default
--use-pytorch-cross-attentionto--use-quad-cross-attention. I also added--disable-async-offload --disable-pinned-memoryas extra options. - launch options mentioned above are default part of launch bat script for comfyUI-Zluda -
comfyui-n.bat, which is the way to launch it mentioned by Readme in comfyUI-Zluda repo, it also contains debugging and checks of environmental variables likeHIP_PATH. Stability Matrix just launches the zluda directly and defaults are not what they should be.
- After first reinstall in trying to solve first (I switched also python from 3.12.11 to selected by default 3.11.13). Zluda started to default to my iGPU (Ryzen 7700) which wasn't supported. No idea why it didn't happen at first time.
- I needed to add
HCC_AMDGPU_TARGET,HIP_VISIBLE_DEVICESandROCR_VISIBLE_DEVICESall set to1as environmental variables (it was enough to set them in SM settings, no need to system-wide in windows properties)
- I added ROCm
bin/directory to system path env variable manually but no idea if it was needed. I was going with whole ComfyUI-Zluda readme and verifying everything. Could be supplied by Stability Matrix.
After all tweaks it also runs from Stability Matrix, ust Text to Image workflow in Stability Matrix Interference UI fails on VAE Decode, as CFZ CUDNN Toggle node is required to disable CUDNN for this step.
Working workflow for use in Comfy UI directly, with CFZ nodes attached - cudnn-toggle-txt-to-img.json
Console output
No response
Version
v2.15.5
What Operating System are you using?
Windows