Skip to content

Commit 8afcd0f

Browse files
authored
[Bugfix] Fix broken kernel test due to missing rename for v1 Triton backend (#15282)
Signed-off-by: Isotr0py <[email protected]>
1 parent 91ca929 commit 8afcd0f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/kernels/test_attention_selector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def test_env(
4949
RocmPlatform()):
5050
backend = get_attn_backend(16, torch.float16, torch.float16,
5151
16, False)
52-
EXPECTED = "ROCM_ATTN_VLLM_V1" if use_v1 else "ROCM_FLASH"
52+
EXPECTED = "TRITON_ATTN_VLLM_V1" if use_v1 else "ROCM_FLASH"
5353
assert backend.get_name() == EXPECTED
5454
elif device == "openvino":
5555
with patch("vllm.attention.selector.current_platform",

tests/kernels/test_rocm_attention_selector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def test_selector(monkeypatch: pytest.MonkeyPatch):
2626
# Test standard ROCm attention
2727
backend = get_attn_backend(16, torch.float16, torch.float16, 16, False)
2828
assert (backend.get_name() == "ROCM_FLASH"
29-
or backend.get_name() == "ROCM_ATTN_VLLM_V1")
29+
or backend.get_name() == "TRITON_ATTN_VLLM_V1")
3030

3131
# mla test for deepseek related
3232
backend = get_attn_backend(576, torch.bfloat16, "auto", 16, False,

0 commit comments

Comments
 (0)