Skip to content

Commit

Permalink
disable py3.7 tests for mixtral
Browse files Browse the repository at this point in the history
  • Loading branch information
dpower4 committed Dec 19, 2024
1 parent 58c5de9 commit 0e4e9c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/benchmarks/model_benchmarks/test_pytorch_mixtral.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

@decorator.cuda_test
@decorator.pytorch_test
@decorator.python_eol_test
def test_pytorch_mixtral_8x7b():
"""Test pytorch-mixtral-8x7b benchmark for fp16 train and inference."""
context = BenchmarkRegistry.create_benchmark_context(
Expand Down
2 changes: 2 additions & 0 deletions tests/helper/decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"""Unittest decorator helpers."""

import os
import sys
import unittest
import functools
from pathlib import Path
Expand All @@ -12,6 +13,7 @@
rocm_test = unittest.skipIf(os.environ.get('SB_TEST_ROCM', '0') == '0', 'Skip ROCm tests.')

pytorch_test = unittest.skipIf(os.environ.get('SB_TEST_PYTORCH', '1') == '0', 'Skip PyTorch tests.')
python_eol_test = unittest.skipIf(sys.version_info < (3, 8), 'Skip tests for Python 3.7 or lower.')
directx_test = unittest.skipIf(os.environ.get('SB_TEST_DIRECTX', '0') == '0', 'Skip DirectX tests.')


Expand Down

0 comments on commit 0e4e9c6

Please sign in to comment.