Skip to content

Commit

Permalink
Fix lowvram dora issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed May 15, 2024
1 parent ec6f16a commit 2d41642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comfy/model_patcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2d41642

Please sign in to comment.