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

tests: the loader ABI has 7 optional symbols now; dashboard phase sums may round to zero

JustVuggaf1cbb9199b0
diff --git a/c/tests/test_backend_loader.py b/c/tests/test_backend_loader.py
index b79fefac..0c2e8f87 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 + 6 optional, parsed from backend_loader.c.
+ """47 mandatory + 7 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,7 +885,7 @@ class LoaderStubFixtureTest(unittest.TestCase):
"""
f = self.fixture
self.assertEqual(len(f.mandatory), 47)
- self.assertEqual(len(f.optional), 6)
+ self.assertEqual(len(f.optional), 7) # +matmul_mxfp4 (kimi_k3 via the DLL, #1405)
self.assertEqual(len(f.exports), 53)
self.assertEqual(len(f.exports), len(f.mandatory) + len(f.optional))
self.assertIn("coli_cuda_init", f.mandatory)
diff --git a/c/tests/test_glm53_dashboard.py b/c/tests/test_glm53_dashboard.py
index 94d1bbe6..d0646201 100644
--- a/c/tests/test_glm53_dashboard.py
+++ b/c/tests/test_glm53_dashboard.py
@@ -109,7 +109,12 @@ class Glm53DashboardTest(unittest.TestCase):
self.assertEqual(t["forwards"], 3, "one forward per generated token")
self.assertEqual(t["expert_wait_s"], 0.0)
phases = t["expert_disk_s"] + t["expert_matmul_s"] + t["attention_s"] + t["lm_head_s"]
- self.assertGreater(phases, 0.0)
+ # Not > 0: PROF prints milliseconds and a 3-token turn on a tiny model
+ # finishes under a millisecond on a fast runner, so every phase rounds
+ # to 0.000 and the sum is legitimately zero (CI, 2026-09-10). What the
+ # contract holds is that phases never exceed the wall.
+ self.assertGreaterEqual(phases, 0.0)
+ self.assertGreater(t["wall_s"], 0.0)
self.assertLessEqual(phases, t["wall_s"] * 1.05 + 0.01,
"phase timings exceed the wall clock: a timer is double-counting")
diff --git a/c/tests/test_qwen36_dashboard.py b/c/tests/test_qwen36_dashboard.py
index 4daecd47..f681b433 100644
--- a/c/tests/test_qwen36_dashboard.py
+++ b/c/tests/test_qwen36_dashboard.py
@@ -114,7 +114,12 @@ class Qwen36DashboardTest(unittest.TestCase):
self.assertEqual(t["completion_tokens"], 3)
self.assertEqual(t["forwards"], 3, "prefill plus one forward per token after the first")
phases = t["expert_disk_s"] + t["expert_matmul_s"] + t["attention_s"] + t["lm_head_s"]
- self.assertGreater(phases, 0.0)
+ # Not > 0: PROF prints milliseconds and a 3-token turn on a tiny model
+ # finishes under a millisecond on a fast runner, so every phase rounds
+ # to 0.000 and the sum is legitimately zero (CI, 2026-09-10). What the
+ # contract holds is that phases never exceed the wall.
+ self.assertGreaterEqual(phases, 0.0)
+ self.assertGreater(t["wall_s"], 0.0)
self.assertLessEqual(phases, t["wall_s"] * 1.05 + 0.01,
"phase timings exceed the wall clock: a timer is double-counting")