From 82378a2815cb46f98079daf84b3015c35fcb91c9 Mon Sep 17 00:00:00 2001 From: Artiprocher Date: Tue, 18 Nov 2025 23:17:15 +0800 Subject: [PATCH] fix wan vram bug --- diffsynth/core/vram/layers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/diffsynth/core/vram/layers.py b/diffsynth/core/vram/layers.py index cc2b4d9..852a8f3 100644 --- a/diffsynth/core/vram/layers.py +++ b/diffsynth/core/vram/layers.py @@ -255,8 +255,7 @@ class AutoWrappedNonRecurseModule(AutoWrappedModule): getattr(self, name).to("meta") def cast_to(self, module, dtype, device): - for name in self.required_params: - getattr(module, name).to(dtype=dtype, device=device) + # Parameter casting is implemented in the model architecture. return module def __getattr__(self, name):