Skip to content

Commit

Permalink
enabling tests for prompt tuning (#278)
Browse files Browse the repository at this point in the history
Signed-off-by: Abhishek <maurya.abhishek@ibm.com>
Co-authored-by: Anh Uong <anh.uong@ibm.com>
  • Loading branch information
Abhishek-TAMU and anhuong authored Aug 2, 2024
1 parent 97cb42f commit d35a139
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tests/test_sft_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,6 @@ def test_parse_arguments_peft_method(job_config):
############################# Prompt Tuning Tests #############################


@pytest.mark.skip(
reason="currently inference doesn't work with transformer version 4.42.4"
)
def test_run_causallm_pt_and_inference():
"""Check if we can bootstrap and peft tune causallm models"""
with tempfile.TemporaryDirectory() as tempdir:
Expand Down Expand Up @@ -197,9 +194,6 @@ def test_run_causallm_pt_and_inference():
assert "### Text: @NortonSupport Thanks much.\n\n### Label:" in output_inference


@pytest.mark.skip(
reason="currently inference doesn't work with transformer version 4.42.4"
)
def test_run_causallm_pt_and_inference_with_formatting_data():
"""Check if we can bootstrap and peft tune causallm models
This test needs the trainer to format data to a single sequence internally.
Expand Down Expand Up @@ -238,9 +232,6 @@ def test_run_causallm_pt_and_inference_with_formatting_data():
assert "### Text: @NortonSupport Thanks much.\n\n### Label:" in output_inference


@pytest.mark.skip(
reason="currently inference doesn't work with transformer version 4.42.4"
)
def test_run_causallm_pt_and_inference_JSON_file_formatter():
"""Check if we can bootstrap and peft tune causallm models with JSON train file format"""
with tempfile.TemporaryDirectory() as tempdir:
Expand Down

0 comments on commit d35a139

Please sign in to comment.