Run frontier MoE models on hardware you already own — pure C, zero deps, experts streamed from disk. Tiny engine, immense model. 🐦
C
fix(tools): label Windows 11 correctly in datapoint machine_info
ZacharyZcRffa4c3b36867
diff --git a/c/tests/test_datapoint.py b/c/tests/test_datapoint.pyindex 8c00eafe..dfa8f3dd 100644--- a/c/tests/test_datapoint.py+++ b/c/tests/test_datapoint.py@@ -42,6 +42,19 @@ class MachineInfoWin32Test(unittest.TestCase):self.assertEqual(info["ram"], "128 GB")self.assertTrue(info["os"].startswith("Windows"))+ def test_win32_build_number_disambiguates_windows_11(self):+ # platform.release() says "10" on Windows 11; build >= 22000 is the tell+ import platform as plat+ from unittest import mock as m2+ with m2.patch.object(plat, "release", return_value="10"), \+ m2.patch.object(plat, "version", return_value="10.0.26200"):+ info = self._win32_info(memstatus_ok=True)+ self.assertTrue(info["os"].startswith("Windows 11"), info["os"])+ with m2.patch.object(plat, "release", return_value="10"), \+ m2.patch.object(plat, "version", return_value="10.0.19045"):+ info = self._win32_info(memstatus_ok=True)+ self.assertTrue(info["os"].startswith("Windows 10"), info["os"])+def test_win32_probe_failure_falls_back(self):"""A failed probe keeps the old conservative default rather than 0.0 —an eviction write sized from 0 GB would silently evict nothing."""diff --git a/c/tools/datapoint.py b/c/tools/datapoint.pyindex 92cdba82..eba3a39c 100644--- a/c/tools/datapoint.py+++ b/c/tools/datapoint.py@@ -126,7 +126,18 @@ def machine_info():winreg.CloseKey(k)except Exception:pass- info["os"] = f"Windows {platform.release()} {platform.version()}"+ # platform.release() says "10" on Windows 11: Microsoft never moved the+ # internal version off 10.0, so the BUILD number is the only tell —+ # 22000 and up is Windows 11 (#1042 follow-up: every Win11 datapoint in+ # the tracker was being filed as Windows 10).+ release = platform.release()+ try:+ build = int(platform.version().split(".")[2])+ if release == "10" and build >= 22000:+ release = "11"+ except (IndexError, ValueError):+ pass+ info["os"] = f"Windows {release} {platform.version()}"else:info["cpu"] = platform.processor() or "?"info["ram"] = "?"