Skip to content

Commit

Permalink
Update load from local
Browse files Browse the repository at this point in the history
  • Loading branch information
rparundekar committed Feb 19, 2024
1 parent e9519c8 commit d62ca97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aihero/research/finetuning/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def train(self) -> None:
if self.training_job.peft:
lora_config = LoraConfig(**self.training_job.peft.model_dump())
model = get_peft_model(self.model, lora_config)
if self.training_job.peft.bf16:
if self.training_job.sft.bf16:
peft_module_casting_to_bf16(model, self.training_job.peft.model_dump())
model.print_trainable_parameters()
self.training_job.sft.peft_config = lora_config
Expand Down

0 comments on commit d62ca97

Please sign in to comment.