Skip to content

Commit e3e7525

Browse files
committed
fmt tests
Signed-off-by: Will Johnson <mwjohnson728@gmail.com>
1 parent 42c420c commit e3e7525

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

tests/test_sft_trainer.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,7 +1468,12 @@ def test_run_moe_lora_and_inference(dataset_path):
14681468
train_args.output_dir = tempdir
14691469
lora_args = copy.deepcopy(PEFT_LORA_ARGS)
14701470
lora_args.r = 16
1471-
lora_args.target_modules = ["q_proj", "v_proj", "o_proj", "k_proj"] # Router doesn't work with LoRA test inference
1471+
lora_args.target_modules = [
1472+
"q_proj",
1473+
"v_proj",
1474+
"o_proj",
1475+
"k_proj",
1476+
] # Router doesn't work with LoRA test inference
14721477
fast_moe_config = FastMoeConfig(fast_moe=FastMoe(ep_degree=False))
14731478
sft_trainer.train(
14741479
model_args,
@@ -1481,7 +1486,7 @@ def test_run_moe_lora_and_inference(dataset_path):
14811486
checkpoint_path=os.path.join(
14821487
_get_checkpoint_path(tempdir), "hf_converted_checkpoint"
14831488
),
1484-
base_model_name_or_path="ibm-granite/granite-3.1-1b-a400m-base"
1489+
base_model_name_or_path="ibm-granite/granite-3.1-1b-a400m-base",
14851490
)
14861491

14871492

0 commit comments

Comments
 (0)