lum3on 45b8ef469c Rename to ComfyUI_NativeBlockSwap and add WAN 2.2 support
- Fixed deprecated node issues (parameter order mismatch)
- Added WAN 2.2 model compatibility
- Fixed embedding offload logic (moved outside loop)
- Updated branding and documentation
- Supports all WAN variants (2.1, 2.2, VACE, Camera, HuMo, Animate, S2V)
2026-01-06 00:01:17 +01:00
2025-03-09 19:00:02 +00:00
2025-03-09 18:21:04 +00:00
2025-03-09 18:21:04 +00:00

ComfyUI_NativeBlockSwap

Native block swap node for ComfyUI WAN models, reducing VRAM usage by swapping transformer blocks to CPU.

✨ Features:

  • Compatible with WAN 2.1 and WAN 2.2 models (including all variants: VACE, Camera, HuMo, Animate, S2V)
  • Swap up to 40 transformer blocks to CPU (14B model has 40 blocks, 1.3B model has 30 blocks)
  • Optional embedding offloading (text and image embeddings)
  • Non-blocking memory transfer option for faster performance

📦 Installation:

cd ComfyUI/custom_nodes
git clone https://github.com/lum3on/ComfyUI_NativeBlockSwap.git

🎯 Usage:

image

⚙️ Parameters:

  • blocks_to_swap: Number of transformer blocks to offload to CPU (0-40)
  • offload_img_emb: Offload image embeddings to CPU
  • offload_txt_emb: Offload text embeddings to CPU
  • use_non_blocking: Use non-blocking memory transfer (faster but uses more RAM)
S
Description
No description provided
Readme
536 KiB
Languages
Python 100%