Skip to content

Commit

Permalink
fix lora sharding v2 (#9300)
Browse files Browse the repository at this point in the history
  • Loading branch information
lugimzzz authored Oct 22, 2024
1 parent 51f6a4b commit 3443b9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llm/run_finetune.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,8 @@ def compute_metrics_do_generation(eval_preds):
gen_args=gen_args,
data_args=data_args,
)
trainable_parameters = [p for p in model.parameters() if not p.stop_gradient]
trainer.set_optimizer_grouped_parameters(trainable_parameters)

# Train
if training_args.do_train:
Expand Down

0 comments on commit 3443b9f

Please # to comment.