Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Will Johnson <[email protected]>
  • Loading branch information
willmj committed Dec 10, 2024
1 parent 78c702d commit c2b50a6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,9 @@ def save_sharded_safetensors(
".safetensors", "{suffix}.safetensors"
)
state_dict_split = split_torch_state_dict_into_shards(
input_state_dict, filename_pattern=filename_pattern, max_shard_size=max_shard_size
input_state_dict,
filename_pattern=filename_pattern,
max_shard_size=max_shard_size,
)
index = {
"metadata": state_dict_split.metadata,
Expand Down

0 comments on commit c2b50a6

Please sign in to comment.