Skip to content

Commit

Permalink
Merge pull request hiyouga#3201 from kno10/patch-1 and fix hiyouga#3200
Browse files Browse the repository at this point in the history
Pass additional_target to unsloth
  • Loading branch information
hiyouga committed Apr 9, 2024
2 parents 7f6c248 + 98bc97d commit caf8373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/llmtuner/model/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ def init_adapter(
"lora_alpha": finetuning_args.lora_alpha,
"lora_dropout": finetuning_args.lora_dropout,
"use_rslora": finetuning_args.use_rslora,
"modules_to_save": finetuning_args.additional_target,
}

if model_args.use_unsloth:
Expand All @@ -150,7 +151,6 @@ def init_adapter(
lora_config = LoraConfig(
task_type=TaskType.CAUSAL_LM,
inference_mode=False,
modules_to_save=finetuning_args.additional_target,
use_dora=finetuning_args.use_dora,
**peft_kwargs,
)
Expand Down

0 comments on commit caf8373

Please sign in to comment.