Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > Sage Utils > Free Memory

ComfyUI Node: Free Memory

Class Name

Sage_FreeMemory

Category
Sage Utils/util
Author
arcum42 (Account age: 6442days)
Extension
Sage Utils
Latest Updated
2026-05-17
Github Stars
0.03K

How to Install Sage Utils

Install this extension via the ComfyUI Manager by searching for Sage Utils
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Sage Utils in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Free Memory Description

Optimizes memory by unloading models and clearing caches to prevent slowdowns and crashes.

Free Memory:

The Sage_FreeMemory node is designed to optimize your system's memory usage by unloading all models and clearing caches. This node is particularly useful when working with resource-intensive AI models, as it helps free up memory that can be reallocated to other processes or tasks. By running garbage collection and emptying caches, the node ensures that your system operates efficiently, reducing the risk of memory-related slowdowns or crashes. This functionality is crucial for maintaining optimal performance, especially in environments where multiple models are loaded and unloaded frequently. The node's primary goal is to provide a seamless way to manage memory resources, allowing you to focus on your creative tasks without worrying about technical memory management details.

Free Memory Input Parameters:

free_memory

The free_memory parameter is a boolean input that determines whether the node should actively free up memory. When set to True, the node will unload all models, run garbage collection, and clear caches, effectively freeing up system resources. This parameter is crucial for controlling the node's behavior, allowing you to decide when memory should be released. The default value is False, meaning that memory management actions will not be performed unless explicitly enabled. This parameter provides flexibility, enabling you to manage memory resources according to your specific needs and workflow.

value

The value parameter is a flexible input that accepts any data type. It serves as a placeholder for the data you wish to pass through the node. While this parameter does not directly impact the memory management functions of the node, it allows you to maintain the flow of data within your node-based system. The value parameter ensures that your data remains intact and accessible, even as memory resources are being managed and optimized.

Free Memory Output Parameters:

out_value

The out_value parameter is the output of the node, which mirrors the input value parameter. It ensures that the data passed into the node is returned unchanged, allowing you to continue using it in subsequent nodes or processes. This output is essential for maintaining data continuity within your workflow, ensuring that memory management actions do not disrupt the flow of information. The out_value parameter provides a seamless way to integrate memory optimization into your existing processes without losing access to your data.

Free Memory Usage Tips:

  • Enable the free_memory parameter when you notice your system's performance slowing down due to high memory usage. This can help prevent crashes and improve overall efficiency.
  • Use the Sage_FreeMemory node in workflows where models are frequently loaded and unloaded, as it can help maintain optimal memory usage and prevent resource bottlenecks.
  • Consider integrating the node into automated workflows to periodically free up memory, ensuring that your system remains responsive and efficient over time.

Free Memory Common Errors and Solutions:

Memory not being freed

  • Explanation: If memory is not being freed as expected, it may be due to the free_memory parameter being set to False.
  • Solution: Ensure that the free_memory parameter is set to True to activate the memory management functions of the node.

Unexpected data loss

  • Explanation: If you experience data loss, it may be due to misunderstanding the role of the value parameter.
  • Solution: Remember that the value parameter is simply passed through the node unchanged. Ensure that your data is correctly inputted and outputted through the node to maintain data integrity.

Free Memory Related Nodes

Go back to the extension to check out more related nodes.
Sage Utils
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Free Memory