-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Open
Description
Describe the bug
I am encountering a HIP error: an illegal memory access was encountered crash when attempting to run a generation using the [Z-Image-Turbo].
I am running on bleeding-edge AMD hardware (gfx1201 / RX9070) with ROCm 7.1 and PyTorch Nightly.
System Info
- OS: Linux (Ubuntu 24.04 LTS)
- GPU: AMD Radeon RX9070 (gfx1201)
- ROCm Version: 7.1 (native)
- PyTorch Version: 2.10.0.dev20251123+rocm7.1
- Python: 3.12.3
- ComfyUI Version: 0.3.75
Console Logs
Total VRAM 16304 MB, total RAM 31692 MB
pytorch version: 2.10.0.dev20251123+rocm7.1
Set: torch.backends.cudnn.enabled = False for better AMD performance.
AMD arch: gfx1201
ROCm version: (7, 1)
...
Requested to load Lumina2
loaded completely; 13034.80 MB usable, 11739.55 MB loaded, full load: True
0%| | 0/4 [00:00<?, ?it/s]/home/asuna/AI/ComfyUI/comfy/k_diffusion/sampling.py:1391: UserWarning: HIP warning: an illegal memory access was encountered (Triggered internally at /pytorch/aten/src/ATen/hip/impl/HIPGuardImplMasqueradingAsCUDA.h:83.)
if sigma_down == 0 or old_denoised is None:
0%| | 0/4 [00:00<?, ?it/s]
!!! Exception during processing !!! HIP error: an illegal memory access was encountered
Search for `hipErrorIllegalAddress' in https://rocm.docs.amd.com/projects/HIP/en/latest/index.html for more information.
HIP kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing AMD_SERIALIZE_KERNEL=3
Compile with `TORCH_USE_HIP_DSA` to enable device-side assertions.
Traceback (most recent call last):
...
File "/home/asuna/AI/ComfyUI/comfy/k_diffusion/sampling.py", line 1429, in sample_res_multistep
return res_multistep(model, x, sigmas, extra_args=extra_args, callback=callback, disable=disable, s_noise=s_noise, noise_sampler=noise_sampler, eta=0., cfg_pp=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/asuna/AI/ComfyUI/venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/asuna/AI/ComfyUI/comfy/k_diffusion/sampling.py", line 1391, in res_multistep
if sigma_down == 0 or old_denoised is None:
^^^^^^^^^^^^^^^
torch.AcceleratorError: HIP error: an illegal memory access was encountered
jmdevita
Metadata
Metadata
Assignees
Labels
No labels