Experiments #5
speculative decoding on the Mac: DFlash drafter via TensorFold, mlx-lm draft model, prompt lookup (row 2)
blocked
What was tested
A speed trick where a small model guesses several tokens ahead and the big model checks them in one pass. Read more on the Mac: DFlash The small guessing model used in speculative decoding. Read more via TensorFold, mlx-lm draft model, The text you send to the model before it starts answering. lookup (row 2)
Model and setup
gemma-4-26b-a4b 4-bit
Expected gain
DFlash was -11.7% on the A graphics card, used here as the chip that does the heavy arithmetic for a model.; TensorFold reports 1.5x chat
Where the idea came from
done 2026-10-28: all slower than mlx-lm OptiQ-4bit: mlx-vlm alone -16.0%, + MTP -10.1%, + DFlash -16.3% The writing phase: the model produces the reply one token at a time. Read more; no drafter on the Mac (`docs/experiments/2026-10-28-mac-spec-decode/README.md` ยง Result)
Outcome
blocked: after row 3