An open-source Swift and Metal engine called TurboFieldfare runs 4-bit quantized Gemma 4 26B-A4B-IT on M-series Macs with only 2 GB of RAM. It achieves this by keeping the shared model layers and KV cache in memory while streaming only the necessary routed experts from the SSD for each token. This approach allows large models to run on devices with limited RAM, such as 8 GB or 16 GB Macs, by offloading weight storage to faster SSDs.
- TurboFieldfare is an open-source Swift/Metal engine for on-device AI inference.
- It runs 26B parameter models on 8GB/16GB Macs by streaming experts from SSD.
- Only shared layers and KV cache remain in RAM, reducing memory footprint to ~2GB.
- SSD streaming replaces RAM storage for 4-bit quantized weights to save space.