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.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Gate the fused decode RoPE tests on a real CUDA device, not the spoofable probe (#14661)
Daniel Hand4c1f462cd1a
diff --git a/tests/test_decode_fused_rope.py b/tests/test_decode_fused_rope.pyindex 3f56554554e..fff5ea78ab1 100644--- a/tests/test_decode_fused_rope.py+++ b/tests/test_decode_fused_rope.py@@ -6,8 +6,9 @@ unfused decode op sequence they replace, both against an fp64 reference, plus thimport pytestimport torch+from real_accelerator import has_real_cuda # tests/_shared, on sys.path via tests/conftest.py-if not torch.cuda.is_available():+if not has_real_cuda():pytest.skip("needs a CUDA device", allow_module_level = True)pytest.importorskip("triton")@@ -227,7 +228,9 @@ def test_decode_split_sync_and_mixed_devices(monkeypatch):assert len(calls) == 0[email protected](torch.cuda.device_count() < 2, reason = "needs two GPUs")+ not has_real_cuda() or torch.cuda.device_count() < 2, reason = "needs two real GPUs"+)def test_decode_rope_on_another_device_orders_with_the_copy():# Rotate on GPU 1 with GPU 0 current, then copy to GPU 0: the copy must see rotated values.cos, sin = _table(4096, 128, torch.bfloat16)