Skip to content

Run frontier MoE models on hardware you already own — pure C, zero deps, experts streamed from disk. Tiny engine, immense model. 🐦

C

test(loader): account for pinned CUDA group API

ZacharyZcR9f4a8d1726df
diff --git a/c/tests/test_backend_loader.py b/c/tests/test_backend_loader.py
index 60ef934a..452f343b 100644
--- a/c/tests/test_backend_loader.py
+++ b/c/tests/test_backend_loader.py
@@ -874,7 +874,7 @@ class LoaderStubFixtureTest(unittest.TestCase):
cls.fixture = None
def test_abi_is_derived_from_the_loader_source(self):
- """47 mandatory + 3 optional, parsed from backend_loader.c.
+ """47 mandatory + 4 optional, parsed from backend_loader.c.
The counts are a deliberate tripwire: adding a RESOLVE to the loader
widens the ABI every Windows DLL must satisfy, and that should be a
@@ -885,8 +885,8 @@ class LoaderStubFixtureTest(unittest.TestCase):
"""
f = self.fixture
self.assertEqual(len(f.mandatory), 47)
- self.assertEqual(len(f.optional), 3)
- self.assertEqual(len(f.exports), 50)
+ self.assertEqual(len(f.optional), 4)
+ self.assertEqual(len(f.exports), 51)
self.assertEqual(len(f.exports), len(f.mandatory) + len(f.optional))
self.assertIn("coli_cuda_init", f.mandatory)
self.assertIn("coli_cuda_e8_set_grid", f.optional)
@@ -894,6 +894,8 @@ class LoaderStubFixtureTest(unittest.TestCase):
self.assertIn("coli_cuda_attention_project_ragged", f.mandatory)
# fp8_set_lut: fmt=8 e4m3 dense/expert kernels (#817).
self.assertIn("coli_cuda_fp8_set_lut", f.optional)
+ # expert_group_pinned: old DLLs remain usable outside SPEC_PIN (#689).
+ self.assertIn("coli_cuda_expert_group_pinned", f.optional)
def test_both_runtimes_exist_with_the_production_basename(self):
"""Same basename, different directories — the conflict precondition."""