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 > ComfyUI-MiniMax-H3-LongMedia > MiniMax H3 • VRAM Pressure Guard (internal)

ComfyUI Node: MiniMax H3 • VRAM Pressure Guard (internal)

Class Name

MiniMaxH3LatentLabVRAMPressureGuard

Category
MiniMax H3/LongMedia/LongMedia
Author
vizart-vj (Account age: 2338days)
Extension
ComfyUI-MiniMax-H3-LongMedia
Latest Updated
2026-08-12
Github Stars
0.02K

How to Install ComfyUI-MiniMax-H3-LongMedia

Install this extension via the ComfyUI Manager by searching for ComfyUI-MiniMax-H3-LongMedia
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-MiniMax-H3-LongMedia 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

MiniMax H3 • VRAM Pressure Guard (internal) Description

Efficient VRAM management for AI art generation, preventing performance issues through adaptive cache cleanup.

MiniMax H3 • VRAM Pressure Guard (internal):

The MiniMaxH3LatentLabVRAMPressureGuard is an internal node designed to manage VRAM (Video Random Access Memory) usage efficiently during the sampling process in AI art generation, particularly for long media. Its primary purpose is to act as a safeguard against excessive VRAM consumption, which can lead to performance bottlenecks or crashes. By implementing adaptive intra-sampling cache cleanup, this node ensures that VRAM usage remains within specified thresholds, allowing for smoother and more reliable processing. This is particularly beneficial when working with large datasets or complex models that demand significant memory resources. The node dynamically monitors VRAM usage and performs cleanup operations as needed, thus optimizing the overall memory management process and enhancing the stability and efficiency of the AI art generation workflow.

MiniMax H3 • VRAM Pressure Guard (internal) Input Parameters:

sampler

The sampler parameter is a required input that specifies the sampling method to be used. It acts as the core component around which the VRAM pressure guard operates, ensuring that the sampling process is managed efficiently in terms of memory usage.

free_threshold_mb

The free_threshold_mb parameter sets the minimum amount of free VRAM (in megabytes) that should be maintained during the sampling process. Its default value is 768 MB, with a minimum of 128 MB and a maximum of 8192 MB, adjustable in steps of 64 MB. This parameter is crucial for preventing VRAM exhaustion, as it triggers cleanup operations when the available memory falls below the specified threshold, thus maintaining system stability.

cache_threshold_mb

The cache_threshold_mb parameter defines the maximum allowable VRAM cache size (in megabytes) during sampling. It defaults to 4096 MB, with a minimum of 256 MB and a maximum of 32768 MB, adjustable in steps of 256 MB. By setting this threshold, you can control the amount of memory allocated for caching, ensuring that it does not exceed the specified limit and potentially cause memory overflow issues.

max_flushes

The max_flushes parameter determines the maximum number of times the VRAM cache can be flushed during the sampling process. It has a default value of 2, with a minimum of 0 and a maximum of 16, adjustable in steps of 1. This parameter helps manage the frequency of cache cleanup operations, balancing between maintaining sufficient free memory and minimizing the performance impact of frequent flushes.

MiniMax H3 • VRAM Pressure Guard (internal) Output Parameters:

sampler

The sampler output returns the modified sampler object that incorporates the VRAM pressure guard functionality. This output is essential as it represents the adapted sampling process, now equipped with memory management capabilities to ensure efficient VRAM usage.

guard_state

The guard_state output provides a detailed report of the VRAM pressure guard's state, including metrics such as the number of checks performed, flushes executed, and any events triggered during the sampling process. This information is valuable for monitoring and analyzing the effectiveness of the VRAM management strategy, allowing for further optimization if necessary.

MiniMax H3 • VRAM Pressure Guard (internal) Usage Tips:

  • Adjust the free_threshold_mb and cache_threshold_mb parameters based on the complexity and size of your project to ensure optimal VRAM usage without compromising performance.
  • Use the max_flushes parameter to control the frequency of cache cleanups, balancing between maintaining free memory and minimizing interruptions to the sampling process.

MiniMax H3 • VRAM Pressure Guard (internal) Common Errors and Solutions:

"VRAM usage exceeded the free threshold"

  • Explanation: This error occurs when the available VRAM falls below the specified free_threshold_mb, indicating insufficient memory for the current operation.
  • Solution: Increase the free_threshold_mb value to allow more free memory or optimize your project to reduce VRAM usage.

"Cache size exceeded the cache threshold"

  • Explanation: This error indicates that the VRAM cache size has surpassed the cache_threshold_mb, potentially leading to memory overflow.
  • Solution: Increase the cache_threshold_mb to accommodate larger cache sizes or optimize your project's memory usage to stay within the current limits.

MiniMax H3 • VRAM Pressure Guard (internal) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-MiniMax-H3-LongMedia
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.

MiniMax H3 • VRAM Pressure Guard (internal)