optimize VARM

This commit is contained in:
YunjieYu
2025-03-12 19:30:33 +08:00
parent 1a11412dea
commit 4542f76ff9
3 changed files with 3 additions and 3 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 38 KiB

+2 -2
View File
@@ -542,12 +542,12 @@ def teacache_wanmodel_forward_orig(
self.previous_modulated_input = modulated_inp
if not should_calc:
x += self.previous_residual
x += self.previous_residual.to(x.device)
else:
ori_x = x.clone()
for block in self.blocks:
x = block(x, **kwargs)
self.previous_residual = x - ori_x
self.previous_residual = (x - ori_x).to(torch.device('cpu'))
# head
x = self.head(x, e)
+1 -1
View File
@@ -1,7 +1,7 @@
[project]
name = "teacache"
description = "Unofficial implementation of [ali-vilab/TeaCache](https://github.com/ali-vilab/TeaCache) for ComfyUI"
version = "1.4.0"
version = "1.4.1"
license = {file = "LICENSE"}
[project.urls]