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.

Fix lowvram dora issue.

comfyanonymous2d4164271634
diff --git a/comfy/model_patcher.py b/comfy/model_patcher.py
index c38b2f79b..35ede5eef 100644
--- a/comfy/model_patcher.py
+++ b/comfy/model_patcher.py
@@ -16,7 +16,7 @@ def apply_weight_decompose(dora_scale, weight):
.transpose(0, 1)
)
- return weight * (dora_scale / weight_norm)
+ return weight * (dora_scale / weight_norm).type(weight.dtype)
def set_model_options_patch_replace(model_options, patch, name, block_name, number, transformer_index=None):
to = model_options["transformer_options"].copy()