Merge 9350384f6ed3aa3a2a95747925577affd7a5b097 into dafbe321d2dfbe2cabd9eb32e88f8088996cd524

This commit is contained in:
Dr.Lt.Data 2024-08-22 13:40:33 +09:00 committed by GitHub
commit 261d0d8043
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -588,6 +588,9 @@ class ModelPatcher:
weight += function(((strength * alpha) * lora_diff).type(weight.dtype))
except Exception as e:
logging.error("ERROR {} {} {}".format(patch_type, key, e))
elif patch_type == "patch_function":
weight = v(p, weight, key)
else:
logging.warning("patch type not recognized {} {}".format(patch_type, key))