Fix potential lowvram issue.

main
comfyanonymous 6 months ago
parent b021cf67c7
commit 83f343146a

@ -367,7 +367,7 @@ class ModelPatcher:
if mem_counter + module_mem >= lowvram_model_memory:
lowvram_weight = True
lowvram_counter += 1
if m.comfy_cast_weights:
if hasattr(m, "prev_comfy_cast_weights"): #Already lowvramed
continue
weight_key = "{}.weight".format(n)

Loading…
Cancel
Save