File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -412,6 +412,7 @@ def test_parse_arguments(job_config):
412412 _ ,
413413 _ ,
414414 _ ,
415+ _ ,
415416 ) = sft_trainer .parse_arguments (parser , job_config_copy )
416417 assert str (model_args .torch_dtype ) == "torch.bfloat16"
417418 assert data_args .dataset_text_field == "output"
@@ -438,6 +439,7 @@ def test_parse_arguments_defaults(job_config):
438439 _ ,
439440 _ ,
440441 _ ,
442+ _ ,
441443 ) = sft_trainer .parse_arguments (parser , job_config_defaults )
442444 assert str (model_args .torch_dtype ) == "torch.bfloat16"
443445 assert model_args .use_flash_attn is False
@@ -461,6 +463,7 @@ def test_parse_arguments_peft_method(job_config):
461463 _ ,
462464 _ ,
463465 _ ,
466+ _ ,
464467 ) = sft_trainer .parse_arguments (parser , job_config_pt )
465468
466469 assert isinstance (tune_config , peft_config .PromptTuningConfig )
@@ -480,6 +483,7 @@ def test_parse_arguments_peft_method(job_config):
480483 _ ,
481484 _ ,
482485 _ ,
486+ _ ,
483487 ) = sft_trainer .parse_arguments (parser , job_config_lora )
484488 assert isinstance (tune_config , peft_config .LoraConfig )
485489 assert not tune_config .target_modules
You can’t perform that action at this time.
0 commit comments