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_GBparameter accurately reflects your system's VRAM to get precise calculations. - Adjust the
System_Overhead_GBto account for other applications running on your system to avoid overestimating available VRAM. - Choose the appropriate
Model_Quantizationto balance between model performance and VRAM usage. - Use the
Layers_to_Swapparameter 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_GBif possible, reduce theSystem_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.
