ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

GPU memory overflow and crash when using GGUF models after latest ComfyUI update

Open JavadZohani opened this issue 1 year ago • 5 comments

Custom Node Testing

Expected Behavior

After updating to the latest version of ComfyUI, I started experiencing an issue where my GPU memory quickly fills up and the program crashes. This problem didn’t exist before (on Python 3.12).

Sometimes I can generate one or two images before the crash happens again, but eventually ComfyUI always stops.

I tested this with multiple models, such as flux.1 and qwen, and noticed that the issue happens most frequently with GGUF models, but FP8 models can also sometimes trigger the same crash:

  • With flux.1, FP8 occasionally works, but GGUF almost always causes the program to crash.
  • With qwen, image editing consistently leads to the program freezing at different stages.

This issue only appeared after the latest ComfyUI update. Previously, I was able to use these models without problems.

Actual Behavior

  • GPU memory usage spikes until it’s fully consumed.
  • ComfyUI disconnects or freezes after 1–2 runs.
  • Happens consistently with GGUF models, and sometimes with FP8 as well.

Steps to Reproduce

  1. Launch ComfyUI with the latest version.
  2. Load a GGUF or FP8 model (e.g., flux.1 or qwen).
  3. Generate or edit an image once or twice.
  4. Observe GPU memory quickly filling up until ComfyUI disconnects or crashes.

Debug Logs

.

Other

No response

JavadZohani avatar Aug 26 '25 23:08 JavadZohani

Same issue, app crashes for the same workflows which used to work previously.

daltonelvis avatar Aug 27 '25 00:08 daltonelvis

https://github.com/comfyanonymous/ComfyUI/issues/9259

Check this. may help to use pytorch2.7

I use gguf in the latest version of comfyui (but with pytorch2.7 and python 3.12), and I can switch between wan gguf, qwen gguf, nunchaku, etc. without any problems.

m8rr avatar Aug 27 '25 10:08 m8rr

Same happened to me when generating a video, the first try worked fine but then I run the same workflow with the same parameters and im stuck always at 53% of the process (KSampler) for GPU memory overflow. It was working just fine a few versions earlier

davidgcs avatar Aug 27 '25 20:08 davidgcs

Just a quick heads-up, I also experienced this problem and the new version v0.3.56 fixed it for me. The only change mentioned in that release is "Lower ram usage on windows".

philippn avatar Sep 01 '25 07:09 philippn

same here, crashes immediately when trying to load qwen model, but able to create images with Flux

postmrtm avatar Oct 08 '25 18:10 postmrtm