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

fix(olmoe): limit low-RAM floor to macOS

Cometbuster49694c408666ba5e
diff --git a/c/olmoe.c b/c/olmoe.c
index b436d213..f7621f68 100644
--- a/c/olmoe.c
+++ b/c/olmoe.c
@@ -233,7 +233,11 @@ static double mem_available_gb(void) {
double total = 0, avail = 0;
compat_meminfo_gb(&total, &avail);
static int warned = 0;
- if (avail <= 0.0 || (total > 0.0 && avail < total * 0.02)) {
+ if (avail <= 0.0
+#ifdef __APPLE__
+ || (total > 0.0 && avail < total * 0.02)
+#endif
+ ) {
if (!warned) {
warned = 1;
if (total > 0.0) {