cd /news/large-language-models/dflash-for-local-llm-inference · home topics large-language-models article
[ARTICLE · art-65667] src=dotnetperls.com ↗ pub= topic=large-language-models verified=true sentiment=↑ positive

DFlash for Local LLM Inference

Z-Lab's DFlash technique uses diffusion models to accelerate LLM token generation through speculative decoding, achieving up to 123 tokens per second for code generation in tests with Qwen 3 8B on llama-cpp, though gains are less pronounced for non-code text and require available VRAM.

read1 min views2 publishedJul 2, 2026

Currently LLMs generate text in an autoregressive way—one token after another. Each successive token depends on the tokens before it. However with DFlash, an innovation created by Z-Lab, we can use diffusion and speed up LLM token generation.

With DFlash, a diffusion model is used to speculate what tokens the underlying LLM will generate next. Then if those tokens are correct, they are accepted—this is the same as other forms of speculative decoding, like MTP, but with a diffusion model as well.

I downloaded the raw weights of Qwen 3 8B and quantized them along with a DFlash model. I found:

• Using DFlash in llama-cpp

gives a clear speedup generating code—for example, having the model generate Java code went from 58 to 123 tokens per second.

• Other text, like thinking text or informational text, is sped up slightly but not as much—it seems no better than MTP in this case.

So with DFlash, we have a new state of the art for code generation. Unfortunately, DFlash uses VRAM, so it works best on models that are not filling up your GPU. Basically it seems to make models that are already fast (because they fit on the GPU) even faster.

── more in #large-language-models 4 stories · sorted by recency
── more on @z-lab 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/dflash-for-local-llm…] indexed:0 read:1min 2026-07-02 ·