TurboDiffusion icon indicating copy to clipboard operation
TurboDiffusion copied to clipboard

mat1 and mat2 shapes cannot be multiplied (512x1024 and 4096x5120)

Open chukangkang opened this issue 11 months ago • 1 comments

[START] Security scan [ComfyUI-Manager] Using uv as Python module for pip operations. Using Python 3.10.0 environment at: /root/miniconda3/envs/comfy [DONE] Security scan

ComfyUI-Manager: installing dependencies done.

** ComfyUI startup time: 2025-12-29 20:04:27.174 ** Platform: Linux ** Python version: 3.10.0 (default, Mar 3 2022, 09:58:08) [GCC 7.5.0] ** Python executable: /root/miniconda3/envs/comfy/bin/python3 ** ComfyUI Path: /root/ComfyUI ** ComfyUI Base Folder Path: /root/ComfyUI ** User directory: /root/ComfyUI/user ** ComfyUI-Manager config path: /root/ComfyUI/user/__manager/config.ini ** Log path: /root/ComfyUI/user/comfyui.log Using Python 3.10.0 environment at: /root/miniconda3/envs/comfy Using Python 3.10.0 environment at: /root/miniconda3/envs/comfy

Prestartup times for custom nodes: 0.8 seconds: /root/ComfyUI/custom_nodes/ComfyUI-Manager

Checkpoint files will always be loaded safely. Total VRAM 24210 MB, total RAM 1031546 MB pytorch version: 2.8.0+cu128 Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync Using async weight offloading with 2 streams Enabled pinned memory 979968.0 Using pytorch attention Python version: 3.10.0 (default, Mar 3 2022, 09:58:08) [GCC 7.5.0] ComfyUI version: 0.6.0 ComfyUI frontend version: 1.35.9 [Prompt Server] web root: /root/miniconda3/envs/comfy/lib/python3.10/site-packages/comfyui_frontend_package/static Total VRAM 24210 MB, total RAM 1031546 MB pytorch version: 2.8.0+cu128 Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync Using async weight offloading with 2 streams Enabled pinned memory 979968.0

Loading: ComfyUI-Manager (V3.39)

