Skip to content

Commit

Permalink
Correct test skipping
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Jan 27, 2025
1 parent aaf74bb commit efd6dbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tests/brevitas/graph/test_quantize.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ def test_layerwise_quantize_blacklist(kwargs):
K: torch.matmul(tensor, rot_mat),
'key': '0',
'expected': "<class 'torch.nn.utils.parametrize.ParametrizedQuantLinear'>"},])
@requires_pt_lt('2.2.2', 'Windows')
def test_layerwise_quantize_parametrized_modules(kwargs):
key = kwargs['key']
exp = kwargs['expected']
Expand Down Expand Up @@ -162,6 +161,8 @@ def test_remove_parametrization_entries_state_dict(kwargs):
'key': '0',
'expected': "<class 'torch.nn.utils.parametrize.ParametrizedQuantLinear'>"},])
def test_quantize_parametrized_modules(kwargs):
if platform.system() == "Windows":
pytest.skip("Skipping dynamo + windows")
key = kwargs['key']
exp = kwargs['expected']
rot_mat = kwargs['rot_mat']
Expand Down
4 changes: 2 additions & 2 deletions tests/brevitas_examples/test_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -979,8 +979,8 @@ def test_small_models_rotation_optimization_ppl(
@requires_pt_ge('2.4')
def test_small_models_rotation_optimization_layer_count(
caplog, rotation_optimization_args_layer_count_and_ppl):
if platform.system() == "Windows":
pytest.skip("Skipping dynamo + windows")
if platform.system() != "Linux":
pytest.skip("Skipping dynamo + windows/macos")
# Tolerances are stricter for this test, to ensure that it does not pass
# with non-optimized quantized perplexities
caplog.set_level(logging.INFO)
Expand Down

0 comments on commit efd6dbd

Please sign in to comment.