Dflash Mlx Speculative Decoding
Lossless DFlash speculative decoding for MLX on Apple Silicon, drafting 16 tokens per step for verification.
- CCM score
- 46 of 100
- skills.sh installs
- 331
- GitHub stars
- 99
- last updated
- Jun 3, 2026
Own this skill? Claim it
What it does
- Covers draft-then-verify inference, where a ~1B draft model proposes 16 tokens and the target model verifies them in one pass
- Includes the
dflashCLI, thedflash-serveOpenAI-compatible server, anddflash-benchmarkwith per-run tok/s and acceptance-rate reports - Enforces greedy acceptance so every emitted token matches the target model's argmax, with no sampling during verification
- Designed for Qwen3.5 model pairs on Apple Silicon, with draft models auto-resolved from a registry and reported speedups of 1.7x to 4.1x
Install
$ npx -y skills add reason-machines/trending-skills --skill dflash-mlx-speculative-decoding -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
dflash-mlx Speculative Decoding
Skill by ara.so — Daily 2026 Skills collection.
DFlash implements lossless speculative decoding for MLX on Apple Silicon. A small draft model (~1B params) generates 16 tokens in parallel using block diffusion; the target model verifies all 16 in a single forward pass. Tokens are only emitted after target verification — output is lossless (every token is the target model's greedy argmax).
Typical speedups: 1.7x–4.1x over baseline mlx_lm depending on model size and context length. Acceptance rates hover around 87–90% for Qwen3.5 models.
Installation
pip install dflash-mlx
# or isolated install
pipx install dflash-mlx
Requires Python 3.10+, MLX 0.31.1+, Apple Silicon Mac.
Key CLI Commands
Generate text
# Auto-resolve draft model from registry
dflash --model Qwen/Qwen3.5-9B --prompt "Explain backpropagation"
# Explicit draft model
dflash --model Qwen/Qwen3.5-9B \
--draft z-lab/Qwen3.5-9B-DFlash \
--prompt "Explain backpropagation"
# Disable EOS (useful for benchmarking fixed token counts)
dflash --model Qwen/Qwen3.5-9B --prompt "..." --max-tokens 1024 --no-eos
Details
- Repository
- github.com/reason-machines/trending-skills
- Category
- AI Agents & LLM Apps
- First seen
- Jun 3, 2026
Questions
What does the dflash-mlx-speculative-decoding skill do?
The dflash-mlx-speculative-decoding skill runs lossless DFlash speculative decoding for MLX on Apple Silicon. A small draft model generates 16 tokens in parallel, and the target model verifies all 16 in one forward pass, so output matches the target model's greedy argmax.
How do I install the dflash-mlx-speculative-decoding skill?
Run npx -y skills add reason-machines/trending-skills --skill dflash-mlx-speculative-decoding -y in a project. After that, the dflash-mlx-speculative-decoding skill lets the agent use dflash-serve and dflash-benchmark for faster inference on Apple Silicon.
What does the dflash-mlx-speculative-decoding skill need to run?
The dflash-mlx-speculative-decoding skill needs Python 3.10 or newer, MLX 0.31.1 or newer and an Apple Silicon Mac. Supported target models include Qwen3.5 4B, 9B, 27B and 35B-A3B, with draft models resolved automatically from a registry.
Where does the dflash-mlx-speculative-decoding skill sit in its category?
The dflash-mlx-speculative-decoding skill is listed in the AI Agents & LLM Apps category on Claude Marketplaces, alongside microsoft-foundry, azure-ai and the Google agents-cli skills. It covers DFlash speed-ups on Apple Silicon, a niche those skills do not address.
More from reason-machines/trending-skills
All 251- Palantir For Family Trips325
- Wterm Web Terminal325
- Anubis Android App Manager324
- Nothing Ever Happens Polymarket Bot324
- Openduck Distributed Duckdb321
- Designlang Design Extract318
- Uzi Skill Stock Analyzer318
- Tech Doc Style Chinese316
- Weft Ai Language315
- Hy World 2 0 3d World Model314
- Killerpdf Portable Editor312
- Xata Postgres Platform312
- Lingbot Map 3d Reconstruction310
- Diagram Design Editorial307
- Meta Harness Optimization306
- Border Beam React304
- Wx Favorites Report299
- Cc Design Html Prototyping297
- Pgque Postgres Queue296
- Huashu Design Html Native290
- Freebuff2api Openai Proxy289
- Aube Package Manager286
- Permiso Accessibility Permissions283
- Mdv Markdown Visualization282
Similar to Dflash Mlx Speculative Decoding
More AI Agents & LLM Appsllm-app-patternsdavila7/claude-code-templates326 installsProduction-ready patterns for building LLM applications. Covers RAG pipelines, agent architectures, prompt IDEs, and LLMOps monitoring. Use when designing AI ap
structured-output-extractorpatricio0312rev/skills324 installsExtracts structured data from LLM responses using JSON schemas, Zod validation, and function calling for reliable parsing. Use when users request "structured ou
langchain-architecturesickn33/agentic-awesome-skills322 installslangchain architecture
weft-ai-languagereason-machines/trending-skills315 installsweft ai language
tool-designmuratcankoylan/agent-skills-for-context-engineering313 installsThis is the skill for designing the tool layer between deterministic code and non-deterministic agents.
meta-harness-optimizationreason-machines/trending-skills306 installsmeta harness optimization