Skip to content

Commit

Permalink
Update src/accelerate/utils/modeling.py
Browse files Browse the repository at this point in the history
Co-authored-by: Zachary Mueller <muellerzr@gmail.com>
  • Loading branch information
sgugger and muellerzr committed Feb 7, 2023
1 parent 62cafd5 commit c8e5ba2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/accelerate/utils/modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ def load_state_dict(checkpoint_file, device_map=None):
if checkpoint_file.endswith(".safetensors"):
if not is_safetensors_available():
raise ImportError(
f"To load {checkpoint_file}, the `safetensors` library is necessary `pip install safetensors`>"
f"To load {checkpoint_file}, the `safetensors` library is necessary `pip install safetensors`."
)
with safe_open(checkpoint_file, framework="pt") as f:
metadata = f.metadata()
Expand Down

0 comments on commit c8e5ba2

Please sign in to comment.