Skip to content

Commit

Permalink
revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SunMarc committed Feb 28, 2024
1 parent ce94146 commit 4cb52b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/transformers/modeling_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3552,6 +3552,7 @@ def from_pretrained(
"device_map": device_map,
"offload_dir": offload_folder,
"offload_index": offload_index,
"force_hooks": True
}
if "skip_keys" in inspect.signature(dispatch_model).parameters:
device_map_kwargs["skip_keys"] = model._skip_keys_device_placement
Expand Down

0 comments on commit 4cb52b8

Please sign in to comment.