ComfyUI > Nodes > ComfyUI-WanVideoWrapper > WanVideo Set BlockSwap

ComfyUI Node: WanVideo Set BlockSwap

Class Name

WanVideoSetBlockSwap

Category
WanVideoWrapper
Author
kijai (Account age: 2871days)
Extension
ComfyUI-WanVideoWrapper
Latest Updated
2026-05-05
Github Stars
6.41K

How to Install ComfyUI-WanVideoWrapper

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

WanVideo Set BlockSwap Description

Enhances video model processing by dynamically swapping transformer blocks for resource optimization and performance improvement.

WanVideo Set BlockSwap:

The WanVideoSetBlockSwap node is designed to enhance the flexibility and efficiency of video model processing by allowing the dynamic swapping of transformer blocks within a model. This node is particularly useful in scenarios where computational resources are limited or need to be optimized, as it enables the offloading of certain model components to different devices, thereby balancing the load and potentially improving performance. By utilizing this node, you can customize the behavior of your video model, tailoring it to specific tasks or resource constraints. The primary function of this node is to modify the model's configuration to include block swap arguments, which dictate how and where certain parts of the model are processed. This capability is crucial for optimizing memory usage and processing speed, especially in complex video processing tasks.

WanVideo Set BlockSwap Input Parameters:

model

The model parameter is a required input that specifies the video model you wish to modify. This parameter is crucial as it serves as the base model upon which the block swap operations will be applied. The model should be compatible with the WANVIDEOMODEL format, ensuring that it can be processed by the node's functions. This parameter does not have a default value, as it is mandatory for the node's operation.

block_swap_args

The block_swap_args parameter is optional and allows you to specify the arguments for block swapping. These arguments determine which blocks of the model will be swapped and how they will be managed across different devices. The parameter can include options such as the number of blocks to swap, whether to offload text or image embeddings, and other configurations related to block management. If not provided, the node will use the model as is, without any block swapping. This flexibility allows you to tailor the model's execution to your specific needs, optimizing for either performance or resource usage.

WanVideo Set BlockSwap Output Parameters:

model

The output model parameter represents the modified video model after the block swap arguments have been applied. This output is crucial as it reflects the updated configuration of the model, ready for further processing or deployment. The modified model will have its transformer options adjusted according to the specified block swap arguments, potentially improving its performance or resource efficiency depending on the provided configurations.

WanVideo Set BlockSwap Usage Tips:

  • To optimize performance, consider specifying block_swap_args that offload less critical parts of the model to secondary devices, freeing up resources for more intensive tasks.
  • If you are unsure about the optimal configuration, start with a small number of blocks to swap and gradually increase as you monitor the model's performance and resource usage.

WanVideo Set BlockSwap Common Errors and Solutions:

Missing model input

  • Explanation: This error occurs when the required model parameter is not provided to the node.
  • Solution: Ensure that you specify a valid video model in the model parameter before executing the node.

Invalid block_swap_args format

  • Explanation: This error arises when the block_swap_args parameter is provided in an incorrect format or contains invalid values.
  • Solution: Verify that the block_swap_args are correctly formatted and contain valid options. Refer to the documentation for the correct structure and permissible values.

WanVideo Set BlockSwap Related Nodes

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

WanVideo Set BlockSwap