summaryrefslogtreecommitdiff
path: root/tests/test_ref.py
diff options
context:
space:
mode:
authorjdj <jdj@kunix.org>2026-10-29 11:50:22 -0700
committerjdj <jdj@kunix.org>2026-10-29 11:50:22 -0700
commita0ddfb1b2f6242fac72f98e8d6ee1888e79667f3 (patch)
treea6e19658bae8466cb177d2ade41ad9176d23c2f8 /tests/test_ref.py
parent2a02fecc86a87a6f1639b80da932b1f9daed8f17 (diff)
downloadvolta-train-kernels-a0ddfb1b2f6242fac72f98e8d6ee1888e79667f3.tar.gz
volta-train-kernels-a0ddfb1b2f6242fac72f98e8d6ee1888e79667f3.zip
Validate offsets and canon_rope_attention shapes; default test device cuda:0 with safe skip; narrow README claimsHEADmaster
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/test_ref.py')
-rw-r--r--tests/test_ref.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_ref.py b/tests/test_ref.py
index 5024971..c9fd93d 100644
--- a/tests/test_ref.py
+++ b/tests/test_ref.py
@@ -19,5 +19,10 @@ class TestReference(unittest.TestCase):
self.assertLess(((m[name] - want).norm() / want.norm()).item(), 1e-12, name)
+class TestDeviceSelection(unittest.TestCase):
+ def test_missing_device_is_a_skip_reason_not_an_error(self):
+ self.assertIsInstance(usable(torch.device("cuda:99")), str)
+
+
if __name__ == "__main__":
unittest.main()