Daily Tech Briefing
AI 科技速览

每天 5 分钟内学习 AI。获取最新的人工智能新闻,理解其重要性,并学习如何将其应用于您的工作。

AI 快讯
Hacker News · 2026/7/29 15:05:43
Show HN: Open-source engine running Gemma 4 26B in 2 GB RAM on any M-series Mac

Show HN: Open-source engine running Gemma 4 26B in 2 GB RAM on any M-series Mac

AI 中文解读
核心亮点:一个开源引擎让拥有260亿参数的AI大模型,仅用2GB内存就能在任何M系列Mac上流畅运行,包括最基础的8GB内存机型。 通俗解读:以前想在电脑上跑这种顶级AI模型,至少需要14GB以上的内存,普通Mac根本带不动。这个叫TurboFieldfare的工具像一位精明的管家,它只把模型最核心的部分放在内存里,其他内容按需从硬盘随时调用,相当于把一整栋楼的资料只带关键图纸进书房,其他存仓库随用随取。这样一来,哪怕是最便宜的8GB内存MacBook Air也能轻松驾驭。 实际影响:这意味着普通人不用花大价钱升级电脑,就能在本地享受最尖端的AI能力。无论是写文章、写代码还是处理数据分析,都能摆脱网络依赖和按月付费的云服务,数据也完全留在自己电脑上,隐私安全更有保障。对于学生、自由职业者和轻量级开发者来说,AI超能力不再是高配硬件的专利。
TurboFieldfare Gemma 4 26B-A4B inference in about 2 GB of RAM A custom Swift + Metal runtime for any Apple Silicon Mac, even the 8 GB ones. Quick start · Local server · Benchmarks · Contribute results · How it works · Experiments · References Memory got expensive. So I gave a 26-billion-parameter model a ~2 GB budget. TurboFieldfare runs the instruction-tuned Gemma 4 26B-A4B without loading the entire 14.3 GB model into memory. It keeps the shared 1.35 GB core and FP16 KV cache in memory, then streams only the experts needed for each token from SSD. This is what lets the model run on Macs with 8 GB of RAM. The runtime, streaming installer, CLI, and native Mac app are written in Swift and Metal. TurboFieldfare is model-specific rather than a wrapper around MLX or llama.cpp. The curated experiment record summarizes 103 measured results across kernels, caching, I/O, prefill, and decode. Try it git clone https://github.com/drumih/turbo-fieldfare.git cd turbo-fieldfare swift build -c release .build/release/TurboFieldfareMac On the first run, Swift Package Manager downloads and builds the Swift packages required by the tokenizer. The complete release build includes the foreground Mac app and its sibling decode-service executable. When the app opens, choose Download and let TurboFieldfare fetch and repack the pinned model (about 15 GB). Once it is ready, choose Load Model, type your prompt, and press Generate. At a glance Metric Value Model Gemma 4 26B-A4B IT, 26B total parameters, about 3.88B active per token Weights MLX affine 4-bit, group 64; 8-bit router; 4-bit shared and routed experts Memory ~2 GB of weights and 4K KV cache Storage About 14.3 GB for the installed text-only model Hardware Apple Silicon Mac; 8 GB of RAM Platform macOS 26, Metal 4, Swift 6.2 M2 measured decode 5.1-6.3 tok/s on an 8 GB M2 MacBook Air M5 measured decode 31-35 tok/s on a 24 GB M5 Pro The measured result is a reference point, not a performance ceiling. Prompt length, generated length, page-cache state, and hardware all affect throughput. To help measure another Apple Silicon Mac, follow the community benchmark guide. Using TurboFieldfare TurboFieldfare provides a native Mac app, a command-line interface, and an experimental loopback OpenAI-compatible server. They use the same .gturbo model directory, but only one model-owning product should run at a time. The Swift package exposes six products: Product Purpose TurboFieldfare Swift library containing the runtime and Metal kernels TurboFieldfareMac Native Mac app for installation and generation TurboFieldfareDecodeService One-shot local model and Metal owner used by the Mac app TurboFieldfareCLI Command-line instruction chat and raw completion TurboFieldfareServer Loopback OpenAI-compatible Chat Completions server TurboFieldfareRepack Streaming model installer and install verifier Requirements An Apple Silicon Mac; the validated target is an 8 GB M2 MacBook Air macOS 26 with Metal 4 Xcode 26 and Swift 6.2 or newer Enough free storage for the ~14.3 GB model installation An internet connection for the first model install The package is arm64-only. Older macOS and Metal versions are not supported. Prompting the model The Mac app treats what you type as an instruction and handles Gemma's chat formatting automatically. Just describe the task and include any context the model needs. Generation defaults to temperature 0.2, Top-K 64, and Top-P 0.95. Set temperature to 0 for deterministic greedy output. The model can still repeat itself or give incorrect answers, so check important results. TurboFieldfare is text-only. The app and CLI support user and model messages plus optional system guidance; they do not expose or execute tools. The loopback server accepts function-tool declarations and returns model-produced tool calls for the client to authorize and execute. Images, audio, and video are not supported. Mac app Clone the repos
分享
阅读原文