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-PainterNodes > Painter VRAM

ComfyUI Node: Painter VRAM

Class Name

PainterVRAM

Category
VRAM
Author
princepainter (Account age: 1255days)
Extension
ComfyUI-PainterNodes
Latest Updated
2026-07-14
Github Stars
0.14K

How to Install ComfyUI-PainterNodes

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

Painter VRAM Description

Node managing VRAM allocation in ComfyUI, optimizing GPU performance for AI artists with manual and automatic modes.

Painter VRAM :

PainterVRAM is a node designed to manage the allocation of VRAM (Video Random Access Memory) in the ComfyUI environment, providing both manual and automatic modes for reserving extra VRAM. This node is particularly beneficial for optimizing the performance of GPU-intensive tasks by ensuring that sufficient VRAM is reserved for operations, thereby preventing potential memory overflow issues. In automatic mode, PainterVRAM utilizes the pynvml library to dynamically assess the total and used VRAM, adjusting the reserved amount accordingly to optimize resource usage. If pynvml is unavailable, or if the user prefers, a manual mode allows for explicit specification of the VRAM to be reserved. This flexibility makes PainterVRAM a valuable tool for AI artists who need to manage GPU resources efficiently, ensuring smooth execution of complex rendering tasks without technical complications.

Painter VRAM Input Parameters:

reserved

The reserved parameter specifies the amount of VRAM, in gigabytes, that you wish to reserve for your operations. This parameter is crucial as it directly impacts the amount of memory set aside, which can affect the performance and stability of your tasks. The default value is 0.6 GB, with a minimum value of -2.0 GB, allowing for some flexibility in memory management. Adjusting this value can help optimize the performance of your GPU by ensuring that enough memory is available for your tasks without overcommitting resources.

mode

The mode parameter determines whether the VRAM reservation is handled automatically or manually. It offers two options: "manual" and "auto," with "auto" being the default setting. In "auto" mode, the node attempts to dynamically calculate the optimal amount of VRAM to reserve based on current usage, provided that pynvml is available. In "manual" mode, you have full control over the amount of VRAM reserved, as specified by the reserved parameter. This flexibility allows you to tailor the VRAM management to your specific needs and system capabilities.

clean_gpu_before

The clean_gpu_before parameter is a boolean option that, when set to true, triggers a pre-cleanup of GPU memory before executing the node's main functions. This can be particularly useful for freeing up memory that might be occupied by previous tasks, ensuring that the maximum amount of VRAM is available for new operations. The default setting is true, which helps maintain optimal performance by reducing the risk of memory-related issues during execution.

anything

The anything parameter is an optional input that can accept any type of data. This parameter is designed to provide flexibility in the node's operation, allowing you to pass additional information or context that might be relevant to your specific use case. While not required, utilizing this parameter can enhance the node's functionality by accommodating custom data inputs.

Painter VRAM Output Parameters:

output

The output parameter is the primary output of the PainterVRAM node. It returns a value that reflects the result of the VRAM management operation, which can be influenced by the input parameters and the current state of the GPU. This output is crucial for understanding the effectiveness of the VRAM reservation and can be used to inform further adjustments or optimizations in your workflow.

Painter VRAM Usage Tips:

  • To maximize performance, use the "auto" mode if pynvml is available, as it dynamically adjusts VRAM reservation based on current usage, ensuring optimal resource allocation.
  • If you encounter memory issues or need precise control over VRAM usage, switch to "manual" mode and adjust the reserved parameter to suit your specific needs and system capabilities.
  • Enable clean_gpu_before to ensure that your GPU memory is cleared of any residual data from previous tasks, which can help prevent memory overflow and improve task execution efficiency.

Painter VRAM Common Errors and Solutions:

[ Painter VRAM ] Warning: pynvml not installed. Auto mode will be disabled.

  • Explanation: This error occurs when the pynvml library is not installed, which is required for the "auto" mode to function.
  • Solution: Install the pynvml library using a package manager like pip (pip install pynvml) to enable the "auto" mode for dynamic VRAM management.

[ Painter VRAM ] Failed to query GPU memory

  • Explanation: This error indicates that the node was unable to retrieve GPU memory information, possibly due to a problem with the pynvml library or GPU configuration.
  • Solution: Ensure that your GPU drivers are up to date and that pynvml is correctly installed. Restarting your system or checking for any GPU-related issues might also resolve the problem.

[ Painter VRAM ] Auto query failed; fallback to manual value

  • Explanation: This message appears when the node fails to automatically determine the optimal VRAM reservation, defaulting to the manually specified value.
  • Solution: Verify that pynvml is installed and functioning correctly. If the issue persists, consider using the "manual" mode to explicitly set the VRAM reservation.

Painter VRAM Related Nodes

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

Painter VRAM