Skip to content

Commit

Permalink
drop deprecated params in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
qgallouedec committed Feb 7, 2025
1 parent cf10d1a commit b968003
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions tests/test_sft_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,6 @@ def test_sft_trainer_uncorrect_data(self):
save_steps=1,
per_device_train_batch_size=2,
max_seq_length=32, # make sure there is at least 1 packed sequence
num_of_sequences=32,
packing=True,
report_to="none",
)
Expand Down Expand Up @@ -463,7 +462,6 @@ def test_sft_trainer_with_model_num_train_epochs(self):
num_train_epochs=2,
per_device_train_batch_size=2,
max_seq_length=16,
num_of_sequences=16,
packing=True,
report_to="none",
)
Expand Down Expand Up @@ -537,7 +535,6 @@ def test_sft_trainer_with_model(self):
save_steps=1,
per_device_train_batch_size=2,
max_seq_length=16,
num_of_sequences=16,
packing=True,
report_to="none",
)
Expand All @@ -562,7 +559,6 @@ def test_sft_trainer_with_model(self):
save_steps=1,
per_device_train_batch_size=2,
max_seq_length=16,
num_of_sequences=16,
packing=True,
report_to="none",
)
Expand Down
4 changes: 0 additions & 4 deletions tests/test_trainers_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,6 @@ def test_sft(self):
model_init_kwargs={"trust_remote_code": True},
dataset_kwargs={"append_concat_token": True, "skip_prepare_dataset": True},
eval_packing=True,
num_of_sequences=32,
chars_per_token=4.2,
)
trainer = SFTTrainer(model_id, args=training_args, train_dataset=dataset)
self.assertEqual(trainer.args.dataset_text_field, "dummy_text_field")
Expand All @@ -389,8 +387,6 @@ def test_sft(self):
self.assertIn("append_concat_token", trainer.args.dataset_kwargs)
self.assertEqual(trainer.args.dataset_kwargs["append_concat_token"], True)
self.assertEqual(trainer.args.eval_packing, True)
self.assertEqual(trainer.args.num_of_sequences, 32)
self.assertEqual(trainer.args.chars_per_token, 4.2)

@parameterized.expand([(False,), (True,)])
def test_xpo(self, alpha_list):
Expand Down

0 comments on commit b968003

Please sign in to comment.