anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Speeds up Qwen3.8-Flash-Next by drafting several tokens at once for the main model to check, for engineers who serve that model with SGLang and want faster output without changing it.
Qwen3.8-Flash-Next-DFlash2 is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
cd sglang git checkout 3c560089e1818a5217a73f2168273485a5350341 git apply "$(hf download incoai/Qwen3.8-Flash-Next-DFlash2 \
This repository holds DFlash 2, a small draft model for speculative decoding with Qwen/Qwen3.8-Flash-Next. It cannot answer prompts on its own. Inside a serving setup it guesses tokens ahead, and the main model checks them. Output stays identical to the main model's, so you get speed without a change in answers.
It suits engineers who host Qwen3.8-Flash-Next themselves and want higher throughput from the same hardware.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| AI infrastructure | Inference engineers | Add a draft model to an SGLang server | Start the server with both models and compare speed |
| Software | Teams hosting their own model | Cut the time a chat reply takes | Serve a coding assistant faster for several users |
| Research | Machine learning researchers | Study block-diffusion drafting | Compare acceptance length against the built-in MTP drafter |
If you do not serve Qwen3.8-Flash-Next yourself, you can skip it, since it does nothing without that model.
| Use case | Who | What they get back |
|---|---|---|
| Faster replies | Teams serving the model | More output tokens per second than plain decoding |
| Higher throughput | Operators | Better speed with 1, 8 or 32 requests at once |
| Research runs | Researchers | Acceptance lengths to compare drafters |
You need a working SGLang install and the main model.
cd sglang git checkout 3c560089e1818a5217a73f2168273485a5350341 git apply "$(hf download incoai/Qwen3.8-Flash-Next-DFlash2 \ patches/qwen38-dflash2-capture.patch --quiet)" pip install -e "python[all]"
python -m sglang.launch_server \ --model-path Qwen/Qwen3.8-Flash-Next-FP8 \ --linear-attn-verify-backend triton \ --mamba-ssm-dtype bfloat16 \ --speculative-algorithm DFLASH \ --speculative-draft-model-path incoai/Qwen3.8-Flash-Next-DFlash2 \ --speculative-draft-model-quantization unquant \ --speculative-num-draft-tokens 4
Once the server runs, you send requests to it as you would to any SGLang server. The draft model works behind the scenes and you do not call it directly.
| Tool | What it does |
|---|---|
| hf download | Fetches the capture patch from this repository |
| git apply | Applies that patch to your SGLang checkout |
| sglang.launch_server | Starts the server with the main model and this drafter |
You start the server with Qwen3.8-Flash-Next-FP8 as the target and DFlash 2 as the drafter, then send a math question. The reply streams back faster than plain decoding, and the answer matches what the target alone would give.
Speculative decoding works like a fast typist and a careful editor. The small model guesses a few words, and the big model approves or corrects them. This repository is the fast typist, so you start by launching the server command above.
DFlash 2 is a block-diffusion drafter. It predicts a block of tokens in one pass and keeps the top candidates at each position, then a light selector traces one coherent path through them. Dynamic convolutions with two taps in the backbone stop the draft quality from fading at the block's tail. Decoding is lossless: greedy output equals the target's, and sampling keeps its distribution. The block size is 4, limited by the current QSA implementation.
The card tested on one NVIDIA GB300 with an FP8 target. At concurrency 1 on GSM8K, DFlash 2 averaged 3.26 tokens accepted per verification step, against 3.08 for MTP. Other people have published 5 quantized versions and 1 fine-tune.
Speeds up Qwen3.8-Flash-Next by drafting several tokens at once for the main model to check, for engineers who serve that model with SGLang and want faster output without changing it.
Made by incoai on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: This repository holds DFlash 2, a small draft model for speculative decoding with Qwen/Qwen3.8-Flash-Next. It cannot answer prompts on its own. Inside a serving setup it guesses tokens ahead, and the main model checks them. Output stays identical to the main model's, so you get speed without a change in answers.
Who it suits: It suits engineers who host Qwen3.8-Flash-Next themselves and want higher throughput from the same hardware.
Title: Who uses this model
Industry | Who uses it | How they use it | Example
AI infrastructure | Inference engineers | Add a draft model to an SGLang server | Start the server with both models and compare speed
Software | Teams hosting their own model | Cut the time a chat reply takes | Serve a coding assistant faster for several users
Research | Machine learning researchers | Study block-diffusion drafting | Compare acceptance length against the built-in MTP drafter
If you do not serve Qwen3.8-Flash-Next yourself, you can skip it, since it does nothing without that model.
Where to use it:
Title: Jobs it does
Use case | Who | What they get back
Faster replies | Teams serving the model | More output tokens per second than plain decoding
Higher throughput | Operators | Better speed with 1, 8 or 32 requests at once
Research runs | Researchers | Acceptance lengths to compare drafters
How to set it up: You need a working SGLang install and the main model.
cd sglang
git checkout 3c560089e1818a5217a73f2168273485a5350341
git apply "$(hf download incoai/Qwen3.8-Flash-Next-DFlash2 \
patches/qwen38-dflash2-capture.patch --quiet)"
pip install -e "python[all]"
python -m sglang.launch_server \
--model-path Qwen/Qwen3.8-Flash-Next-FP8 \
--linear-attn-verify-backend triton \
--mamba-ssm-dtype bfloat16 \
--speculative-algorithm DFLASH \
--speculative-draft-model-path incoai/Qwen3.8-Flash-Next-DFlash2 \
--speculative-draft-model-quantization unquant \
--speculative-num-draft-tokens 4
How to use it: Once the server runs, you send requests to it as you would to any SGLang server. The draft model works behind the scenes and you do not call it directly.
Title: Main commands
Tool | What it does
hf download | Fetches the capture patch from this repository
git apply | Applies that patch to your SGLang checkout
sglang.launch_server | Starts the server with the main model and this drafter
Example: You start the server with Qwen3.8-Flash-Next-FP8 as the target and DFlash 2 as the drafter, then send a math question. The reply streams back faster than plain decoding, and the answer matches what the target alone would give.
For newcomers and experts: Speculative decoding works like a fast typist and a careful editor. The small model guesses a few words, and the big model approves or corrects them. This repository is the fast typist, so you start by launching the server command above.
DFlash 2 is a block-diffusion drafter. It predicts a block of tokens in one pass and keeps the top candidates at each position, then a light selector traces one coherent path through them. Dynamic convolutions with two taps in the backbone stop the draft quality from fading at the block's tail. Decoding is lossless: greedy output equals the target's, and sampling keeps its distribution. The block size is 4, limited by the current QSA implementation.
Drafter predicts a block of tokens
Selector picks one coherent path
Target model verifies the draft
Accepted tokens become the output
Good to know: The card tested on one NVIDIA GB300 with an FP8 target. At concurrency 1 on GSM8K, DFlash 2 averaged 3.26 tokens accepted per verification step, against 3.08 for MTP. Other people have published 5 quantized versions and 1 fine-tune.
Title: GSM8K output speed at concurrency 1
Autoregressive: 205.4 tok/s
MTP: 326.0 tok/s
DFlash 2: 368.2 tok/s
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download incoai/Qwen3.8-Flash-Next-DFlash2
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 6 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| Qwen3.8-Flash-Next-DFlash2 This page | 58,226 | 84 | 603M | apache-2.0 | |
| Qwen3.8-27B-DFlash2 by incoaiShares sglang · block-diffusion · dflash2 | 429,580 | 301 | 1.9B | apache-2.0 | |
| Qwen3.8-27B-DFlash2Shares sglang · block-diffusion · dflash2 | 46,660 | 335 | 1.9B | apache-2.0 | |
| Flint-DFlash2Shares sglang · block-diffusion · dflash2 | 1,651 | 9 | 403M | apache-2.0 | |
| Qwen3.8-Flash-Next-DFlash2-GGUFShares block-diffusion · dflash2 · draft-model | 3,960 | 4 | 603M | apache-2.0 | |
| Bielik-11B-v3.1-DFlash2Shares block-diffusion · draft-model · speculative-decoding | 44 | 3 | 1.2B | apache-2.0 |
Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.