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 > XB_ToolBox > XB-BOX - VRAM Calculator

ComfyUI Node: XB-BOX - VRAM Calculator

Class Name

XB_VRAM_Calculator

Category
XB_ToolBox/Chunk_Preview
Author
WJLUOXIAO (Account age: 324days)
Extension
XB_ToolBox
Latest Updated
2026-05-19
Github Stars
0.04K

How to Install XB_ToolBox

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

XB-BOX - VRAM Calculator Description

Efficiently manage and calculate available VRAM for AI art projects, optimizing workflow and avoiding memory issues.

XB-BOX - VRAM Calculator:

The XB_VRAM_Calculator is a specialized node designed to help you efficiently manage and calculate the available VRAM (Video Random Access Memory) for your AI art projects. This node is particularly useful when working with complex video models that require significant computational resources. By taking into account various factors such as total VRAM, system overhead, model quantization, and the number of model layers, the XB_VRAM_Calculator provides an accurate estimation of the VRAM available for your tasks. This ensures that you can optimize your workflow and avoid running into memory-related issues, allowing for smoother and more efficient processing of your AI-generated art.

XB-BOX - VRAM Calculator Input Parameters:

Total_VRAM_GB

This parameter represents the total amount of VRAM available on your system, measured in gigabytes. It is crucial for determining the baseline memory capacity you have for running your models. The minimum value is 4 GB, the maximum is 128 GB, and the default is set to 24 GB. Adjusting this value helps the node calculate the available VRAM more accurately based on your system's specifications.

System_Overhead_GB

This parameter accounts for the VRAM used by the system and other applications, which is not available for model processing. It is measured in gigabytes and helps ensure that the VRAM calculation does not exceed the actual available memory. The minimum value is 0.0 GB, the maximum is 64.0 GB, and the default is 2.0 GB. Setting this value correctly is important to avoid overestimating the available VRAM.

Main_Video_Model

This parameter allows you to select the main video model you are working with. Options include "LTX-2.3 (22B)", "WAN2.2-I2V (14B)", "WAN2.2-T2V (14B)", and "WAN2.2-Animate (14B)". The choice of model affects the VRAM calculation as different models have different memory requirements. The default selection is "LTX-2.3 (22B)".

Model_Quantization

This parameter specifies the quantization method used for the model, which impacts the model's memory footprint. Options include "FP16/BF16", "FP8", "GGUF-Q8", "GGUF-Q6", and "GGUF-Q4". The default is "FP8". Choosing a lower precision quantization can reduce VRAM usage, allowing for more efficient processing.

Total_Model_Layers

This parameter indicates the total number of layers in the model. It is an integer value that affects the VRAM calculation by determining the model's complexity and memory requirements. The minimum value is 1, the maximum is 200, and the default is 48. Adjusting this value helps the node estimate the VRAM usage more accurately based on the model's architecture.

Layers_to_Swap

This parameter specifies the number of model layers that can be swapped out to reduce VRAM usage. It is an integer value that helps manage memory by offloading less critical layers. The minimum value is 0, the maximum is 200, and the default is 0. Increasing this value can help free up VRAM for other tasks.

LoRA_Plugin_VRAM_GB

This parameter accounts for the VRAM used by the LoRA plugin, measured in gigabytes. It is important for ensuring that the VRAM calculation includes all relevant memory usage. The minimum value is 0.0 GB, the maximum is 64.0 GB, and the default is 0.0 GB. Setting this value accurately helps avoid underestimating the VRAM usage.

XB-BOX - VRAM Calculator Output Parameters:

Available_VRAM

This output parameter provides the calculated amount of VRAM available for your tasks, measured in gigabytes. It reflects the memory left after accounting for system overhead, model requirements, and any additional plugins. Understanding this value is crucial for optimizing your workflow and ensuring that your system can handle the computational demands of your AI art projects without running into memory issues.

XB-BOX - VRAM Calculator Usage Tips:

  • Ensure that the Total_VRAM_GB parameter accurately reflects your system's VRAM to get precise calculations.
  • Adjust the System_Overhead_GB to account for other applications running on your system to avoid overestimating available VRAM.
  • Choose the appropriate Model_Quantization to balance between model performance and VRAM usage.
  • Use the Layers_to_Swap parameter to manage memory by offloading less critical layers, especially when working with complex models.

XB-BOX - VRAM Calculator Common Errors and Solutions:

Insufficient VRAM Error

  • Explanation: This error occurs when the calculated available VRAM is too low to run the selected model.
  • Solution: Increase the Total_VRAM_GB if possible, reduce the System_Overhead_GB, or choose a model with lower VRAM requirements.

Invalid Parameter Value

  • Explanation: This error arises when a parameter is set outside its allowed range.
  • Solution: Ensure all parameters are within their specified minimum and maximum values as outlined in the input parameter descriptions.

XB-BOX - VRAM Calculator Related Nodes

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

XB-BOX - VRAM Calculator