mirror of
https://github.com/modelscope/DiffSynth-Studio.git
synced 2026-03-24 18:28:10 +00:00
Fix gradient checkpointing in WAN VACE blocks
This commit is contained in:
@@ -1243,7 +1243,11 @@ def model_fn_wan_video(
|
|||||||
tea_cache_update = False
|
tea_cache_update = False
|
||||||
|
|
||||||
if vace_context is not None:
|
if vace_context is not None:
|
||||||
vace_hints = vace(x, vace_context, context, t_mod, freqs)
|
vace_hints = vace(
|
||||||
|
x, vace_context, context, t_mod, freqs,
|
||||||
|
use_gradient_checkpointing=use_gradient_checkpointing,
|
||||||
|
use_gradient_checkpointing_offload=use_gradient_checkpointing_offload
|
||||||
|
)
|
||||||
|
|
||||||
# blocks
|
# blocks
|
||||||
if use_unified_sequence_parallel:
|
if use_unified_sequence_parallel:
|
||||||
|
|||||||
Reference in New Issue
Block a user