feat(gallery): add Qwen DFlash speculative-decoding models#10791
Merged
Conversation
Add four ready-to-run DFlash speculative-decoding entries for the llama.cpp backend, now that upstream DFlash support (draft-dflash) is in the pinned llama.cpp. Each entry bundles a full target model with its small z-lab block-diffusion drafter and sets spec_type:draft-dflash, spec_n_max:15, and flash attention (required by DFlash): - qwen3-4b-dflash (Qwen3-4B + Qwen3-4B-DFlash drafter) - qwen3.5-9b-dflash (Qwen3.5-9B + Qwen3.5-9B-DFlash drafter) - qwen3.6-27b-dflash (Qwen3.6-27B dense + drafter) - qwen3.6-35b-a3b-dflash (Qwen3.6-35B-A3B MoE + drafter) The 4B pair uses the base Qwen3-4B target (not Qwen3.5-4B): its drafter reports general.name "Qwen3 4B DFlash" and is the canonical pairing documented upstream. All drafters were downloaded and verified to carry GGUF architecture "dflash" (not the fork-only "dflash-draft" / "DFlashDraftModel") so they load in the upstream backend, and every drafter SHA256 was confirmed against the downloaded bytes. Signed-off-by: Ettore Di Giacinto <[email protected]> Assisted-by: Claude:claude-opus-4-8 [Claude Code]
richiejp
pushed a commit
to richiejp/LocalAI
that referenced
this pull request
Jul 16, 2026
) Add four ready-to-run DFlash speculative-decoding entries for the llama.cpp backend, now that upstream DFlash support (draft-dflash) is in the pinned llama.cpp. Each entry bundles a full target model with its small z-lab block-diffusion drafter and sets spec_type:draft-dflash, spec_n_max:15, and flash attention (required by DFlash): - qwen3-4b-dflash (Qwen3-4B + Qwen3-4B-DFlash drafter) - qwen3.5-9b-dflash (Qwen3.5-9B + Qwen3.5-9B-DFlash drafter) - qwen3.6-27b-dflash (Qwen3.6-27B dense + drafter) - qwen3.6-35b-a3b-dflash (Qwen3.6-35B-A3B MoE + drafter) The 4B pair uses the base Qwen3-4B target (not Qwen3.5-4B): its drafter reports general.name "Qwen3 4B DFlash" and is the canonical pairing documented upstream. All drafters were downloaded and verified to carry GGUF architecture "dflash" (not the fork-only "dflash-draft" / "DFlashDraftModel") so they load in the upstream backend, and every drafter SHA256 was confirmed against the downloaded bytes. Assisted-by: Claude:claude-opus-4-8 [Claude Code] Signed-off-by: Ettore Di Giacinto <[email protected]> Co-authored-by: Ettore Di Giacinto <[email protected]> Signed-off-by: Richard Palethorpe <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds four ready-to-run DFlash speculative-decoding entries to the model gallery for the
llama-cppbackend, now that upstream DFlash support (draft-dflash, ggml-org/llama.cpp#22105, merged 2026-06-28) is in the pinned llama.cpp (e3546c7).qwen3-4b-dflashunsloth/Qwen3-4B-GGUFlym00/Qwen3-4B-DFlash-GGUF-Testqwen3.5-9b-dflashunsloth/Qwen3.5-9B-GGUFlym00/Qwen3.5-9B-DFlash-GGUF-Testqwen3.6-27b-dflashunsloth/Qwen3.6-27B-GGUFAlittlehammmer/Qwen3.6-27B-DFlash-GGUF-llama.cppqwen3.6-35b-a3b-dflashunsloth/Qwen3.6-35B-A3B-GGUF(UD-Q4_K_M)Alittlehammmer/Qwen3.6-35B-A3B-DFlash-GGUF-llama.cppEach entry bundles a full target model plus its small z-lab block-diffusion drafter and configures:
How DFlash works
The drafter emits a whole block of tokens in one forward pass (block diffusion) and consumes the target model's hidden states, so it stays tiny while drafting is GPU-friendly. The drafter is not a standalone chat model; it only runs paired with its target, which is why both are bundled per entry. A GPU is recommended.
Note on the 4B entry
It pairs the base Qwen3-4B target (not Qwen3.5-4B). The only upstream-compatible 4B drafter reports
general.name = "Qwen3 4B DFlash"/general.basename = "Qwen3", i.e. it is trained for Qwen3-4B and is the canonical pairing documented upstream (z-lab/Qwen3-4B-DFlash+Qwen/Qwen3-4B). TheAnbeeld/psychopenguin"Qwen3.5-4B-DFlash" GGUFs use the fork-onlydflash-draft/DFlashDraftModelarchitecture and would fail to load in the upstream backend, so they were deliberately not used.Verification
draft-dflashis registered in the pinned llama.cpp (common_speculative_type_from_name_map).general.architectureconfirmed to bedflash(notdflash-draft/DFlashDraftModel).x-linked-etag, which is distinct fromx-xet-hashon these Xet repos, i.e. the true content hash). Target SHA256s use the HF content hash.go test ./core/config/meta/andgo test ./core/gallery/pass (override keys valid, index parses).Not verified: end-to-end acceptance/speedup on a GPU (config-and-integrity verification per scope).
🤖 Generated with Claude Code