Patch load/unload fix
May break other things. For some reason T5 decided to run on the CPU with this change, but only like once and I can't for the life of me reproduce it.
This commit is contained in:
@@ -140,8 +140,7 @@ class GGUFModelPatcher(comfy.model_patcher.ModelPatcher):
|
||||
continue
|
||||
if len(patches) > 0:
|
||||
p.patches = []
|
||||
|
||||
return super().unpatch_model(device_to=device_to, unpatch_weights=unpatch_weights)
|
||||
return super().unpatch_model(device_to=None, unpatch_weights=unpatch_weights)
|
||||
|
||||
def load(self, *args, force_patch_weights=False, **kwargs):
|
||||
# always call `patch_weight_to_device` even for lowvram
|
||||
|
||||
Reference in New Issue
Block a user