Skip to content

Commit ef73070

Browse files
authored
mp: Fix checkpoint saving (Comfy-Org#12268)
Fix regression in the recent model saving refactor. Pass the non unet pieces down the layers so that checkpoints are complete.
1 parent d30c609 commit ef73070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

comfy/model_patcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1400,7 +1400,7 @@ def state_dict_for_saving(self, clip_state_dict=None, vae_state_dict=None, clip_
14001400
continue
14011401
key = "diffusion_model." + k
14021402
unet_state_dict[k] = LazyCastingParam(self, key, comfy.utils.get_attr(self.model, key))
1403-
return self.model.state_dict_for_saving(unet_state_dict)
1403+
return self.model.state_dict_for_saving(unet_state_dict, clip_state_dict=clip_state_dict, vae_state_dict=vae_state_dict, clip_vision_state_dict=clip_vision_state_dict)
14041404

14051405
def __del__(self):
14061406
self.unpin_all_weights()

0 commit comments

Comments
 (0)