llama.cpp Merges DFlash 2 Support for Up to 2x Faster Speculative Decoding Across Long Contexts

The open-source llama.cpp project has merged native support for DFlash 2, bringing parallel speculative decoding and substantial inference throughput improvements to local LLM serving across CPU, Apple Silicon, and GPU backends. The implementation, integrated via Pull Request #27342, adds local convolution operators and candidate selector mechanics designed specifically for the DFlash 2 architecture. Non-Autoregressive Speculative Drafting Standard speculative decoding uses a smaller autoreg

1 min
llama.cpp Merges DFlash 2 Support for Up to 2x Faster Speculative Decoding Across Long Contexts

The open-source llama.cpp project has merged native support for DFlash 2, bringing parallel speculative decoding and substantial inference throughput improvements to local LLM serving across CPU, Apple Silicon, and GPU backends.

The implementation, integrated via Pull Request #27342, adds local convolution operators and candidate selector mechanics designed specifically for the DFlash 2 architecture.

Non-Autoregressive Speculative Drafting

Standard speculative decoding uses a smaller autoregressive draft model to predict subsequent tokens sequentially before passing them to the target foundation model for batched verification. While effective at short sequence lengths, conventional drafters often suffer throughput degradation as context windows expand due to accumulating draft latency and memory bandwidth pressure.

DFlash 2 addresses this bottleneck by replacing sequential drafting with a non-autoregressive architecture. Using local convolution layers and an integrated candidate selector, the draft model proposes multiple candidate tokens in parallel during a single forward step.

  • Parallel candidate generation eliminates the sequential loop inside the draft phase.
  • Consistent throughput scaling preserves roughly 2x decoding speedups across long context lengths up to 32K tokens.
  • Exact target model distribution preservation guarantees zero output quality degradation during verification.
DFlash 2 Speculative Decoding Pipeline

Serving Architecture and Local Deployment

The integration allows developers running llama-server or the llama-cli binary to pair target models (such as Qwen3.8-27B GGUF weights) with corresponding DFlash 2 drafter models using the --spec-type draft-dflash flag.

By offloading candidate generation to lightweight parallel structures, local hardware configurations (including AMD Strix Halo APUs, Apple M-series chips, and discrete NVIDIA GPUs) can achieve double the decoding throughput without modifying precision or base weights.

Sources

Written by

More to read

  • Chunking Strategies in Production RAG: Comparing Fixed-Size, Semantic Chunking, Late Chunking, and Contextual Retrieval

    In production Retrieval-Augmented Generation (RAG) pipelines, the chunking strategy determines the theoretical ceiling of retrieval quality. Splitting documents into discrete text spans transforms continuous discourse into isolated segments. When chunks are indexed in isolation, critical context disappears: pronoun antecedents lose their referents, domain-specific acronyms lose their definitions, and propositions spanning arbitrary token boundaries become fragmented. Selecting an appropriate ch

    1 min
  • Matryoshka Representation Learning (MRL): Mathematical Foundations, Multi-Scale Loss Optimization, and Adaptive Vector Retrieval

    Matryoshka Representation Learning (MRL) has become the standard architectural foundation for modern dense text embeddings. Introduced by Kusupati et al. at NeurIPS 2022 and subsequently deployed across frontier embedding models like OpenAI text-embedding-3, Nomic Embed, and BAAI BGE-M3, MRL solves a structural inefficiency in vector retrieval: the rigid coupling between embedding dimensionality, memory consumption, and semantic fidelity. Traditional dense encoders project arbitrary text sequen

    1 min
  • Meta Previews Hatch Consumer AI Agent with Dedicated Cloud Virtual Machines

    Meta is preparing to launch a consumer-facing autonomous AI agent codenamed Project Hatch, designed to execute long-running online tasks in the background using dedicated cloud virtual machines. Details of the project emerged from internal Meta memos reported by Business Insider and The Information. Unlike conventional conversational chatbots that respond synchronously to prompts, Hatch operates as an asynchronous personal agent capable of completing complex web interactions autonomously. Clo

    1 min