Skip to content

Commit

Permalink
[fix] merge lora fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Yizhen committed Oct 15, 2024
1 parent 94021d3 commit 019a361
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ data/

# output models
output_models/
adapter_model/

# Distribution / packaging
.Python
Expand Down
1 change: 1 addition & 0 deletions examples/merge_lora.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def main():
device=merge_lora_args.device,
ds_config=merge_lora_args.ds_config
)
model.activate_model_for_inference()
model.merge_lora_weights()
model.save(merge_lora_args.output_model_path, save_full_model=True)

Expand Down

0 comments on commit 019a361

Please sign in to comment.