Skip to content
This repository was archived by the owner on Jun 26, 2026. It is now read-only.
This repository was archived by the owner on Jun 26, 2026. It is now read-only.

[Bug]: ComfyUI Desktop Update Causes Full Model Unload After Every Generation (DynamicVRAM / Async Weight Offloading) #1741

Description

@iamddtla0620

App Version

Environment
• ComfyUI Desktop (official installer version)
• Windows 11
• GPU: NVIDIA RTX 3060 12GB
• RAM: 32GB
• PyTorch: 2.10.0+cu128
• CUDA: cu128
Current version:
ComfyUI version: 0.24.1
Problem Summary
After updating ComfyUI Desktop to Core 0.24.1, model execution became significantly slower.
Previously, after generating an image, the loaded checkpoint, CLIP, text encoder and VAE remained resident in VRAM. Subsequent generations would start immediately.
After the update, ComfyUI unloads all models after every generation.
The next generation always triggers a complete reload of:
• Checkpoint
• CLIP (Lumina2)
• Text Encoder (ZImageTEModel_)
• AutoencodingEngine (VAE)
This dramatically increases generation time.
Evidence
ComfyUI startup log:
Set vram state to: NORMAL_VRAM
Using async weight offloading with 2 streams
DynamicVRAM support detected and enabled
VRAM mode is NORMAL_VRAM.
No LOW_VRAM or NOVRAM mode is enabled.
Runtime Behavior
Every generation produces messages similar to:
Requested to load ZImageTEModel_
Model ZImageTEModel_ prepared for dynamic VRAM loading.

Requested to load Lumina2
Model Lumina2 prepared for dynamic VRAM loading.

Requested to load AutoencodingEngine
Model AutoencodingEngine prepared for dynamic VRAM loading.
After generation completes:
Prompt executed in ~155 seconds
VRAM Verification
Using:
nvidia-smi -l 1
Observed behavior:
Before generation:
VRAM usage ~10-11 GB
After generation completes:
VRAM usage drops to ~936 MB
This confirms that the models are actually being unloaded from VRAM rather than simply being remapped.
The next generation must reload all models again.
Additional Findings
Comfy settings file contains no user-configurable options related to:
• DynamicVRAM
• Weight Offloading
• Async Weight Offloading
• Memory Management
• Model Cache
• Model Retention
Example:
"Comfy.Server.LaunchArgs": {}
"Comfy.Server.ServerConfigValues": {}
There appears to be no exposed UI setting or configuration file entry allowing users to disable this behavior.
Expected Behavior
The previous behavior was:

  1. Load model once
  2. Generate image
  3. Keep model resident in VRAM
  4. Subsequent generations reuse loaded models
    This provided significantly faster generation times.
    Actual Behavior
    Current behavior:
  5. Load model
  6. Generate image
  7. Unload all models
  8. VRAM drops to ~936 MB
  9. Reload all models for next generation
    Request
    Please provide:
    • A way to disable DynamicVRAM unloading.
    • A way to disable async weight offloading.
    • A "Keep models loaded in VRAM" option.
    • Documentation describing the new memory management behavior introduced in 0.24.x.
    This behavior causes substantial performance regression on RTX 3060 12GB systems compared to previous releases.

Expected Behavior

As stated above.

Actual Behavior

As stated above.

Steps to Reproduce

As stated above.

Debug Logs

Browser Logs

No response

Settings JSON

No response

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions