[GH-ISSUE #2074] PyTorch 2.8.0+rocm6.4 fails to generate images, but PyTorch 2.7.0+rocm6.3 works correctly #860

Closed
opened 2026-10-27 21:23:14 +00:00 by bsakaguchi · 3 comments
Owner

Originally created by @markawonge on GitHub (Aug 12, 2025).
Original GitHub issue: https://github.com/Comfy-Org/ComfyUI-Manager/issues/2074

I installed PyTorch using the official installation command from pytorch.org:
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.4

When I use the Flux workflow from Workflow Templates in the ComfyUI interface, it fails to generate images properly.

Image

but when I generating images with the default v1.5 checkpoint,it works fine.

Image

Could you please explain why this issue is happening, and is it being caused by PyTorch? Thank you for your response.

`python3 main.py --listen --output-directory /home/kwan/SynologyDrive/output
Adding extra search path checkpoints /home/kwan/stable-diffusion-webui/models/Stable-diffusion
Adding extra search path configs /home/kwan/stable-diffusion-webui/models/Stable-diffusion
Adding extra search path vae /home/kwan/stable-diffusion-webui/models/VAE
Adding extra search path loras /home/kwan/stable-diffusion-webui/models/Lora
Adding extra search path loras /home/kwan/stable-diffusion-webui/models/LyCORIS
Adding extra search path upscale_models /home/kwan/stable-diffusion-webui/models/ESRGAN
Adding extra search path upscale_models /home/kwan/stable-diffusion-webui/models/RealESRGAN
Adding extra search path upscale_models /home/kwan/stable-diffusion-webui/models/SwinIR
Adding extra search path embeddings /home/kwan/stable-diffusion-webui/embeddings
Adding extra search path hypernetworks /home/kwan/stable-diffusion-webui/models/hypernetworks
Adding extra search path controlnet /home/kwan/stable-diffusion-webui/models/ControlNet
Adding extra search path clip /home/kwan/stable-diffusion-webui/models/CLIP
Setting output directory to: /home/kwan/SynologyDrive/output
Checkpoint files will always be loaded safely.
Total VRAM 20464 MB, total RAM 31931 MB
pytorch version: 2.8.0+rocm6.4
AMD arch: gfx1100
ROCm version: (6, 4)
Set vram state to: NORMAL_VRAM
Device: cuda:0 Radeon RX 7900 XT : native
Using pytorch attention
Python version: 3.10.18 (main, Jun 5 2025, 13:14:17) [GCC 11.2.0]
ComfyUI version: 0.3.49
****** User settings have been changed to be stored on the server instead of browser storage. ******
****** For multi-user setups add the --multi-user CLI argument to enable multiple user profiles. ******
ComfyUI frontend version: 1.24.4
[Prompt Server] web root: /home/kwan/miniconda3/envs/cf1/lib/python3.10/site-packages/comfyui_frontend_package/static

Import times for custom nodes:
0.0 seconds: /home/kwan/ComfyUI/custom_nodes/websocket_image_save.py

Context impl SQLiteImpl.
Will assume non-transactional DDL.
No target revision found.
Starting server

To see the GUI go to: http://0.0.0.0:8188
To see the GUI go to: http://[::]:8188
got prompt
model weight dtype torch.float16, manual cast: None
model_type EPS
Using split attention in VAE
Using split attention in VAE
VAE load device: cuda:0, offload device: cpu, dtype: torch.float32
CLIP/text encoder model load device: cuda:0, offload device: cpu, current: cpu, dtype: torch.float16
Requested to load SD1ClipModel
loaded completely 19174.8 235.84423828125 True
Requested to load BaseModel`

Originally created by @markawonge on GitHub (Aug 12, 2025). Original GitHub issue: https://github.com/Comfy-Org/ComfyUI-Manager/issues/2074 I installed PyTorch using the official installation command from pytorch.org: `pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.4` **When I use the Flux workflow from Workflow Templates in the ComfyUI interface, it fails to generate images properly.** <img width="1685" height="590" alt="Image" src="https://github.com/user-attachments/assets/2c8e7a53-3411-45d3-876c-e99e8ca5ee7e" /> **but when I generating images with the default v1.5 checkpoint,it works fine.** <img width="1675" height="675" alt="Image" src="https://github.com/user-attachments/assets/7cb19b6f-191e-476f-b176-3ba9dba439b1" /> Could you please explain why this issue is happening, and is it being caused by PyTorch? Thank you for your response. `python3 main.py --listen --output-directory /home/kwan/SynologyDrive/output Adding extra search path checkpoints /home/kwan/stable-diffusion-webui/models/Stable-diffusion Adding extra search path configs /home/kwan/stable-diffusion-webui/models/Stable-diffusion Adding extra search path vae /home/kwan/stable-diffusion-webui/models/VAE Adding extra search path loras /home/kwan/stable-diffusion-webui/models/Lora Adding extra search path loras /home/kwan/stable-diffusion-webui/models/LyCORIS Adding extra search path upscale_models /home/kwan/stable-diffusion-webui/models/ESRGAN Adding extra search path upscale_models /home/kwan/stable-diffusion-webui/models/RealESRGAN Adding extra search path upscale_models /home/kwan/stable-diffusion-webui/models/SwinIR Adding extra search path embeddings /home/kwan/stable-diffusion-webui/embeddings Adding extra search path hypernetworks /home/kwan/stable-diffusion-webui/models/hypernetworks Adding extra search path controlnet /home/kwan/stable-diffusion-webui/models/ControlNet Adding extra search path clip /home/kwan/stable-diffusion-webui/models/CLIP Setting output directory to: /home/kwan/SynologyDrive/output Checkpoint files will always be loaded safely. Total VRAM 20464 MB, total RAM 31931 MB pytorch version: 2.8.0+rocm6.4 AMD arch: gfx1100 ROCm version: (6, 4) Set vram state to: NORMAL_VRAM Device: cuda:0 Radeon RX 7900 XT : native Using pytorch attention Python version: 3.10.18 (main, Jun 5 2025, 13:14:17) [GCC 11.2.0] ComfyUI version: 0.3.49 ****** User settings have been changed to be stored on the server instead of browser storage. ****** ****** For multi-user setups add the --multi-user CLI argument to enable multiple user profiles. ****** ComfyUI frontend version: 1.24.4 [Prompt Server] web root: /home/kwan/miniconda3/envs/cf1/lib/python3.10/site-packages/comfyui_frontend_package/static Import times for custom nodes: 0.0 seconds: /home/kwan/ComfyUI/custom_nodes/websocket_image_save.py Context impl SQLiteImpl. Will assume non-transactional DDL. No target revision found. Starting server To see the GUI go to: http://0.0.0.0:8188 To see the GUI go to: http://[::]:8188 got prompt model weight dtype torch.float16, manual cast: None model_type EPS Using split attention in VAE Using split attention in VAE VAE load device: cuda:0, offload device: cpu, dtype: torch.float32 CLIP/text encoder model load device: cuda:0, offload device: cpu, current: cpu, dtype: torch.float16 Requested to load SD1ClipModel loaded completely 19174.8 235.84423828125 True Requested to load BaseModel`
Author
Owner

@markawonge commented on GitHub (Aug 12, 2025):

I attempted to reinstall Ubuntu 24.04 and ROCm 6.4.3, and then installed PyTorch 2.8.0+rocm6.4 using the official commands from pytorch.org. The previous issue still persists.

Image
<!-- gh-comment-id:3180030984 --> @markawonge commented on GitHub (Aug 12, 2025): I attempted to reinstall Ubuntu 24.04 and ROCm 6.4.3, and then installed PyTorch 2.8.0+rocm6.4 using the official commands from pytorch.org. The previous issue still persists. <img width="1998" height="748" alt="Image" src="https://github.com/user-attachments/assets/d30310cb-0ebc-4cac-bc1a-d0e773525437" />
Author
Owner

@ASmallPotato commented on GitHub (Aug 17, 2025):

Can attest to this, torch==2.8.0+rocm6.4 with flux (tried both gguf and safetensors) generate bad image for me, but SDXL works fine. And can confirm downgrading to torch==2.7.1+rocm6.3 can work around this issue.

Image
System info
Total VRAM 24560 MB, total RAM 20480 MB
pytorch version: 2.8.0+rocm6.4
AMD arch: gfx1100
ROCm version: (6, 4)
Set vram state to: HIGH_VRAM
Disabling smart memory management
Device: cuda:0 AMD Radeon RX 7900 XTX : native
Using pytorch attention
Python version: 3.12.11 (main, Aug 17 2025, 13:48:18) [GCC 15.2.1 20250813]
ComfyUI version: 0.3.50
ComfyUI frontend version: 1.23.4
[Prompt Server] web root: /usr/local/src/ComfyUI/.venv/lib/python3.12/site-packages/comfyui_frontend_package/static
### Loading: ComfyUI-Manager (V3.36)
[ComfyUI-Manager] network_mode: public
### ComfyUI Revision: 1 [d5c1954d] *DETACHED | Released on '2025-08-13'
ComfyUI-GGUF: Allowing full torch compile

OS: archlinux in LXC

<!-- gh-comment-id:3194522174 --> @ASmallPotato commented on GitHub (Aug 17, 2025): Can attest to this, `torch==2.8.0+rocm6.4` with flux (tried both gguf and safetensors) generate bad image for me, but SDXL works fine. And can confirm downgrading to `torch==2.7.1+rocm6.3` can work around this issue. <img width="2235" height="1300" alt="Image" src="https://github.com/user-attachments/assets/511f4846-43a2-4ab7-8dbb-ee8272a8fd3e" /> <details> <summary> System info</summary><code><pre>Total VRAM 24560 MB, total RAM 20480 MB pytorch version: 2.8.0+rocm6.4 AMD arch: gfx1100 ROCm version: (6, 4) Set vram state to: HIGH_VRAM Disabling smart memory management Device: cuda:0 AMD Radeon RX 7900 XTX : native Using pytorch attention Python version: 3.12.11 (main, Aug 17 2025, 13:48:18) [GCC 15.2.1 20250813] ComfyUI version: 0.3.50 ComfyUI frontend version: 1.23.4 [Prompt Server] web root: /usr/local/src/ComfyUI/.venv/lib/python3.12/site-packages/comfyui_frontend_package/static ### Loading: ComfyUI-Manager (V3.36) [ComfyUI-Manager] network_mode: public ### ComfyUI Revision: 1 [d5c1954d] *DETACHED | Released on '2025-08-13' ComfyUI-GGUF: Allowing full torch compile OS: archlinux in LXC </pre></code> </details>
Author
Owner

@ltdrdata commented on GitHub (Aug 27, 2025):

This repository only deals with issues related to ComfyUI-Manager. Since this issue is related to the core, it is not appropriate to post it here.

Additionally, it is highly likely that the issue should be resolved on the PyTorch side.

<!-- gh-comment-id:3229011046 --> @ltdrdata commented on GitHub (Aug 27, 2025): This repository only deals with issues related to `ComfyUI-Manager`. Since this issue is related to the core, it is not appropriate to post it here. Additionally, it is highly likely that the issue should be resolved on the PyTorch side.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Comfy-Org/ComfyUI-Manager#860
No description provided.