Skip to content

spec: support spec-draft-p-min in DFlash#25246

Merged
ruixiang63 merged 3 commits into
ggml-org:masterfrom
ruixiang63:dflash_p_min
Jul 3, 2026
Merged

spec: support spec-draft-p-min in DFlash#25246
ruixiang63 merged 3 commits into
ggml-org:masterfrom
ruixiang63:dflash_p_min

Conversation

@ruixiang63

Copy link
Copy Markdown
Member

Overview

Allow user to set --spec-draft-p-min in DFlash.

I thought DFlash is a diffusion-based draft model rather than an autoregressive one, so I initially assumed that spec-draft-p-min wasn't very important because truncating the draft doesn't reduce the draft generation time.
However, it can still be useful for reducing the target model's verification time by truncating the draft token once a token's confidence falls below the threshold specified by --spec-draft-p-min.

Therefore, in some use cases, tuning this parameter can improve overall performance.

Additional information

Requirements

@ruixiang63 ruixiang63 marked this pull request as ready for review July 2, 2026 17:52
@ruixiang63 ruixiang63 requested a review from a team as a code owner July 2, 2026 17:52
@ruixiang63

Copy link
Copy Markdown
Member Author

@ggml-org/maintainers Can I get a quick review for this simple change? Thanks!

Comment thread common/speculative.cpp Outdated
@ruixiang63 ruixiang63 merged commit 152d337 into ggml-org:master Jul 3, 2026
25 checks passed
@ruixiang63 ruixiang63 deleted the dflash_p_min branch July 3, 2026 13:41
LyndonBlack added a commit to LyndonBlack/llama.cpp-Ternary-1.58Bit-and-TurboQuant that referenced this pull request Jul 5, 2026
Sync with upstream (44 commits):
- DFlash speculative decoding support (ggml-org#22105, ggml-org#25110, ggml-org#25246)
- DeepSeek V4 model support (ggml-org#24162)
- MoE topk fusion for 288 experts (ggml-org#25267)
- Qwen3Next model fixes (ggml-org#25141)
- CUDA FA optimizations + Gemma E4B MTP fix
- NVFP4 support for WebGPU, AVX2 nvfp4 dot
- llama_model_ftype_name() API
- Various UI, server, and build fixes

Resolved conflicts:
- arch-fallback.h: kept Q2_0 vec_dot generic defines
- llama-kv-cache-iswa.{h,cpp}: merged upstream 2-ctor refactor with turboquant layer_type_k_cb
- llama-model-loader.cpp: adopted upstream llama_ftype_name() with Q2_0 entry preserved

Assisted-by: Hermes Agent
adrianhoehne pushed a commit to adrianhoehne/llama.cpp that referenced this pull request Jul 5, 2026
* spec: support spec-draft-p-min in DFlash

* dflash: add n_min guard

* dflash: guard both n_min and n_max
TheTom pushed a commit to TheTom/llama-cpp-turboquant that referenced this pull request Jul 9, 2026
* spec: support spec-draft-p-min in DFlash

* dflash: add n_min guard

* dflash: guard both n_min and n_max

(cherry picked from commit 152d337)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants