ComfyUI > Nodes > ComfyUI-HunyuanVideoWrapper > HunyuanVideo Model Loader

ComfyUI Node: HunyuanVideo Model Loader

Class Name

HyVideoModelLoader

Category
HunyuanVideoWrapper
Author
kijai (Account age: 2506days)
Extension
ComfyUI-HunyuanVideoWrapper
Latest Updated
2025-05-12
Github Stars
2.4K

How to Install ComfyUI-HunyuanVideoWrapper

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

HunyuanVideo Model Loader Description

Facilitates loading and initializing video models for AI artists in HunyuanVideo framework.

HunyuanVideo Model Loader:

The HyVideoModelLoader is a crucial component within the HunyuanVideo framework, designed to facilitate the loading and initialization of video models. This node is responsible for managing the complex process of setting up video models, ensuring they are ready for use in various video processing tasks. By handling the intricacies of model loading, it allows you to focus on creative aspects without worrying about the technical details. The node supports different precision settings and can be configured to optimize performance based on your specific needs. Its primary goal is to streamline the integration of video models into your workflow, making it an essential tool for AI artists looking to leverage advanced video processing capabilities.

HunyuanVideo Model Loader Input Parameters:

model_name

The model_name parameter specifies the name of the model you wish to load. It is crucial for identifying the correct model file from the available resources. This parameter directly impacts which model is initialized and used for video processing tasks. Ensure that the model name corresponds to a valid and compatible model file to avoid errors during loading.

precision

The precision parameter determines the numerical precision used during model computations. Options typically include bf16, fp16, and fp32, which correspond to bfloat16, float16, and float32 precisions, respectively. This setting affects the model's performance and memory usage, with lower precision often resulting in faster computations but potentially reduced accuracy. Choose the precision that best balances performance and quality for your specific application.

compile_args

The compile_args parameter allows you to specify arguments for compiling the model, which can optimize its execution. This includes settings like dynamo_cache_size_limit, fullgraph, dynamic, backend, and mode. These options provide control over how the model is compiled and executed, potentially improving performance for specific tasks. Understanding these settings can help you tailor the model's behavior to suit your needs.

HunyuanVideo Model Loader Output Parameters:

vae

The vae output parameter represents the loaded Variational Autoencoder (VAE) model. This model is essential for encoding and decoding video data, playing a critical role in the video processing pipeline. The VAE is returned in a state ready for use, with gradients disabled and set to evaluation mode, ensuring optimal performance during video processing tasks.

HunyuanVideo Model Loader Usage Tips:

  • Ensure that the model_name corresponds to a valid and compatible model file to avoid loading errors.
  • Choose the precision setting that best balances performance and quality for your specific application, considering the trade-offs between speed and accuracy.
  • Utilize the compile_args to optimize model execution, especially for complex video processing tasks, by adjusting settings like backend and mode.

HunyuanVideo Model Loader Common Errors and Solutions:

Incompatible VAE model selected

  • Explanation: This error occurs when the selected VAE model does not match the expected format required by the HunyuanVideoWrapper's VAE nodes.
  • Solution: Ensure you are using the original VAE model from the specified source: https://huggingface.co/Kijai/HunyuanVideo_comfy/blob/main/hunyuan_video_vae_bf16.safetensors. Alternatively, use the ComfyUI native VAELoader with the usual VAE nodes.

Model file not found

  • Explanation: This error indicates that the specified model_name does not correspond to any available model file.
  • Solution: Verify that the model_name is correct and that the model file exists in the expected directory. Double-check the file path and name for any typos or discrepancies.

HunyuanVideo Model Loader Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-HunyuanVideoWrapper
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 Playground, enabling artists to harness the latest AI tools to create incredible art.