We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9e08da commit 02a368bCopy full SHA for 02a368b
src/diffusers/models/model_loading_utils.py
@@ -340,7 +340,7 @@ def _merge_sharded_checkpoints(
340
# Load tensors from each unique file
341
for file_name in files_to_load:
342
part_file_path = os.path.join(sharded_ckpt_cached_folder, file_name)
343
- if not os.path.exists(part_file_path) and (dduf_entries and part_file_path not in dduf_entries):
+ if not os.path.exists(part_file_path) or (dduf_entries and part_file_path not in dduf_entries):
344
raise FileNotFoundError(f"Part file {file_name} not found.")
345
346
if is_safetensors:
0 commit comments