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

fixup: the Makefile.deepseek-v4 internal gate never got the Darwin arm

JustVugg25bd8b76c6f5
diff --git a/c/Makefile.deepseek-v4 b/c/Makefile.deepseek-v4
index 876cdf03..198d9462 100644
--- a/c/Makefile.deepseek-v4
+++ b/c/Makefile.deepseek-v4
@@ -1,6 +1,8 @@
-# DeepSeek V4 amalgamation build — x86-64/aarch64 Linux and Windows/MSYS2 only.
-# Uses GNU ld -Wl,--wrap and gcc -march; do not invoke from macOS/PowerPC
-# `make check` (the parent Makefile gates COLI_V4_SUPPORTED).
+# DeepSeek V4 amalgamation build — x86-64/aarch64 Linux, Windows/MSYS2, and
+# arm64 macOS. (An earlier version of this header claimed GNU-ld --wrap as a
+# hard dependency; nothing here has used --wrap for a while, and macOS
+# portability rides compat.h: posix_fadvise -> F_RDADVISE, O_DIRECT ->
+# F_NOCACHE.) The parent Makefile gates COLI_V4_SUPPORTED.
ifeq ($(OS),Windows_NT)
IS_WIN := 1
@@ -19,10 +21,14 @@ else ifeq ($(UNAME_S),Linux)
ifneq (,$(filter x86_64 amd64 aarch64 arm64,$(UNAME_M)))
COLI_V4_OK := 1
endif
+else ifeq ($(UNAME_S),Darwin)
+ifneq (,$(filter arm64,$(UNAME_M)))
+COLI_V4_OK := 1
+endif
endif
ifneq ($(COLI_V4_OK),1)
-$(error Makefile.deepseek-v4 supports only x86-64/aarch64 Linux and Windows/MSYS2)
+$(error Makefile.deepseek-v4 supports x86-64/aarch64 Linux, Windows/MSYS2, and arm64 macOS)
endif
ifneq ($(IS_WIN),)