Run frontier MoE models on hardware you already own — pure C, zero deps, experts streamed from disk. Tiny engine, immense model. 🐦
C
test: run tuner fixtures portably
ZacharyZcRa89520376a61
diff --git a/c/autotune.py b/c/autotune.pyindex 94c62e04..40d3f7f9 100644--- a/c/autotune.py+++ b/c/autotune.py@@ -14,6 +14,7 @@ import platformimport reimport statisticsimport subprocess+import sysimport tempfileimport timefrom pathlib import Path@@ -176,6 +177,8 @@ def parse_replay(output: str) -> dict:def _run(command: list[str], env: dict, timeout: int) -> subprocess.CompletedProcess:+ if Path(command[0]).suffix.lower() == ".py":+ command = [sys.executable, *command]return subprocess.run(command, env=env, text=True, capture_output=True, timeout=timeout)diff --git a/c/tests/test_autotune.py b/c/tests/test_autotune.pyindex 8e7b1845..222e9d80 100644--- a/c/tests/test_autotune.py+++ b/c/tests/test_autotune.py@@ -95,7 +95,7 @@ class AutotuneUnitTest(unittest.TestCase):class AutotuneIntegrationTest(unittest.TestCase):def test_fixed_replay_selects_and_persists_winner(self):with tempfile.TemporaryDirectory() as directory:- engine = Path(directory) / "fake-engine"+ engine = Path(directory) / "fake-engine.py"engine.write_text("#!/usr/bin/env python3\n""import os\n"@@ -125,7 +125,7 @@ class AutotuneIntegrationTest(unittest.TestCase):def test_reverse_confirmation_rejects_warmup_drift(self):with tempfile.TemporaryDirectory() as directory:- engine = Path(directory) / "drifting-engine"+ engine = Path(directory) / "drifting-engine.py"counter = Path(directory) / "counter"engine.write_text("#!/usr/bin/env python3\n"