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 norm warps CUDA case on a real CUDA probe (#15194)

Daniel Hanf639676ca722
diff --git a/tests/test_norm_arch_warps.py b/tests/test_norm_arch_warps.py
index da0b383d2f7..a012992fef8 100644
--- a/tests/test_norm_arch_warps.py
+++ b/tests/test_norm_arch_warps.py
@@ -6,6 +6,7 @@ outputs as accurate as the default ones against an fp64 reference (forward, froz
import pytest
import torch
+from real_accelerator import has_real_cuda
from unsloth.kernels import layernorm as LN
from unsloth.kernels import rms_layernorm as RMS
@@ -111,7 +112,7 @@ def _ref(mod, X, W, b, dY):
return {"y": Y.detach(), "dx": Xd.grad, "dw": Wd.grad, "db": bd.grad}
[email protected](not torch.cuda.is_available(), reason = "needs CUDA")
[email protected](not has_real_cuda(), reason = "needs CUDA")
@pytest.mark.parametrize("mod", [RMS, LN], ids = ["rms", "ln"])
@pytest.mark.parametrize("dtype", [torch.float16, torch.bfloat16], ids = ["fp16", "bf16"])
def test_table_warps_match_default_accuracy(mod, dtype, capability, monkeypatch):