Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Skip the compiled MoE autotune test on the recorded real CUDA, not the spoofable probe (#14577)

Daniel Han463e3f348779
diff --git a/tests/test_moe_autotune_under_compile.py b/tests/test_moe_autotune_under_compile.py
index 298eba98b47..a4c86331be8 100644
--- a/tests/test_moe_autotune_under_compile.py
+++ b/tests/test_moe_autotune_under_compile.py
@@ -9,6 +9,7 @@ import types
from pathlib import Path
import pytest
+from real_accelerator import has_real_cuda # tests/_shared, on sys.path via tests/conftest.py
ROOT = Path(__file__).resolve().parents[1]
@@ -109,7 +110,7 @@ sys.exit(0 if "auto-tuning completed" in text and "auto-tuning failed" not in te
"""
[email protected](not torch.cuda.is_available(), reason = "needs a CUDA GPU")
[email protected](not has_real_cuda(), reason = "needs a CUDA GPU")
def test_real_tuning_under_compile_keeps_the_tuned_configs(tmp_path):
# Real Triton autotuning launched from a compiled caller: no fallback to the default configs.
import os