42 seconds to 11 on a macbook, and it's not a new kernel

Card: Qwen3.5 9B on an M5 MacBook Pro, same prompt three ways. No speculative decoding 42s, regular speculative decoding 30s, DFlash + Weaver 11s. Steps: normal drafters guess one token at a time; DFlash guesses every position in parallel but each guess can't see the one before it; Weaver is one Transformer layer that picks DFlash's candidates left to right and grows a tree; the main model verifies the whole tree in one pass, 7.5 tokens per pass instead of 1. Bottom box: my M1 Max speedup came from a Metal kernel patch in llama.cpp, Nemotron-3.5-30B-A3B Fractal Q2 Metal decode at 57.65 tok/s
Fig. 1. Card summarizing @_avichawla's side-by-side on X (Dec 2, 2026) and the uzu inference engine (MIT). The 42s / 30s / 11s and 7.5 tokens per pass are @_avichawla's wall-clock figures on his M5 MacBook Pro, not Austin's. The bottom box (Nemotron-3.5-30B-A3B Fractal Q2 Metal at 57.65 tok/s decode from a Metal kernel patch in llama.cpp on an M1 Max) is Austin's own measured run, not part of Avi's test.

When I want a local model to go faster, my reflex is to go lower. Quant it harder, or open up the Metal code and patch a kernel. That's how I got Nemotron-3.5-30B-A3B Fractal Q2 Metal to 57.65 tok/s decode on my M1 Max: a kernel patch in llama.cpp.

So this one caught me. Avi Chawla posted a side by side this morning of Qwen3.5 9B on his M5 MacBook Pro, same prompt, three ways. The test and the numbers are his, not mine:

  • no speculative decoding: 42 seconds
  • regular speculative decoding: 30 seconds
  • DFlash + Weaver: 11 seconds

He gave wall clock time, not tok/s, so I'm not going to turn that into a tok/s number he didn't post.

where the speed comes from

Speculative decoding already has a cheap model guess ahead and the big model check all the guesses at once. His point is that most drafters still guess one token at a time, so the guessing becomes the slow part.

DFlash guesses every position in parallel. The catch is that each guess is made alone. Position 5 never sees what got picked at position 4, so one early miss throws away everything after it.

Weaver is the fix. It's one Transformer layer sitting on top of DFlash. It walks DFlash's top candidates left to right so each pick depends on the last one, grows a tree of likely continuations instead of one chain, and lets the main model verify the whole tree in a single pass. On his Mac that came out to 7.5 tokens per pass instead of 1.

It lives in uzu, an MIT-licensed inference engine from Mirai.

my take

What I like here is that none of this is about the hardware. My kernel work makes each pass cheaper. This makes each pass count for more by wasting fewer guesses. Those stack in theory, and that's the part I want to see someone measure on an older Mac like mine, with tok/s posted so it's apples to apples.

I haven't run uzu on my Macs yet, so everything above about its speed is from Avi's post and the repo, not from me.

What's the best local speedup you've actually measured, and was it a quant, a kernel, or a smarter decoder?

Source: @_avichawla on X, Dec 2, 2026. Engine: github.com/trymirai/uzu.

Tags: Local inference macOS Speculative decoding

All ship logs