Skip to content

Commit

Permalink
Fix error on 4bit checkpoint load with run_lm_eval on TF4.45.2 (#1439)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiminha authored Oct 18, 2024
1 parent caf0a52 commit 190a29a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/text-generation/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ def local_load_remaining_pretrained_weight(self,model):
"model": model,
"state_dict": state_dict,
"start_prefix": "",
"expected_keys": list(state_dict.keys()),
"expected_keys": self.loaded_state_dict_keys,
"device_map": {"": self.device},
"offload_folder": offload_folder,
"state_dict_folder": tempfile.mkdtemp() if offload_state_dict else None,
Expand Down

0 comments on commit 190a29a

Please sign in to comment.