mirror of
https://git.datalinker.icu/kijai/ComfyUI-CogVideoXWrapper.git
synced 2025-12-09 21:04:23 +08:00
Update model_loading.py
This commit is contained in:
parent
f52c45800c
commit
9cce8015d3
@ -190,6 +190,8 @@ class DownloadAndLoadCogVideoModel:
|
||||
# compilation
|
||||
if compile == "torch":
|
||||
torch._dynamo.config.suppress_errors = True
|
||||
torch._dynamo.config.cache_size_limit = 64
|
||||
|
||||
pipe.transformer.to(memory_format=torch.channels_last)
|
||||
#pipe.transformer = torch.compile(pipe.transformer, mode="default", fullgraph=False, backend="inductor")
|
||||
for i, block in enumerate(pipe.transformer.transformer_blocks):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user