#147 · Primary category: Inference & Local Deploy

mlx-dspark

apple-silicon claude-code codex dflash2 dspark inference-engine llm-inference local-llm macos metal mlx pi qwen3-8 speculative-decoding

Up to 4× faster LLM decoding on Apple Silicon, lossless. Native MLX port of DeepSeek's DSpark & z-lab's DFlash speculative decoding — Gemma-4, Qwen3.8, Muse-Glimmer, Nemotron, LFM2.5, Ornith-1.0, ternary Bonsai-27B.

Project last updated:08/27/26

GitHub Stars

620

Forks

50

Contributors

3

License

MIT

Why we included this project

mlx-dspark ports two speculative-decoding drafters, DeepSeek's DSpark and z-lab's DFlash, to Apple Silicon through MLX, and it does so without changing the output: the target model verifies every token, so generation is faster but byte-identical to normal decoding. That lossless guarantee is what makes it worth trying for anyone running agent loops or serving responses where quality drift is not an option. It targets consumer-size models like Gemma-4, Qwen3, Muse-Glimmer, and Nemotron, and you can run it from the CLI, from Python, or through an OpenAI-compatible server that plugs into LM Studio and other local tools. A benchmark mode measures your own machine and picks a draft length instead of assuming one, which helps if you want to tune for your hardware rather than trust a default.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category