Skip to content

Commit 059818f

Browse files
committed
destination_path
1 parent 8cf75a8 commit 059818f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/models/modeling_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ def save_pretrained(
739739

740740
flashpack.serialization.pack_to_file(
741741
state_dict_or_model=state_dict,
742-
destination_path=save_directory,
742+
destination_path=os.path.join(save_directory, weights_name),
743743
target_dtype=self.dtype,
744744
)
745745
else:

0 commit comments

Comments
 (0)