Skip to content

Commit 7636fce

Browse files
authored
Merge pull request #10 from foundation-model-stack/fix_parse_args
fix : the way args are passed
2 parents 49223e8 + cf05bf3 commit 7636fce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tuning/sft_trainer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ def main(**kwargs):
167167
peft_config.PromptTuningConfig))
168168
parser.add_argument('--peft_method', type=str.lower, choices=['pt', 'lora', None, 'none'], default="pt")
169169
model_args, data_args, training_args, lora_config, prompt_tuning_config, peft_method, _ = parser.parse_args_into_dataclasses(return_remaining_strings=True)
170-
if peft_method =="lora":
170+
if peft_method.peft_method =="lora":
171171
tune_config=lora_config
172-
elif peft_method =="pt":
172+
elif peft_method.peft_method =="pt":
173173
tune_config=prompt_tuning_config
174174
else:
175175
tune_config=None

0 commit comments

Comments
 (0)