Skip to content

Commit

Permalink
Use variable
Browse files Browse the repository at this point in the history
Signed-off-by: aviator19941 <avinash.sharma@amd.com>
  • Loading branch information
aviator19941 committed Oct 31, 2024
1 parent 814b254 commit ab67cf9
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions sharktank/tests/models/llama/benchmark_amdgpu_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@
IreeCompileException,
)

# run_llama = pytest.mark.skipif("not config.getoption('run-all-llama') and not config.getoption('run-8b-llama')")
# run_all_llama = pytest.mark.skipif("not config.getoption('run-all-llama')")
is_mi300x = pytest.mark.skipif("config.getoption('iree_hip_target') != 'gfx942'")
skipif_run_8b_llama = pytest.mark.skipif(
'config.getoption("run-8b-llama") and not config.getoption("run-all-llama")',
reason="Skipping largs tests when --run-8b is set.",
)


@pytest.mark.usefixtures("get_iree_flags")
Expand Down Expand Up @@ -334,10 +336,7 @@ def testBenchmark8B_fp8_Decodeposed(self):


@is_mi300x
@pytest.mark.skipif(
'config.getoption("run-8b-llama") and not config.getoption("run-all-llama")',
reason="Skipping 70B tests when --run-8b is set.",
)
@skipif_run_8b_llama
class BenchmarkLlama3_1_70B(BaseBenchmarkTest):
def setUp(self):
super().setUp()
Expand Down Expand Up @@ -623,10 +622,7 @@ def testBenchmark70B_fp8_Decodeposed(self):


@is_mi300x
@pytest.mark.skipif(
'config.getoption("run-8b-llama") and not config.getoption("run-all-llama")',
reason="Skipping 405B tests when --run-8b is set.",
)
@skipif_run_8b_llama
class BenchmarkLlama3_1_405B(BaseBenchmarkTest):
def setUp(self):
super().setUp()
Expand Down

0 comments on commit ab67cf9

Please sign in to comment.