mirror of
https://github.com/Wan-Video/Wan2.1.git
synced 2025-07-13 11:10:11 +00:00
enbale teacache and fsdp used both
This commit is contained in:
parent
6686e7fd18
commit
e198d833eb
@ -949,7 +949,8 @@ def generate(args):
|
||||
if args.enable_teacache:
|
||||
wan_t2v.__class__.generate = t2v_generate
|
||||
wan_t2v.model.__class__.enable_teacache = True
|
||||
wan_t2v.model.__class__.forward = teacache_forward
|
||||
if args.ulysses_size * args.ring_size == 1: # not conflict with fsdp
|
||||
wan_t2v.model.__class__.forward = teacache_forward
|
||||
wan_t2v.model.__class__.cnt = 0
|
||||
wan_t2v.model.__class__.num_steps = args.sample_steps*2
|
||||
wan_t2v.model.__class__.teacache_thresh = args.teacache_thresh
|
||||
|
Loading…
Reference in New Issue
Block a user