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
d2353954
Unverified
Commit
d2353954
authored
Nov 11, 2025
by
Adrian Abeyta
Committed by
GitHub
Nov 12, 2025
Browse files
Use FLASHINFER MLA backend when testing fp8_kv_scale_compile (#28491)
Signed-off-by:
adabeyta
<
aabeyta@redhat.com
>
parent
412e153d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
tests/compile/test_full_graph.py
tests/compile/test_full_graph.py
+16
-4
No files found.
tests/compile/test_full_graph.py
View file @
d2353954
...
@@ -10,6 +10,7 @@ import torch
...
@@ -10,6 +10,7 @@ import torch
from
tests.quantization.utils
import
is_quant_method_supported
from
tests.quantization.utils
import
is_quant_method_supported
from
vllm
import
LLM
,
SamplingParams
from
vllm
import
LLM
,
SamplingParams
from
vllm.attention.backends.registry
import
AttentionBackendEnum
from
vllm.config
import
CompilationConfig
,
CompilationMode
,
CUDAGraphMode
,
PassConfig
from
vllm.config
import
CompilationConfig
,
CompilationMode
,
CUDAGraphMode
,
PassConfig
from
vllm.platforms
import
current_platform
from
vllm.platforms
import
current_platform
from
vllm.utils.torch_utils
import
is_torch_equal_or_newer
from
vllm.utils.torch_utils
import
is_torch_equal_or_newer
...
@@ -184,13 +185,24 @@ def test_custom_compile_config(
...
@@ -184,13 +185,24 @@ def test_custom_compile_config(
[
CompilationMode
.
NONE
,
CompilationMode
.
VLLM_COMPILE
],
[
CompilationMode
.
NONE
,
CompilationMode
.
VLLM_COMPILE
],
)
)
@
pytest
.
mark
.
parametrize
(
@
pytest
.
mark
.
parametrize
(
"model"
,
"model
, backend
"
,
[
[
"Qwen/Qwen2-0.5B"
,
# Standard attention model
(
"Qwen/Qwen2-0.5B"
,
None
),
# Standard attention model
"deepseek-ai/DeepSeek-V2-Lite"
,
# MLA (Multi-head Latent Attention) model
(
"deepseek-ai/DeepSeek-V2-Lite"
,
AttentionBackendEnum
.
FLASHINFER_MLA
,
),
# MLA (Multi-head Latent Attention) model
],
],
)
)
def
test_fp8_kv_scale_compile
(
compilation_mode
:
int
,
model
:
str
):
def
test_fp8_kv_scale_compile
(
monkeypatch
:
pytest
.
MonkeyPatch
,
compilation_mode
:
int
,
model
:
str
,
backend
:
AttentionBackendEnum
|
None
,
):
if
backend
:
monkeypatch
.
setenv
(
"VLLM_ATTENTION_BACKEND"
,
backend
.
name
)
model_kwargs
=
{
model_kwargs
=
{
"quantization"
:
"fp8"
,
"quantization"
:
"fp8"
,
"kv_cache_dtype"
:
"fp8_e4m3"
,
"kv_cache_dtype"
:
"fp8_e4m3"
,
...
...
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