ComfyUI Node: Auto Memory Manager

Class Name

AutoMemoryManager

Category
VLM/Utility
Author
fblissjr (Account age: 4014days)
Extension
Shrug-Prompter: Unified VLM Integration for ComfyUI
Latest Updated
2025-09-30
Github Stars
0.02K

How to Install Shrug-Prompter: Unified VLM Integration for ComfyUI

Install this extension via the ComfyUI Manager by searching for Shrug-Prompter: Unified VLM Integration for ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Shrug-Prompter: Unified VLM Integration for ComfyUI 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

Auto Memory Manager Description

AutoMemoryManager node optimizes memory in data-heavy workflows with automatic management.

Auto Memory Manager:

The AutoMemoryManager is a versatile node designed to seamlessly integrate into any workflow, providing automatic memory management capabilities. Its primary purpose is to monitor and manage memory usage efficiently, ensuring that your system resources are optimized during operations. This node is particularly beneficial in workflows that involve intensive data processing, such as video frame extraction and segment assembly, where memory bloat can be a significant concern. By offering visual feedback on memory usage, it helps you maintain a clear understanding of your system's performance. The AutoMemoryManager is equipped with a method called manage_memory, which intelligently handles memory cleanup based on specified modes and thresholds, allowing for tailored memory management strategies. This node is essential for maintaining smooth and efficient operations, especially in complex workflows that demand high memory usage.

Auto Memory Manager Input Parameters:

trigger

The trigger parameter is a required input that initiates the memory management process. It can be any input that signals the need for memory cleanup. This parameter acts as a starting point for the node to begin its operations, ensuring that memory management is performed at the appropriate times during the workflow.

mode

The mode parameter determines the intensity of the memory management process. It offers four options: "gentle," "normal," "aggressive," and "nuclear," with "normal" being the default setting. Each mode represents a different level of memory cleanup, ranging from minimal intervention to a comprehensive cleanup. Choosing the appropriate mode can significantly impact the node's execution and results, allowing you to balance between performance and resource conservation.

threshold_mb

The threshold_mb parameter is an optional input that specifies the memory usage threshold in megabytes. It has a default value of 1000 MB, with a minimum of 100 MB and a maximum of 10000 MB, adjustable in increments of 100 MB. This parameter sets a limit on memory usage, triggering the memory management process when the specified threshold is exceeded. By configuring this parameter, you can control when the node should intervene to manage memory, ensuring that your system remains within optimal performance levels.

Auto Memory Manager Output Parameters:

passthrough

The passthrough output parameter allows the node to pass data through without alteration. This ensures that the node can be integrated into workflows without disrupting the flow of data, maintaining the integrity of the original input while still providing memory management capabilities.

memory_info

The memory_info output parameter provides a string containing information about the memory usage and the actions taken by the node. This output is crucial for understanding the impact of the memory management process, offering insights into how memory resources are being utilized and optimized. It serves as a valuable feedback mechanism, helping you make informed decisions about memory management strategies.

Auto Memory Manager Usage Tips:

  • To optimize performance, select the mode that best suits your workflow's needs. For routine operations, "normal" mode is sufficient, but for more intensive tasks, consider using "aggressive" or "nuclear" modes to ensure thorough memory cleanup.
  • Adjust the threshold_mb parameter based on your system's capabilities and the demands of your workflow. Setting an appropriate threshold can prevent unnecessary memory usage and maintain system stability.

Auto Memory Manager Common Errors and Solutions:

Memory threshold exceeded

  • Explanation: This error occurs when the memory usage surpasses the specified threshold_mb value, triggering the memory management process.
  • Solution: Consider increasing the threshold_mb value if your system can handle more memory usage, or switch to a more aggressive mode to ensure efficient memory cleanup.

Invalid mode selection

  • Explanation: This error arises when an unsupported value is provided for the mode parameter.
  • Solution: Ensure that the mode parameter is set to one of the supported options: "gentle," "normal," "aggressive," or "nuclear." Double-check the input to avoid typos or unsupported values.

Auto Memory Manager Related Nodes

Go back to the extension to check out more related nodes.
Shrug-Prompter: Unified VLM Integration for ComfyUI
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.

Auto Memory Manager