optimize VRAM

This commit is contained in:
YunjieYu
2025-03-12 19:39:57 +08:00
parent be73edb3ed
commit 2e75a8b611
2 changed files with 1 additions and 1 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 67 KiB

+1 -1
View File
@@ -547,7 +547,7 @@ def teacache_wanmodel_forward_orig(
ori_x = x.clone()
for block in self.blocks:
x = block(x, **kwargs)
self.previous_residual = (x - ori_x).to(torch.device('cpu'))
self.previous_residual = (x - ori_x).to(torch.device('cpu'))
# head
x = self.head(x, e)