ホーム 暮らし DFlash 2 has been released, making Qwen3.8-27B generation 2.7 to 3.4 times faster. It supports MLX, so it also runs on Apple Silicon.

DFlash 2 has been released, making Qwen3.8-27B generation 2.7 to 3.4 times faster. It supports MLX, so it also runs on Apple Silicon.

雨宮 千夏 雨宮 千夏 • 更新: • 公開: • 読了約 15 分
目次

The most painful part of using local LLMs is the wait from the moment generation starts until it finishes. Even if the model is smart enough, I think many people end up going back to the cloud because of this wait.

DFlash 2 has been released as a mechanism to shorten that wait. Drafters for Qwen3.8-27B and Meta's Muse Glimmer 30B have been released simultaneously.

What is significant for me is that the MLX backend supports DFlash 2 for Qwen3.8-27B. In other words, it can also be used on Apple Silicon.

What you will learn in this article:

  • What DFlash 2 does to speed things up

  • Published speed figures (how many times faster it gets)

  • Supported models, backends, and how to install them

What is speculative decoding in the first place?

n35fa5c77a839

DFlash 2 is a type of technique called speculative decoding.

Normal LLMs can only proceed in order: predicting the next 1 token, adding it to the input, then predicting the next 1 token... Since a large model is run once for every single token, this is the source of the wait time.

Speculative decoding has a small, fast "drafter" predict several tokens ahead at once, and has the large model verify "whether those predictions are correct" all at once. Since the tokens that were correct are adopted as-is, the number of times the large model needs to be run is reduced.

The important thing is that the content of the output does not change. Since only the tokens approved by the large model are ultimately adopted, it just gets faster without the quality of the answers degrading.

DFlash 2 uses a method called block diffusion for this drafter part. It predicts a whole block of tokens in a single pass, and proceeds while maintaining the top candidates at each position.

Published figures

These are the figures released by the developers of DFlash 2.

The effectiveness of speculative decoding is measured by "how many tokens passed in one verification pass" (acceptance length). The results for GSM8K are as follows.

Qwen3.8-27B:

  • DFlash 2: 5.46

  • MTP (Qwen's official drafter): 5.02

  • DSpark (community-made): 4.36

Muse Glimmer:

  • DFlash 2: 6.57

  • DFlash (previous generation): 5.43

  • DSpark: 5.45

On average, this is an increase of 1.05 tokens (21%) compared to DFlash and 0.48 tokens compared to DSpark. A key feature is that it outperforms the official drafter for both models.

In terms of actual throughput, the following speedup factors have been reported compared to standard autoregressive decoding.

  • Qwen3.8-27B: 2.7–3.4x

  • Muse Glimmer: 3.1–4.6x

The additional cycle latency incurred is approximately 1%. This calculation suggests that the cost of running the drafter itself is negligible.

Note that these are figures from public benchmarks such as GSM8K. The actual improvement varies depending on the content of the prompt. The drafter is more accurate with routine and predictable output, leading to higher gains, while the speedup factor decreases for highly variable generation.

Supported Models and Backends

At present, there are only two checkpoints available for DFlash 2.

  • Qwen3.8-27B

  • Muse-Glimmer-30B

The previous generation of DFlash has broader support, including various generations of Qwen, Gemma 4, MiniMax M2.5/M2.7, Kimi K2.5/K2.6/K2.7-Code, GPT-OSS, Llama-3.1-8B, GLM 5.1, and more. Even if the model you are using is not available for DFlash 2, it may still be available for DFlash.

The backends supported are SGLang, vLLM, llama.cpp, and oMLX.

The MLX backend is relevant when running on Apple Silicon. The support status there is as follows:

  • DFlash 2: Qwen3.8-27B

  • DFlash: Qwen3, Qwen3.5, Qwen3.6, Gemma 4

If you use Gemma 4 regularly, you can benefit from the DFlash side.

Installation

The package can be installed via pip.

pip install dflash

If you want to run it including local inference, you should install it with the additional dependencies.

pip install "dflash[local]"

When using it from vLLM or SGLang, you specify DFLASH as the algorithm in the speculative decoding settings and pass the drafter model path. If you already have Qwen3.8-27B set up in vLLM, you just need to replace the speculative settings at startup.

Checkpoints are distributed on Hugging Face. GGUF versions are also available, so if you are running it with llama.cpp, it is faster to look for those.

Required Memory Prerequisites

DFlash 2 is strictly about speed, so it assumes the model itself can be loaded.

Qwen3.8-27B runs at about 17GB when quantized, but this refers to the model weights; in reality, the KV cache for the context is added on top. If you handle long inputs on a 24GB Mac, you may run out of memory midway.

The model for the drafter also loads into memory separately, so you need to account for that extra space. If you are running on a tight configuration, adding speculative decoding might actually cause it to stall.

Summary

  • DFlash 2 is a block-diffusion style drafter, a mechanism that enables speculative decoding

  • Throughput is 2.7–3.4x faster for autoregressive ratio on Qwen3.8-27B, and 3.1–4.6x on Muse Glimmer

  • The acceptance length is 5.46 for Qwen3.8-27B, surpassing the official MTP drafter (5.02)

  • The MLX backend supports DFlash 2 for Qwen3.8-27B, allowing it to run on Apple Silicon

  • The output content remains unchanged, only the speed increases

You can try it with pip install dflash. If you are already running Qwen3.8-27B locally, this is the type of change that improves speed without needing to replace the model.

Before speed, the issue is often whether the model can even fit in your local memory. I have summarized the actual requirements for local execution.



Figures like '50 tok/s on M5 Ultra' for the same Qwen3.8 27B are circulating. Here are the results of testing that source myself.


同じカテゴリの記事

雨宮 千夏
デジタルマーケター 雨宮 千夏
プロフィールを見る →

アイドルと音楽シーンの取材を担当。公式サイトの公演情報、リリース告知、公開チャートを照合してから構成しています。

おすすめの関連記事