← All projects
Project record1 mention
Originally shared on Hacker News

ane-fieldfare

A project that reverse engineers Apple's ANE APIs to run Gemma 4 26B at up to 100+ tokens/s on Apple Silicon Macs, implementing speculative decoding and using mmap so the OS file cache serves as the expert cache.

Last shared
01 / The problem

What it addresses

Running Gemma 4 26B on Apple Silicon with little RAM was slow (Turbo Fieldfare runs at 20-30 tokens/s on similar hardware) with insanely slow prefill times.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. ane-fieldfare

    A project that reverse engineers Apple's ANE APIs to run Gemma 4 26B at up to 100+ tokens/s on Apple Silicon Macs, implementing speculative decoding and using mmap so the OS file cache serves as the expert cache.

    Problem: Running Gemma 4 26B on Apple Silicon with little RAM was slow (Turbo Fieldfare runs at 20-30 tokens/s on similar hardware) with insanely slow prefill times.

    Posted by @daemon1123 · Original source ↗

    Story title · @daemon1123 · · Source ↗

    Show HN: Reverse engineering the ANE to run Gemma 4 26B at 100 Tok/s

    Submitted URL · @daemon1123 · · Source ↗

    https://github.com/zw5/ane-fieldfare

    Source text · @daemon1123 · · Source ↗

    This project gets up to 100+ tokens/s inference on Gemma 4 26B (Turbo Fieldfare runs at 20-30 on similar hardware) and doesn't have insanely slow prefill times due to the ANE helping (I had to reverse engineer Apple's APIs to get this working).

    Source text · @daemon1123 · · Source ↗

    I also implemented speculative decoding, and while Turbo steered away from using mmap, this repo utilizes it so the OS file cache serves as the expert cache.