Skip to content

Commit 71316a6

Browse files
committed
note for load_state_dict changes.
1 parent da10365 commit 71316a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/diffusers/models/model_loading_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ def load_state_dict(checkpoint_file: Union[str, os.PathLike], variant: Optional[
132132
"""
133133
Reads a checkpoint file, returning properly formatted errors if they arise.
134134
"""
135+
# TODO: We merge the sharded checkpoints in case we're doing quantization. We can revisit this change
136+
# when refactoring the _merge_sharded_checkpoints() method later.
135137
if isinstance(checkpoint_file, dict):
136138
return checkpoint_file
137139
try:

0 commit comments

Comments
 (0)