Skip to content

Commit

Permalink
Clean
Browse files Browse the repository at this point in the history
  • Loading branch information
muellerzr committed Nov 10, 2023
1 parent aff488b commit 2ca0973
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/accelerate/utils/other.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ def clean_state_dict_for_safetensors(state_dict: dict):
state_dict = {k: v.contiguous() for k, v in state_dict.items()}
return state_dict


def save(obj, f, save_on_each_node: bool = False, safe_serialization: bool = False):
"""
Save the data to disk. Use in place of `torch.save()`.
Expand Down

0 comments on commit 2ca0973

Please sign in to comment.