[Bugfix][Tests] Stabilize B12X linear kernel checks (#54996)

Signed-off-by: Luke Alonso <lalonso@gmail.com>
This commit is contained in:
Luke Alonso
2026-09-02 18:46:08 +00:00
committed by GitHub
parent 9b38e3ad53
commit 1945a94575
2 changed files with 9 additions and 2 deletions
@@ -785,6 +785,11 @@ def test_b12x_backend_preserves_w4a16_fallback(monkeypatch) -> None:
monkeypatch.setattr(linear_mod.current_platform, "_enum", PlatformEnum.CUDA)
monkeypatch.setattr(linear_mod, "_get_linear_backend", lambda: "b12x")
monkeypatch.setitem(
linear_mod._POSSIBLE_NVFP4_KERNELS,
PlatformEnum.CUDA,
[B12xNvFp4LinearKernel, MarlinNvFp4LinearKernel],
)
monkeypatch.setattr(
MarlinNvFp4LinearKernel,
"is_supported",