From a0ddfb1b2f6242fac72f98e8d6ee1888e79667f3 Mon Sep 17 00:00:00 2001 From: jdj Date: Thu, 29 Oct 2026 11:50:22 -0700 Subject: Validate offsets and canon_rope_attention shapes; default test device cuda:0 with safe skip; narrow README claims Co-Authored-By: Claude Opus 5.5 --- tests/test_ref.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/test_ref.py') 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() -- cgit v1.2.3