Hourly ·
Gemma 4 26B Runs on 2GB RAM: Open-Source Engine Brings Frontier AI to Any Mac
A solo developer built TurboFieldfare, a custom Swift and Metal runtime that runs Google's 26-billion-parameter Gemma 4 model in just ~2 GB of RAM on any Apple Silicon Mac, even the 8 GB MacBook Air. The open-source project hit 767 points on Hacker News.
A solo developer has built an open-source engine that runs Google's Gemma 4 — a 26-billion-parameter model — in roughly 2 GB of RAM on any Apple Silicon Mac, including the base 8 GB MacBook Air.
The project, called TurboFieldfare, is a custom Swift and Metal runtime that keeps only the model's shared 1.35 GB core and FP16 KV cache in memory. Instead of loading the full 14.3 GB checkpoint into RAM, it streams only the expert weights needed for each token from SSD on demand.
The approach is model-specific rather than a wrapper around existing frameworks like MLX or llama.cpp. The developer, known on GitHub as drumih, wrote the entire runtime — streaming installer, CLI, native Mac app, and Metal compute kernels — in Swift 6.2 targeting macOS 26 and Metal 4.
On an 8 GB M2 MacBook Air, the engine achieves 5.1–6.3 tokens per second during decode. On a 24 GB M5 Pro, that jumps to 31–35 tok/s. The developer's experiment log summarizes 103 measured results across kernels, caching, I/O, prefill, and decode performance.
The project ships as six Swift packages: a native Mac app, a command-line interface, a loopback OpenAI-compatible Chat Completions server, and a streaming model installer that fetches and repacks the pinned Hugging Face checkpoint directly — never materializing the full source checkpoint on disk during installation.
Gemma 4 26B-A4B is Google's mixture-of-experts model with 26 billion total parameters and roughly 3.88 billion active per token. Weights use MLX affine 4-bit quantization with 8-bit router precision.
The project topped Hacker News with 767 points and drew 268 comments. Commenters noted the significance of running frontier-class models on consumer hardware without cloud dependency. Others pointed to the growing ecosystem of solo-built, model-specific runtimes — from llama.cpp to MLX to now TurboFieldfare — each pushing the boundary of what "runs locally" actually means.
The complete source is available under the MIT license.
Sources: GitHub, Hacker News discussion
Gemma 4 26B runs on 2GB RAM: 开源引擎将前沿AI带至任何Mac
一个独立开发者构建了TurboFieldfare,这是一个自定义的Swift和Metal运行时,能够[K 在任何搭载Apple硅芯片的Mac上,即使像8GB内存的MacBook Air这样的低端设备中,仅[K 使用约2 GB的RAM就运行Google的4亿6千万参数的Gemma模型。这个开源项目在Hacker [K News上获得了767点好评。
Hourlies Hourly · 2026-07-30 08:00 UTC TurboFieldfare 在 2GB 内存下运行 Google 的 Gemma 4 模型:开源引擎将前沿 AI [K 带到任何 Mac A 单独开发者构建了 TurboFieldfare,这是一个定制的 Swift 和 Met[3D[K Metal 运行时,在任何 Apple Silicon Mac 上(甚至包括 8GB MacBook Air 在内),[K 只需约 2GB 内存即可运行 Google 的 260 亿参数 Gemma 4 模型。开源项目在 Hacke[5D[K Hacker News 上获得了 767 分。
More Hourlies Stories
Content on Anagnorisis is summarized, paraphrased, and editorialized from publicly available sources for length and clarity. Original sources are linked where available. All trademarks belong to their respective owners.
