Don't overwrite sequential cpu offloading in the fun sampler

This commit is contained in:
kijai 2024-09-21 16:46:59 +03:00
parent 73fa4be48f
commit 006507a9fe

View File

@ -737,7 +737,8 @@ class CogVideoXFunSampler:
base_path = pipeline["base_path"]
assert "Fun" in base_path, "'Unfun' models not supported in 'CogVideoXFunSampler', use the 'CogVideoSampler'"
pipe.enable_model_cpu_offload(device=device)
if not pipeline["cpu_offloading"]:
pipe.enable_model_cpu_offload(device=device)
mm.soft_empty_cache()