Skip to content

Questions about WanVideo Torch Compile Settings and WanVideo Block Swap nodes for optimization on 4090D #1071

Description

@Passenger12138

Hello,

I am using your Wan2.2 workflow for image-to-video tasks, and I can run the workflow successfully. However, I’d like to better optimize it for my 4090D GPU with some specific acceleration settings.

Inside ComfyUI, I encountered two nodes that I don’t fully understand, and I couldn’t find much documentation about them.

  1. WanVideo Torch Compile Settings

I would like to know what the following parameters mean, and in which situations I should change them for faster performance (or if they are not necessary to modify):

backend
fullgraph
mode
dynamic
dynamo cache size limit
compile transformer blocks only
dynamo recompile limit

  1. WanVideo Block Swap

The parameters I am not sure about are:

blocks to swap
offload img emb
offload txt emb
use non blocking
vace blocks to swap

I tried changing blocks to swap, but it didn’t seem to affect speed much. Perhaps due to your good implementation of parallelization and model rotation.

My Question:

I want to further speed up the workflow. Could you provide guidance on:

What these parameters actually control

When it makes sense to change them

Any recommended settings for a 4090D GPU(maybe umt5 and vae load and offload casue time waste?)

Thank you for your great work on this project!
Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions