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: skip the fmt=5 codec tests where numpy is absent

ZacharyZcR7291fd19acb5
diff --git a/c/tests/test_iq3_pack.py b/c/tests/test_iq3_pack.py
index fd0a10af..c2f17fdc 100644
--- a/c/tests/test_iq3_pack.py
+++ b/c/tests/test_iq3_pack.py
@@ -9,10 +9,17 @@ import os
import sys
import unittest
-import numpy as np
+# The runtime path is dependency-free by design and CI keeps it that way, so the
+# offline-tooling tests skip rather than fail where numpy is absent.
+np = None
+P = None
+try:
+ import numpy as np
-sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "tools"))
-import iq3_pack as P # noqa: E402
+ sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "tools"))
+ import iq3_pack as P
+except ImportError: # pragma: no cover - exercised only on dependency-free CI
+ pass
def ref_decode(packed, K):
@@ -43,6 +50,7 @@ def ref_decode(packed, K):
return out
[email protected](P is None, "numpy not available (offline-tooling test)")
class TestIq3Pack(unittest.TestCase):
def setUp(self):
np.random.seed(4242)