Skip to content

Commit

Permalink
Update merge_lora_params.py (#8514)
Browse files Browse the repository at this point in the history
* Update merge_lora_params.py

* Update merge_lora_params.py

* Update merge_lora_params.py
  • Loading branch information
Galaxy1458 authored May 31, 2024
1 parent 92aa9f1 commit 60c6615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llm/merge_lora_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def merge():
model = AutoModelForCausalLM.from_pretrained(
lora_config.base_model_name_or_path,
config=config,
low_cpu_mem_usage=True,
low_cpu_mem_usage=args.low_gpu_mem,
)
lora_config.merge_weights = True
model = LoRAModel.from_pretrained(model=model, lora_path=args.lora_path, lora_config=lora_config)
Expand Down

0 comments on commit 60c6615

Please sign in to comment.