Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/transformers/core_model_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,7 @@ def convert_and_load_state_dict_in_model(
# Close the pool, independently of whether the code was interrupted or finished successfully
finally:
if thread_pool is not None:
# `cancel_futures=True` in case the program was interupted, to avoid wasting time on exit
# `cancel_futures=True` in case the program was interrupted, to avoid wasting time on exit
thread_pool.shutdown(wait=False, cancel_futures=True)

# Keep the current weight conversion mapping for later saving (in case it was coming directly from the user)
Expand Down