Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
c973ecde
Unverified
Commit
c973ecde
authored
Mar 12, 2026
by
Marc Sun
Committed by
GitHub
Mar 12, 2026
Browse files
[bnb] Skip moe + bnb test (#36896)
Signed-off-by:
Marc Sun
<
marc@huggingface.co
>
parent
e39257a5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
tests/models/quantization/test_bitsandbytes.py
tests/models/quantization/test_bitsandbytes.py
+8
-0
No files found.
tests/models/quantization/test_bitsandbytes.py
View file @
c973ecde
...
@@ -6,7 +6,9 @@ Run `pytest tests/quantization/test_bitsandbytes.py`.
...
@@ -6,7 +6,9 @@ Run `pytest tests/quantization/test_bitsandbytes.py`.
"""
"""
import
pytest
import
pytest
from
packaging.version
import
Version
from
transformers
import
BitsAndBytesConfig
from
transformers
import
BitsAndBytesConfig
from
transformers
import
__version__
as
TRANSFORMERS_VERSION
from
tests.quantization.utils
import
is_quant_method_supported
from
tests.quantization.utils
import
is_quant_method_supported
from
vllm.platforms
import
current_platform
from
vllm.platforms
import
current_platform
...
@@ -138,6 +140,12 @@ def test_load_pp_4bit_bnb_model(model_name, description) -> None:
...
@@ -138,6 +140,12 @@ def test_load_pp_4bit_bnb_model(model_name, description) -> None:
compare_two_settings
(
model_name
,
common_args
,
pp_args
)
compare_two_settings
(
model_name
,
common_args
,
pp_args
)
@
pytest
.
mark
.
skipif
(
Version
(
TRANSFORMERS_VERSION
)
>=
Version
(
"5.0.0"
),
reason
=
"Need to add support for quantizing MoE experts with bnb"
" in transformers v5. See"
" https://github.com/bitsandbytes-foundation/bitsandbytes/issues/1849"
,
)
@
pytest
.
mark
.
skipif
(
@
pytest
.
mark
.
skipif
(
not
is_quant_method_supported
(
"bitsandbytes"
),
not
is_quant_method_supported
(
"bitsandbytes"
),
reason
=
"bitsandbytes is not supported on this GPU type."
,
reason
=
"bitsandbytes is not supported on this GPU type."
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment