mlx-dspark

2026-08-21 · page · source ↗ · raw capture · source summary

mlx-dspark is the most complete speculative-decoding library for Apple Silicon — an MIT-licensed MLX toolkit that runs EAGLE-style (DSpark) and block-diffusion (DFlash) drafters, plus a drafter-free n-gram lookup mode, all behind a verify loop that is lossless by construction and a hardware-aware auto-calibration layer that retunes the draft length for each specific Mac. It is the piece that lets models like Bonsai 27B and Muse Glimmer's DFlash drafter actually deliver their speedups on M-series hardware.


Architecture

The design separates proposal from verification and makes only the latter authoritative.

Key techniques

Design decisions

Comparison notes


Sources: raw/mlx-dspark, mlx-dspark Last updated: 2026-08-21