Skip to content

Commit 790b58a

Browse files
committed
refactor: remove implicit redundant checks that obfuscate installation errors in test collection
1 parent 1332439 commit 790b58a

File tree

15 files changed

+21
-50
lines changed

15 files changed

+21
-50
lines changed

tests/algorithms/test_combinations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def prepare_smash_config(self, smash_config: SmashConfig, device: str) -> None:
6060
("flux_tiny_random", ["fora", "torch_compile"], False, 'cmmd'),
6161
("flux_tiny_random", ["fora", "stable_fast"], False, 'cmmd'),
6262
("tiny_janus", ["hqq", "torch_compile"], False, 'cmmd'),
63-
pytest.param("flux_tiny", ["fora", "flash_attn3", "torch_compile"], False, 'cmmd', marks=pytest.mark.high_vram),
63+
pytest.param("flux_tiny", ["fora", "flash_attn3", "torch_compile"], False, 'cmmd', marks=pytest.mark.high_gpu),
6464
],
6565
indirect=["model_fixture"],
6666
ids=lambda val: "+".join(val) if isinstance(val, list) else None,

tests/algorithms/testers/cgenerate.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
import pytest
2+
13
from pruna import PrunaModel
24
from pruna.algorithms.c_translate import CGenerate
35

46
from .base_tester import AlgorithmTesterBase
57

68

9+
@pytest.mark.requires_whisper
710
class TestCGenerate(AlgorithmTesterBase):
811
"""Test the c_generate algorithm."""
912

tests/algorithms/testers/flash_attn3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from .base_tester import AlgorithmTesterBase
66

77

8-
@pytest.mark.high_vram
8+
@pytest.mark.high_gpu
99
class TestFlashAttn3(AlgorithmTesterBase):
1010
"""Test the flash attention 3 kernel."""
1111

tests/algorithms/testers/gptq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
@pytest.mark.slow
10-
@pytest.mark.high_vram
10+
@pytest.mark.high_gpu
1111
@pytest.mark.requires_gptq
1212
class TestGPTQ(AlgorithmTesterBase):
1313
"""Test the GPTQ quantizer."""

tests/algorithms/testers/ipex_llm.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from .base_tester import AlgorithmTesterBase
66

77

8-
@pytest.mark.high_cpu
98
@pytest.mark.requires_intel
109
class TestIPEXLLM(AlgorithmTesterBase):
1110
"""Test the IPEX LLM algorithm."""

tests/algorithms/testers/moe_kernel_tuner.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ def post_smash_hook(self, model: PrunaModel) -> None:
3636

3737
def _resolve_hf_cache_config_path(self) -> Path:
3838
"""Read the saved artifact and compute the expected HF cache config path."""
39-
4039
imported_packages = MoeKernelTuner().import_algorithm_packages()
4140

4241
smash_cfg = SmashConfig()

tests/algorithms/testers/sage_attn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from .base_tester import AlgorithmTesterBase
66

77

8-
@pytest.mark.high_vram
8+
@pytest.mark.high_gpu
99
class TestSageAttn(AlgorithmTesterBase):
1010
"""Test the sage attention kernel."""
1111

tests/algorithms/testers/tti_inplace_perp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def assert_no_nan_values(module: Any) -> None:
2727

2828
# Our nightlies machine does not support efficient attention mechanisms and causes OOM errors with this test.
2929
# This test do pass on modern architectures.
30-
@pytest.mark.high_vram
30+
@pytest.mark.high_gpu
3131
@pytest.mark.slow
3232
class TestTTIInPlacePerp(AlgorithmTesterBase):
3333
"""Test the TTI InPlace Perp recovery algorithm."""

tests/algorithms/testers/tti_lora.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def assert_no_nan_values(module: Any) -> None:
2727

2828
# Our nightlies machine does not support efficient attention mechanisms and causes OOM errors with this test.
2929
# This test do pass on modern architectures.
30-
@pytest.mark.high_vram
30+
@pytest.mark.high_gpu
3131
@pytest.mark.slow
3232
class TestTTILoRA(AlgorithmTesterBase):
3333
"""Test the TTI LoRA recovery algorithm."""

tests/algorithms/testers/tti_perp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def assert_no_nan_values(module: Any) -> None:
2626

2727

2828
@pytest.mark.slow
29-
@pytest.mark.high_vram
29+
@pytest.mark.high_gpu
3030
class TestTTIPerp(AlgorithmTesterBase):
3131
"""Test the TTI Perp recovery algorithm."""
3232

0 commit comments

Comments
 (0)