Merge branch 'comfyanonymous:master' into master

This commit is contained in:
Kel Phillipson 2024-08-16 14:09:10 -08:00 committed by GitHub
commit aa7f5f3adf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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