Nodes/ComfyUI-WanAnimatePlus/WanAnimatePlus TorchCompileSettings
ComfyUI Node

WanAnimatePlus TorchCompileSettings

torch.compile settings, when connected to the model loader, torch.compile of the selected layers is attempted. Requires Triton and torch > 2.7.0 is recommended

By wuwukaka·Created 3 months ago·Updated 22 days ago· 402
WanAnimatePlus TorchCompileSettings
    • torch_compile_args
    backendinductor
    fullgraphfalse
    modedefault
    dynamicfalse
    dynamo_cache_size_limit64
    compile_transformer_blocks_onlytrue
    dynamo_recompile_limit128
    force_parameter_static_shapesfalse
    allow_unmerged_lora_compilefalse
    CategoryWanAnimatePlus

    Inputs (9)

    NameTypeDefaultDescription
    backendCOMBOinductor2 options: inductor, cudagraphs
    fullgraphBOOLEANfalseEnable full graph mode
    modeCOMBOdefault4 options: default, max-autotune, max-autotune-no-cudagraphs, reduce-overhead
    dynamicBOOLEANfalseEnable dynamic mode
    dynamo_cache_size_limitINT640–1024torch._dynamo.config.cache_size_limit
    compile_transformer_blocks_onlyBOOLEANtrueCompile only the transformer blocks, usually enough and can make compilation faster and less error prone
    dynamo_recompile_limitoptINT1280–1024torch._dynamo.config.recompile_limit
    force_parameter_static_shapesoptBOOLEANfalsetorch._dynamo.config.force_parameter_static_shapes
    allow_unmerged_lora_compileoptBOOLEANfalseAllow LoRA application to be compiled with torch.compile to avoid graph breaks, causes issues with some LoRAs, mostly dynamic ones

    Outputs (1)

    NameTypeDescription
    torch_compile_argsWANCOMPILEARGS