Skip to content

Commit

Permalink
Merge branch 'mm_tests' of github.com:SalmanMohammadi/torchtune into …
Browse files Browse the repository at this point in the history
…mm_tests
  • Loading branch information
SalmanMohammadi committed Nov 11, 2024
2 parents e3f8178 + c3246c0 commit acd6763
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/recipes/test_eleuther_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,6 @@


class TestEleutherEval:
@pytest.mark.parametrize(
"eval_name, expected_acc, bsz",
[
("truthfulqa_gen", 0.1, 4),
("truthfulqa_gen", 0.1, 1),
("truthfulqa_mc2", 0.4, 4),
],
)
@pytest.fixture
def hide_correct_version_number(self, monkeypatch):
import importlib.metadata
Expand All @@ -55,6 +47,14 @@ def expected_vision_acc(self):
"Physics": 0.0,
}

@pytest.mark.parametrize(
"eval_name, expected_acc, bsz",
[
("truthfulqa_gen", 0.1, 4),
("truthfulqa_gen", 0.1, 1),
("truthfulqa_mc2", 0.4, 4),
],
)
@pytest.mark.integration_test
def test_torchtune_checkpoint_eval_results(
self, caplog, monkeypatch, tmpdir, eval_name, expected_acc, bsz
Expand Down

0 comments on commit acd6763

Please sign in to comment.