[ComfyUI-Manager] network_mode: public [ComfyUI-Manager] ComfyUI per-queue preview override detected (PR #11261). Manager's preview method feature is disabled. Use ComfyUI's --preview-method CLI option or 'Settings > Execution > Live preview method'.

ComfyUI Version: v0.6.0-12-g8fd07170 | Released on '2025-12-28'

Megatron-core is not installed.

============================================================ ComfyUI TurboDiffusion I2V Node

Version: 0.1.0 Loaded 5 nodes:

  • TurboWan I2V Sampler (TurboWanSampler)
  • Save Video (TurboDiffusionSaveVideo)
  • TurboWan Model Loader (Quantized) (TurboWanModelLoader)
  • TurboDiffusion I2V Sampler (TurboDiffusionI2VSampler)
  • TurboWan VAE Loader (TurboWanVAELoader)

Features:

  • TurboWan Model Loader: Official TurboDiffusion model loading
  • Supports int8 block-wise quantized .pth models
  • SageSLA/SLA attention optimization for faster inference
  • Attention top-k tuning (0.01-1.0)

Requires:

  • TurboDiffusion Python package (manual install)
  • Quantized .pth models from HuggingFace ============================================================

Import times for custom nodes: 0.0 seconds: /root/ComfyUI/custom_nodes/websocket_image_save.py 0.1 seconds: /root/ComfyUI/custom_nodes/ComfyUI-Manager 0.3 seconds: /root/ComfyUI/custom_nodes/Comfyui_turbodiffusion

[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json Context impl SQLiteImpl. Will assume non-transactional DDL. No target revision found. Starting server

To see the GUI go to: http://0.0.0.0:12800 To see the GUI go to: http://[::]:12800 [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json FETCH ComfyRegistry Data: 5/116 FETCH ComfyRegistry Data: 10/116 FETCH ComfyRegistry Data: 15/116 got prompt

============================================================ [20:05:01] [ 0.00s] Preparing Lazy VAE Loader

[20:05:01] [ 0.00s] [VAELoader] VAE: wan_2.1_vae.safetensors [20:05:01] [ 0.00s] [VAELoader] Path: /root/ComfyUI/models/vae/wan_2.1_vae.safetensors [20:05:01] [ 0.00s] [VAELoader] ✓ Lazy loader created (VAE will load on first use)

============================================================ [20:05:01] [ 0.00s] Preparing Lazy Model Loader

[20:05:01] [ 0.00s] [ModelLoader] Model: wan2.1/TurboWan2.2-I2V-A14B-low-720P-quant.pth [20:05:01] [ 0.00s] [ModelLoader] Path: /root/ComfyUI/models/diffusion_models/wan2.1/TurboWan2.2-I2V-A14B-low-720P-quant.pth [20:05:01] [ 0.00s] [ModelLoader] Attention: sagesla, Top-k: 0.1 [20:05:01] [ 0.00s] [ModelLoader] ✓ Lazy loader created (model will load on first use)

============================================================ [20:05:01] [ 0.00s] Preparing Lazy Model Loader

[20:05:01] [ 0.00s] [ModelLoader] Model: wan2.1/TurboWan2.2-I2V-A14B-high-720P-quant.pth [20:05:01] [ 0.00s] [ModelLoader] Path: /root/ComfyUI/models/diffusion_models/wan2.1/TurboWan2.2-I2V-A14B-high-720P-quant.pth [20:05:01] [ 0.00s] [ModelLoader] Attention: sagesla, Top-k: 0.1 [20:05:01] [ 0.00s] [ModelLoader] ✓ Lazy loader created (model will load on first use)

FETCH ComfyRegistry Data: 20/116 clip missing: ['text_model.embeddings.token_embedding.weight', 'text_model.embeddings.position_embedding.weight', 'text_model.encoder.layers.0.layer_norm1.weight', 'text_model.encoder.layers.0.layer_norm1.bias', 'text_model.encoder.layers.0.self_attn.q_proj.weight', 'text_model.encoder.layers.0.self_attn.q_proj.bias', 'text_model.encoder.layers.0.self_attn.k_proj.weight', 'text_model.encoder.layers.0.self_attn.k_proj.bias', 'text_model.encoder.layers.0.self_attn.v_proj.weight', 'text_model.encoder.layers.0.self_attn.v_proj.bias', 'text_model.encoder.layers.0.self_attn.out_proj.weight', 'text_model.encoder.layers.0.self_attn.out_proj.bias', 'text_model.encoder.layers.0.layer_norm2.weight', 'text_model.encoder.layers.0.layer_norm2.bias', 'text_model.encoder.layers.0.mlp.fc1.weight', 'text_model.encoder.layers.0.mlp.fc1.bias', 'text_model.encoder.layers.0.mlp.fc2.weight', 'text_model.encoder.layers.0.mlp.fc2.bias', 'text_model.encoder.layers.1.layer_norm1.weight', 'text_model.encoder.layers.1.layer_norm1.bias', 'text_model.encoder.layers.1.self_attn.q_proj.weight', 'text_model.encoder.layers.1.self_attn.q_proj.bias', 'text_model.encoder.layers.1.self_attn.k_proj.weight', 'text_model.encoder.layers.1.self_attn.k_proj.bias', 'text_model.encoder.layers.1.self_attn.v_proj.weight', 'text_model.encoder.layers.1.self_attn.v_proj.bias', 'text_model.encoder.layers.1.self_attn.out_proj.weight', 'text_model.encoder.layers.1.self_attn.out_proj.bias', 'text_model.encoder.layers.1.layer_norm2.weight', 'text_model.encoder.layers.1.layer_norm2.bias', 'text_model.encoder.layers.1.mlp.fc1.weight', 'text_model.encoder.layers.1.mlp.fc1.bias', 'text_model.encoder.layers.1.mlp.fc2.weight', 'text_model.encoder.layers.1.mlp.fc2.bias', 'text_model.encoder.layers.2.layer_norm1.weight', 'text_model.encoder.layers.2.layer_norm1.bias', 'text_model.encoder.layers.2.self_attn.q_proj.weight', 'text_model.encoder.layers.2.self_attn.q_proj.bias', 'text_model.encoder.layers.2.self_attn.k_proj.weight', 'text_model.encoder.layers.2.self_attn.k_proj.bias', 'text_model.encoder.layers.2.self_attn.v_proj.weight', 'text_model.encoder.layers.2.self_attn.v_proj.bias', 'text_model.encoder.layers.2.self_attn.out_proj.weight', 'text_model.encoder.layers.2.self_attn.out_proj.bias', 'text_model.encoder.layers.2.layer_norm2.weight', 'text_model.encoder.layers.2.layer_norm2.bias', 'text_model.encoder.layers.2.mlp.fc1.weight', 'text_model.encoder.layers.2.mlp.fc1.bias', 'text_model.encoder.layers.2.mlp.fc2.weight', 'text_model.encoder.layers.2.mlp.fc2.bias', 'text_model.encoder.layers.3.layer_norm1.weight', 'text_model.encoder.layers.3.layer_norm1.bias', 'text_model.encoder.layers.3.self_attn.q_proj.weight', 'text_model.encoder.layers.3.self_attn.q_proj.bias', 'text_model.encoder.layers.3.self_attn.k_proj.weight', 'text_model.encoder.layers.3.self_attn.k_proj.bias', 'text_model.encoder.layers.3.self_attn.v_proj.weight', 'text_model.encoder.layers.3.self_attn.v_proj.bias', 'text_model.encoder.layers.3.self_attn.out_proj.weight', 'text_model.encoder.layers.3.self_attn.out_proj.bias', 'text_model.encoder.layers.3.layer_norm2.weight', 'text_model.encoder.layers.3.layer_norm2.bias', 'text_model.encoder.layers.3.mlp.fc1.weight', 'text_model.encoder.layers.3.mlp.fc1.bias', 'text_model.encoder.layers.3.mlp.fc2.weight', 'text_model.encoder.layers.3.mlp.fc2.bias', 'text_model.encoder.layers.4.layer_norm1.weight', 'text_model.encoder.layers.4.layer_norm1.bias', 'text_model.encoder.layers.4.self_attn.q_proj.weight', 'text_model.encoder.layers.4.self_attn.q_proj.bias', 'text_model.encoder.layers.4.self_attn.k_proj.weight', 'text_model.encoder.layers.4.self_attn.k_proj.bias', 'text_model.encoder.layers.4.self_attn.v_proj.weight', 'text_model.encoder.layers.4.self_attn.v_proj.bias', 'text_model.encoder.layers.4.self_attn.out_proj.weight', 'text_model.encoder.layers.4.self_attn.out_proj.bias', 'text_model.encoder.layers.4.layer_norm2.weight', 'text_model.encoder.layers.4.layer_norm2.bias', 'text_model.encoder.layers.4.mlp.fc1.weight', 'text_model.encoder.layers.4.mlp.fc1.bias', 'text_model.encoder.layers.4.mlp.fc2.weight', 'text_model.encoder.layers.4.mlp.fc2.bias', 'text_model.encoder.layers.5.layer_norm1.weight', 'text_model.encoder.layers.5.layer_norm1.bias', 'text_model.encoder.layers.5.self_attn.q_proj.weight', 'text_model.encoder.layers.5.self_attn.q_proj.bias', 'text_model.encoder.layers.5.self_attn.k_proj.weight', 'text_model.encoder.layers.5.self_attn.k_proj.bias', 'text_model.encoder.layers.5.self_attn.v_proj.weight', 'text_model.encoder.layers.5.self_attn.v_proj.bias', 'text_model.encoder.layers.5.self_attn.out_proj.weight', 'text_model.encoder.layers.5.self_attn.out_proj.bias', 'text_model.encoder.layers.5.layer_norm2.weight', 'text_model.encoder.layers.5.layer_norm2.bias', 'text_model.encoder.layers.5.mlp.fc1.weight', 'text_model.encoder.layers.5.mlp.fc1.bias', 'text_model.encoder.layers.5.mlp.fc2.weight', 'text_model.encoder.layers.5.mlp.fc2.bias', 'text_model.encoder.layers.6.layer_norm1.weight', 'text_model.encoder.layers.6.layer_norm1.bias', 'text_model.encoder.layers.6.self_attn.q_proj.weight', 'text_model.encoder.layers.6.self_attn.q_proj.bias', 'text_model.encoder.layers.6.self_attn.k_proj.weight', 'text_model.encoder.layers.6.self_attn.k_proj.bias', 'text_model.encoder.layers.6.self_attn.v_proj.weight', 'text_model.encoder.layers.6.self_attn.v_proj.bias', 'text_model.encoder.layers.6.self_attn.out_proj.weight', 'text_model.encoder.layers.6.self_attn.out_proj.bias', 'text_model.encoder.layers.6.layer_norm2.weight', 'text_model.encoder.layers.6.layer_norm2.bias', 'text_model.encoder.layers.6.mlp.fc1.weight', 'text_model.encoder.layers.6.mlp.fc1.bias', 'text_model.encoder.layers.6.mlp.fc2.weight', 'text_model.encoder.layers.6.mlp.fc2.bias', 'text_model.encoder.layers.7.layer_norm1.weight', 'text_model.encoder.layers.7.layer_norm1.bias', 'text_model.encoder.layers.7.self_attn.q_proj.weight', 'text_model.encoder.layers.7.self_attn.q_proj.bias', 'text_model.encoder.layers.7.self_attn.k_proj.weight', 'text_model.encoder.layers.7.self_attn.k_proj.bias', 'text_model.encoder.layers.7.self_attn.v_proj.weight', 'text_model.encoder.layers.7.self_attn.v_proj.bias', 'text_model.encoder.layers.7.self_attn.out_proj.weight', 'text_model.encoder.layers.7.self_attn.out_proj.bias', 'text_model.encoder.layers.7.layer_norm2.weight', 'text_model.encoder.layers.7.layer_norm2.bias', 'text_model.encoder.layers.7.mlp.fc1.weight', 'text_model.encoder.layers.7.mlp.fc1.bias', 'text_model.encoder.layers.7.mlp.fc2.weight', 'text_model.encoder.layers.7.mlp.fc2.bias', 'text_model.encoder.layers.8.layer_norm1.weight', 'text_model.encoder.layers.8.layer_norm1.bias', 'text_model.encoder.layers.8.self_attn.q_proj.weight', 'text_model.encoder.layers.8.self_attn.q_proj.bias', 'text_model.encoder.layers.8.self_attn.k_proj.weight', 'text_model.encoder.layers.8.self_attn.k_proj.bias', 'text_model.encoder.layers.8.self_attn.v_proj.weight', 'text_model.encoder.layers.8.self_attn.v_proj.bias', 'text_model.encoder.layers.8.self_attn.out_proj.weight', 'text_model.encoder.layers.8.self_attn.out_proj.bias', 'text_model.encoder.layers.8.layer_norm2.weight', 'text_model.encoder.layers.8.layer_norm2.bias', 'text_model.encoder.layers.8.mlp.fc1.weight', 'text_model.encoder.layers.8.mlp.fc1.bias', 'text_model.encoder.layers.8.mlp.fc2.weight', 'text_model.encoder.layers.8.mlp.fc2.bias', 'text_model.encoder.layers.9.layer_norm1.weight', 'text_model.encoder.layers.9.layer_norm1.bias', 'text_model.encoder.layers.9.self_attn.q_proj.weight', 'text_model.encoder.layers.9.self_attn.q_proj.bias', 'text_model.encoder.layers.9.self_attn.k_proj.weight', 'text_model.encoder.layers.9.self_attn.k_proj.bias', 'text_model.encoder.layers.9.self_attn.v_proj.weight', 'text_model.encoder.layers.9.self_attn.v_proj.bias', 'text_model.encoder.layers.9.self_attn.out_proj.weight', 'text_model.encoder.layers.9.self_attn.out_proj.bias', 'text_model.encoder.layers.9.layer_norm2.weight', 'text_model.encoder.layers.9.layer_norm2.bias', 'text_model.encoder.layers.9.mlp.fc1.weight', 'text_model.encoder.layers.9.mlp.fc1.bias', 'text_model.encoder.layers.9.mlp.fc2.weight', 'text_model.encoder.layers.9.mlp.fc2.bias', 'text_model.encoder.layers.10.layer_norm1.weight', 'text_model.encoder.layers.10.layer_norm1.bias', 'text_model.encoder.layers.10.self_attn.q_proj.weight', 'text_model.encoder.layers.10.self_attn.q_proj.bias', 'text_model.encoder.layers.10.self_attn.k_proj.weight', 'text_model.encoder.layers.10.self_attn.k_proj.bias', 'text_model.encoder.layers.10.self_attn.v_proj.weight', 'text_model.encoder.layers.10.self_attn.v_proj.bias', 'text_model.encoder.layers.10.self_attn.out_proj.weight', 'text_model.encoder.layers.10.self_attn.out_proj.bias', 'text_model.encoder.layers.10.layer_norm2.weight', 'text_model.encoder.layers.10.layer_norm2.bias', 'text_model.encoder.layers.10.mlp.fc1.weight', 'text_model.encoder.layers.10.mlp.fc1.bias', 'text_model.encoder.layers.10.mlp.fc2.weight', 'text_model.encoder.layers.10.mlp.fc2.bias', 'text_model.encoder.layers.11.layer_norm1.weight', 'text_model.encoder.layers.11.layer_norm1.bias', 'text_model.encoder.layers.11.self_attn.q_proj.weight', 'text_model.encoder.layers.11.self_attn.q_proj.bias', 'text_model.encoder.layers.11.self_attn.k_proj.weight', 'text_model.encoder.layers.11.self_attn.k_proj.bias', 'text_model.encoder.layers.11.self_attn.v_proj.weight', 'text_model.encoder.layers.11.self_attn.v_proj.bias', 'text_model.encoder.layers.11.self_attn.out_proj.weight', 'text_model.encoder.layers.11.self_attn.out_proj.bias', 'text_model.encoder.layers.11.layer_norm2.weight', 'text_model.encoder.layers.11.layer_norm2.bias', 'text_model.encoder.layers.11.mlp.fc1.weight', 'text_model.encoder.layers.11.mlp.fc1.bias', 'text_model.encoder.layers.11.mlp.fc2.weight', 'text_model.encoder.layers.11.mlp.fc2.bias', 'text_model.final_layer_norm.weight', 'text_model.final_layer_norm.bias', 'text_projection.weight'] CLIP/text encoder model load device: cuda:0, offload device: cpu, current: cpu, dtype: torch.float16 Requested to load SD1ClipModel loaded completely; 22600.49 MB usable, 235.84 MB loaded, full load: True

============================================================ [20:05:06] [ 0.00s] TurboDiffusion I2V Inference

[20:05:06] [ 0.00s] [I2V-Inference] Device: cuda:0 [20:05:06] [ 0.00s] [I2V-Inference] CUDA available: Yes (1 GPU(s) detected) [20:05:06] [ 0.00s] [I2V-Inference] GPU 0: NVIDIA GeForce RTX 4090 - 23.64GB total VRAM [20:05:06] [ 0.00s] [I2V-Inference] VRAM at start: 0.24GB used, 23.40GB free (of 23.64GB total) [20:05:06] [ 0.00s] [I2V-Inference] Frames: 41, Steps: 4, Resolution: 480 1:1 [20:05:06] [ 0.00s] [I2V-Inference] Boundary: 0.9, Sigma: 200.0, Seed: 42 [20:05:06] [ 0.00s] [I2V-Inference] Extracting text embedding from conditioning... [20:05:06] [ 0.00s] [I2V-Inference] Conditioning type: <class 'list'> [20:05:06] [ 0.00s] [I2V-Inference] Conditioning[0] type: <class 'list'> [20:05:06] [ 0.00s] [I2V-Inference] Conditioning[0][0] type: <class 'torch.Tensor'> [20:05:06] [ 0.00s] [I2V-Inference] Text embedding shape: torch.Size([1, 77, 768]) [20:05:06] [ 0.00s] [I2V-Inference] Preparing VAE... [20:05:06] [ 0.00s] [I2V-Inference] Preprocessing input image... [20:05:06] [ 0.00s] ⏳ Lazy loading VAE: wan_2.1_vae.safetensors...

============================================================ [20:05:06] [ 0.00s] Loading VAE with ComfyUI Integration

Loading VAE from: /root/ComfyUI/models/vae/wan_2.1_vae.safetensors [12-29 20:05:06|INFO|custom_nodes/Comfyui_turbodiffusion/turbodiffusion_vendor/rcm/tokenizers/wan2pt1.py:590:_video_vae] loading /root/ComfyUI/models/vae/wan_2.1_vae.safetensors ✓ VAE loaded successfully! Spatial compression factor: 8 Temporal compression factor: 4 [20:05:06] [ 0.39s] [VAELoader] ✓ VAE wrapper created successfully! [20:05:06] [ 0.39s] [VAELoader] VAE starts on CPU for memory efficiency

[20:05:06] [ 0.39s] ✓ VAE loaded in 0.39s: wan_2.1_vae.safetensors [20:05:06] [ 0.40s] [I2V-Inference] Target resolution: 480x480, Latent shape: 11x60x60 [20:05:06] [ 0.40s] [I2V-Inference] Frame tensor size: ~0.11GB [20:05:06] [ 0.44s] [I2V-Inference] Encoding image with VAE... [20:05:06] [ 0.44s] [I2V-Inference] VRAM before cleanup: 0.48GB allocated, 0.50GB reserved [20:05:06] [ 0.44s] [I2V-Inference] Unloading all models from GPU... [20:05:06] [ 0.59s] [I2V-Inference] VRAM after cleanup: 0.25GB allocated, 0.28GB reserved [20:05:06] [ 0.59s] [I2V-Inference] Creating frame tensor (1 real frame + 40 zero frames)... [20:05:07] [ 0.62s] [I2V-Inference] Encoding 41 frames at 480x480 resolution... Moving VAE to cuda:0 Moving VAE to cpu [20:05:08] [ 1.90s] [I2V-Inference] VAE encoding complete (VAE automatically offloaded to CPU) [20:05:08] [ 1.90s] [I2V-Inference] Preparing conditioning... [20:05:08] [ 1.90s] [I2V-Inference] Initializing noise with seed 42... [20:05:08] [ 1.90s] [I2V-Inference] Running dual-expert rCM sampling... [20:05:08] [ 1.90s] [I2V-Inference] Boundary at step 3/4 [20:05:08] [ 1.90s] [I2V-Inference] Aggressive VRAM cleanup before loading diffusion model... [20:05:08] [ 2.12s] [I2V-Inference] VRAM before high noise model: 0.01GB allocated, 0.06GB reserved, 23.58GB free [20:05:08] [ 2.12s] [I2V-Inference] Loading high noise model... [20:05:08] [ 0.00s] ⏳ Lazy loading model: wan2.1/TurboWan2.2-I2V-A14B-high-720P-quant.pth... [20:05:08] [ 6.67s] [ModelLoader] Loading with official create_model()... [12-29 20:05:09|INFO|custom_nodes/Comfyui_turbodiffusion/turbodiffusion_vendor/rcm/networks/wan2pt2.py:793:enable_selective_checkpoint] Enable selective checkpoint with mm_only, for every 1 blocks. Total blocks: 40 [20:05:09] [ 7.46s] [ModelLoader] Applying sagesla attention with topk=0.1... [20:05:09] [ 7.47s] [ModelLoader] Loading state dict to CPU... FETCH ComfyRegistry Data: 25/116 [20:05:14] [ 12.92s] [ModelLoader] Cleaned 1575 state dict keys [20:05:14] [ 12.92s] [ModelLoader] Applying quantization-aware replacements (quant_linear=True, fast_norm=True)... [20:05:14] [ 12.96s] [ModelLoader] Loading weights into model... [20:05:14] [ 13.04s] [ModelLoader] Model loaded to CPU [20:05:14] [ 13.05s] [ModelLoader] Model wrapped with layerwise GPU offloading (blocks swapped to GPU) [20:05:14] [ 13.05s] [ModelLoader] ✓ Successfully loaded model [20:05:14] [ 13.05s] [ModelLoader] Model type: Wan2.2-A14B [20:05:14] [ 13.05s] [ModelLoader] Attention: sagesla [20:05:14] [ 13.05s] [ModelLoader] Quantized: True [20:05:14] [ 6.39s] ✓ Model loaded in 6.39s: wan2.1/TurboWan2.2-I2V-A14B-high-720P-quant.pth [20:05:14] [ 8.51s] [I2V-Inference] VRAM after high noise model loaded: 0.01GB allocated, 0.06GB reserved, 23.58GB free [20:05:14] [ 8.51s] [I2V-Inference] Sampling with high noise model (steps 0-3)... Sampling steps 0-3: 0%| | 0/3 [00:00<?, ?it/s]FETCH ComfyRegistry Data: 30/116 Sampling steps 0-3: 0%| | 0/3 [00:00<?, ?it/s] !!! Exception during processing !!! mat1 and mat2 shapes cannot be multiplied (77x768 and 4096x5120) Traceback (most recent call last): File "/root/ComfyUI/execution.py", line 516, in execute output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data) File "/root/ComfyUI/execution.py", line 330, in get_output_data return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data) File "/root/ComfyUI/execution.py", line 304, in _async_map_node_over_list await process_inputs(input_dict, i) File "/root/ComfyUI/execution.py", line 292, in process_inputs result = f(**inputs) File "/root/ComfyUI/custom_nodes/Comfyui_turbodiffusion/nodes/turbowan_inference.py", line 385, in generate x = rcm_sampler( File "/root/ComfyUI/custom_nodes/Comfyui_turbodiffusion/turbodiffusion_vendor/rcm/cm_sampler.py", line 77, in rcm_sampler v_pred = model( File "/root/ComfyUI/custom_nodes/Comfyui_turbodiffusion/utils/lazy_loader.py", line 139, in call return self._model(*args, **kwargs) File "/root/ComfyUI/custom_nodes/Comfyui_turbodiffusion/utils/layerwise_gpu_offload_wrapper.py", line 168, in call return self.forward(*args, **kwargs) File "/root/ComfyUI/custom_nodes/Comfyui_turbodiffusion/utils/layerwise_gpu_offload_wrapper.py", line 165, in forward return self.model(*args, **kwargs) File "/root/miniconda3/envs/comfy/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1773, in _wrapped_call_impl return self._call_impl(*args, **kwargs) File "/root/miniconda3/envs/comfy/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1784, in _call_impl return forward_call(*args, **kwargs) File "/root/ComfyUI/custom_nodes/Comfyui_turbodiffusion/turbodiffusion_vendor/rcm/networks/wan2pt2.py", line 679, in forward context_B_L_D = self.text_embedding(crossattn_emb) File "/root/miniconda3/envs/comfy/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1773, in _wrapped_call_impl return self._call_impl(*args, **kwargs) File "/root/miniconda3/envs/comfy/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1784, in _call_impl return forward_call(*args, **kwargs) File "/root/ComfyUI/custom_nodes/Comfyui_turbodiffusion/utils/layerwise_gpu_offload_wrapper.py", line 87, in forward out = self.module(*args, **kwargs) File "/root/miniconda3/envs/comfy/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1773, in _wrapped_call_impl return self._call_impl(*args, **kwargs) File "/root/miniconda3/envs/comfy/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1784, in _call_impl return forward_call(*args, **kwargs) File "/root/miniconda3/envs/comfy/lib/python3.10/site-packages/torch/nn/modules/container.py", line 244, in forward input = module(input) File "/root/miniconda3/envs/comfy/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1773, in _wrapped_call_impl return self._call_impl(*args, **kwargs) File "/root/miniconda3/envs/comfy/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1784, in _call_impl return forward_call(*args, **kwargs) File "/root/miniconda3/envs/comfy/lib/python3.10/site-packages/torch/nn/modules/linear.py", line 125, in forward return F.linear(input, self.weight, self.bias) RuntimeError: mat1 and mat2 shapes cannot be multiplied (77x768 and 4096x5120)

chukangkang avatar Dec 29 '25 12:12 chukangkang

This issue seems to be related to ComfyUI instead of our native inference code

zhengkw18 avatar Dec 30 '25 11:12 zhengkw18