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 Cache Cleanup (internal)

ComfyUI Node: MiniMax H3 • VRAM Cache Cleanup (internal)

Class Name

MiniMaxH3LatentLabVRAMCacheCleanup

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 Cache Cleanup (internal) Description

Optimizes VRAM usage in AI art generation by cleaning up unused cache after final sampling pass.

MiniMax H3 • VRAM Cache Cleanup (internal):

The MiniMaxH3LatentLabVRAMCacheCleanup node is designed to optimize the usage of VRAM (Video Random Access Memory) during the AI art generation process, particularly in scenarios involving complex and resource-intensive operations. Its primary function is to clean up unused VRAM cache after the final sampling pass, ensuring that memory resources are efficiently managed and available for subsequent tasks. This node is particularly beneficial in environments where VRAM is a limiting factor, as it helps to prevent memory bottlenecks and potential out-of-memory errors. By releasing unused allocator cache, it maintains the performance and stability of the system without unloading essential models, thus providing a seamless experience for AI artists working with large media files or intricate models.

MiniMax H3 • VRAM Cache Cleanup (internal) Input Parameters:

latent

The latent parameter represents the latent space data that is processed during the AI art generation. It is crucial for the node's operation as it determines the specific data that will be involved in the VRAM cleanup process. This parameter does not have specific minimum, maximum, or default values, as it is dependent on the data being processed.

sampler_report

The sampler_report parameter is a JSON-formatted string that contains diagnostic information about the sampling process. It provides insights into the memory usage and performance metrics, which are essential for understanding the impact of the VRAM cleanup. This parameter helps in generating a detailed report post-cleanup, aiding in performance analysis and optimization.

memory_profile_state

The memory_profile_state parameter is an optional input that provides the current state of memory profiling. It is used to track memory allocation and deallocation events, offering a comprehensive view of memory usage patterns. This parameter is particularly useful for diagnosing memory-related issues and optimizing memory management strategies.

block_trace_state

The block_trace_state parameter is another optional input that captures the state of block memory tracing. It is used to monitor and analyze memory blocks, helping to identify potential memory leaks or inefficiencies. This parameter is valuable for developers and advanced users who need to perform in-depth memory analysis.

MiniMax H3 • VRAM Cache Cleanup (internal) Output Parameters:

result

The result output parameter is a tuple that contains several elements, including the cleaned-up latent data, output frames, trimmed frames, the number of passes, and additional cleanup information. This output is crucial for understanding the effectiveness of the VRAM cleanup process and for further processing in the AI art generation pipeline.

MiniMax H3 • VRAM Cache Cleanup (internal) Usage Tips:

  • Ensure that the sampler_report parameter is correctly formatted as a JSON string to facilitate accurate diagnostics and reporting.
  • Utilize the memory_profile_state and block_trace_state parameters for advanced memory analysis and optimization, especially in complex projects with high VRAM demands.

MiniMax H3 • VRAM Cache Cleanup (internal) Common Errors and Solutions:

Invalid JSON in sampler_report

  • Explanation: This error occurs when the sampler_report parameter is not a valid JSON string, which can lead to issues in generating the post-cleanup report.
  • Solution: Ensure that the sampler_report is correctly formatted as a JSON string. Use a JSON validator to check for syntax errors before passing it to the node.

Memory profiling state not provided

  • Explanation: This warning indicates that the memory_profile_state parameter is not supplied, which may limit the ability to perform detailed memory analysis.
  • Solution: If memory profiling is required, provide a valid memory_profile_state to enable comprehensive memory usage tracking and diagnostics.

MiniMax H3 • VRAM Cache Cleanup (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 Cache Cleanup (internal)