Skip to content

Commit 9fe767d

Browse files
committed
Refactor import logic
Signed-off-by: sstamenk <[email protected]>
1 parent a39949a commit 9fe767d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/models/quantization/test_bitsandbytes.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@
1010

1111
from tests.quantization.utils import is_quant_method_supported
1212
from vllm.platforms import current_platform
13-
from vllm.platforms.rocm import on_gfx9
1413

1514
from ...utils import compare_two_settings, multi_gpu_test
1615
from ..utils import check_embeddings_close, check_logprobs_close
1716

18-
pytestmark = pytest.mark.skipif(
19-
current_platform.is_rocm() and on_gfx9(),
20-
reason="bitsandbytes quantization not supported on gfx9 (warp size 64 limitation)",
17+
if current_platform.is_rocm():
18+
from vllm.platforms.rocm import on_gfx9
19+
pytestmark = pytest.mark.skipif(
20+
on_gfx9(),
21+
reason="bitsandbytes quantization not supported on gfx9 (warp size 64 limitation)",
2122
)
2223

2324
models_4bit_to_test = [

0 commit comments

Comments
 (0)