Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Use better dtype for the lowvram lora system.

comfyanonymous6138f92084cf
diff --git a/comfy/model_patcher.py b/comfy/model_patcher.py
index 8dafc54a3..51259b559 100644
--- a/comfy/model_patcher.py
+++ b/comfy/model_patcher.py
@@ -96,7 +96,7 @@ class LowVramPatch:
self.key = key
self.model_patcher = model_patcher
def __call__(self, weight):
- return self.model_patcher.calculate_weight(self.model_patcher.patches[self.key], weight, self.key)
+ return self.model_patcher.calculate_weight(self.model_patcher.patches[self.key], weight, self.key, intermediate_dtype=weight.dtype)
class ModelPatcher: