Skip to content

Commit

Permalink
yo
Browse files Browse the repository at this point in the history
  • Loading branch information
snarayan21 committed Jul 29, 2024
1 parent b3b70fc commit 4bb1dec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions llmfoundry/callbacks/hf_checkpointer.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,9 +541,13 @@ def tensor_hook(
new_model_instance.name_or_path = self.pretrained_model_name
if self.using_peft:
for k in new_model_instance.peft_config.keys():
new_model_instance.base_model.name_or_path = self.pretrained_model_name
new_model_instance.peft_config[
k
].base_model_name_or_path = self.pretrained_model_name
print("PEFT CONFIG IS:")
for k,v in new_model_instance.peft_config.items():
print("key:", k, "value:", v)

log.debug('Saving Hugging Face checkpoint to disk')
# This context manager casts the TE extra state in io.BytesIO format to tensor format
Expand Down

0 comments on commit 4bb1dec

Please sign in to comment.