Without disabling smart memory the weights go all into dedicated GPU causing OOM #14462
Unanswered
NeverOccurs
asked this question in
Q&A
Replies: 2 comments 3 replies
|
Keep
If that doesn't fix it, fall back to |
2 replies
|
How do I disable Smart Memory? After updating to the August 1st version, I noticed high memory usage; when using the K2 model (Q4) with two LoRAs, it immediately starts using virtual memory, causing the generation time to jump to 900 seconds! |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I run comfyui on a 4090. Below is my system and comfyui parameter. With dynamic vram, all weights go into dedicated VRAM and the system stutters, generation becomes extremely slow. After I disabled it everything seems to be fine. Shared GPU can be used and generation becomes normal. Could --disable-dynamic-vram be kept until everything is fixed?
[INFO] Total VRAM 24564 MB, total RAM 65277 MB
[INFO] pytorch version: 2.8.0+cu128
[INFO] xformers version: 0.0.32.post2
[INFO] Set vram state to: NORMAL_VRAM
[INFO] Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync
[INFO] Using async weight offloading with 2 streams
[INFO] Enabled pinned memory 26110.0
[INFO] Using xformers attention
[INFO] Python version: 3.12.7 (tags/v3.12.7:0b05ead, Oct 1 2024, 03:06:41) [MSC v.1941 64 bit (AMD64)]
[INFO] ComfyUI version: 0.24.0
Edit: I think I can confirm now the problem is mainly smart memory. Dynamic vram is fine. After disabling smart memory things are moving smoothly right now. And the performance is good.
All reactions