mirror of
https://github.com/Wan-Video/Wan2.1.git
synced 2025-11-04 14:16:57 +00:00
fixed memory leak while switching tabs
This commit is contained in:
parent
ccc0c4ffee
commit
922b8d2ccb
@ -658,8 +658,8 @@ def load_models(i2v):
|
||||
kwargs = { "extraModelsToQuantize": None}
|
||||
if profile == 2 or profile == 4:
|
||||
kwargs["budgets"] = { "transformer" : 100 if preload == 0 else preload, "text_encoder" : 100, "*" : 1000 }
|
||||
if profile == 4:
|
||||
kwargs["partialPinning"] = True
|
||||
# if profile == 4:
|
||||
# kwargs["partialPinning"] = True
|
||||
elif profile == 3:
|
||||
kwargs["budgets"] = { "*" : "70%" }
|
||||
offloadobj = offload.profile(pipe, profile_no= profile, compile = compile, quantizeTransformer = quantizeTransformer, loras = "transformer", **kwargs)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user