Run frontier MoE models on hardware you already own — pure C, zero deps, experts streamed from disk. Tiny engine, immense model. 🐦
C
fix(warnings): silence two -Wall/-Wextra warnings on the MinGW build
woolcoxm411f237f9403
diff --git a/c/compat.h b/c/compat.hindex 82de8b6c..78b52cb6 100644--- a/c/compat.h+++ b/c/compat.h@@ -237,7 +237,9 @@ static inline int compat_rename(const char *old, const char *new){/* --- rss_gb: getrusage -> GetProcessMemoryInfo ---* ru_maxrss in KB (come Linux): rss_gb() divide per 1e6 → GB corretti. */#include <psapi.h>-#pragma comment(lib, "psapi.lib")+#ifdef _MSC_VER+#pragma comment(lib, "psapi.lib") /* MSVC: link psapi; MinGW/GCC uses -lpsapi */+#endifstruct rusage { long ru_maxrss; };#define RUSAGE_SELF 0static inline int getrusage(int who, struct rusage *r){diff --git a/c/glm.c b/c/glm.cindex 30d970ab..40a16907 100644--- a/c/glm.c+++ b/c/glm.c@@ -1207,7 +1207,9 @@ static int g_disk_split=0; /* DISK_SPLIT=1: contatori che spezzano i DISK LOAD (* 10x (#82) — hence per-region mbind here and nothing else. Raw syscall, no libnuma* dependency; MPOL_MF_MOVE migrates pages of reused heap chunks too. Linux-only,* silent no-op elsewhere or on single-node hosts. */-static int g_numa_nodes=0;+#ifdef __linux__+static int g_numa_nodes=0; /* only touched under __linux__; off-Linux NUMA is a no-op */+#endifstatic void numa_slab_bind(void *p, size_t n){#ifdef __linux__if(g_numa_nodes<2 || !p || !n) return;