Skip to content

Commit

Permalink
fix HF export script
Browse files Browse the repository at this point in the history
  • Loading branch information
tloen committed Mar 18, 2023
1 parent 8dc0f61 commit 6ced8d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion export_hf_checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

lora_model_sd = lora_model.state_dict()
deloreanized_sd = {
k.replace("base_model.model.model", "model"): v
k.replace("base_model.model.", ""): v
for k, v in lora_model_sd.items()
if "lora" not in k
}
Expand Down

0 comments on commit 6ced8d9

Please sign in to comment.