2026-11-26 15:49 UTC

llama.cpp PR proposes multi-token CUDA fusion for MoE speculative decoding

state: watchingheat: lowuncertainty: highrelevance: mediumllama-cpp local-inference inference-optimizationynankaniggml-orgllama.cpp

What is this?

llama.cpp PR #27621, attributed to contributor ynankani, proposes extending CUDA fusion for MoE GLU and top-k routing from single-token execution to speculative decoding, which processes multiple draft tokens together. The supplied GitHub record is only a summary; a Reddit post says benchmarks cover different draft widths but its author had not tested the change. The evidence here does not establish that the PR merged or verify the benchmark results.

Why it matters

This is a targeted CUDA optimization for llama.cpp’s speculative decoding on mixture-of-experts models: extending fused MoE operations to process multiple draft tokens may reduce inference overhead. If verified and merged, it could make local generation faster for compatible GPU and model setups, but the supplied evidence does not establish the size or consistency of any gain. Other cited MTP reports concern separate changes and cannot confirm this PR’s results.

Current assessment

The case centers on llama.cpp PR #27621, attributed to contributor ynankani. Its described change extends MoE GLU and top-k router fusion beyond single-token execution to speculative decoding. A linked GitHub summary says benchmarks span multiple draft widths; the Reddit poster who shared the PR said they had not yet tested it. The supplied material does not include benchmark figures, establish that the PR was merged, or verify performance across models and hardware. Later supplied posts discuss MTP improvements and a llama.cpp release, but do not show that this specific CUDA fusion was included or responsible for reported speedups. For local-inference users, the practical question is whether this reduces end-to-end decode time on their GPU and MoE model without offsetting costs; prefill, draft acceptance, and hardware configuration would matter to that assessment.

Measured heat

now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady3 platformsage 2092h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

08-31 12:27 (minted)⭐ origin echo-reconstructedPull request #27621 extends MoE GLU and top-k router fusion beyond single-token execution to speculative decoding, with reported benchmarks
ynankani on github (echo) · attributed from reddit.post.1w3bh6f · published time unknown
—
08-31 11:50first on r/LocalLLaMA · published · lag ?CUDA: extend MOE fusion to specdec, earlier MOE glu fusion and topk-router fusion were restricted to 1 token by ynankani · Pull Request #27621 · ggml-org/llama.cpp
jacek2023
—
09-06 02:51first on hacker news · published · lag ?Accelerating LLM Inference with Lossless Speculative Decoding Algorithms (2025)
wslh
—
08-31 11:50amplified on r/LocalLLaMAreddit.post.1w3bh6f
jacek2023
peak 23 · 3 comments · 4% of case engagement
08-31 16:58amplified on r/LocalLLaMAreddit.post.1w3jp8j
ea_man
peak 25 · 13 comments · 5% of case engagement
09-03 16:30amplified on r/LocalLLaMAreddit.post.1w6ccgs
Alternative_Will5974
peak 191 · 89 comments · 39% of case engagement
09-06 02:51amplified on hacker newshn.story.49582850
wslh
peak 1 · 0 comments · 0% of case engagement
09-16 18:36amplified on r/LocalLLaMAreddit.post.1wi5pwg
jacek2023
peak 40 · 2 comments · 6% of case engagement
10-05 18:58amplified on r/LocalLLaMA 👑reddit.post.1wyh03u
vexatious-big
peak 267 · 66 comments · 46% of case engagement
08-31 12:20our radar first saw it · lag ?discovery anchor: reddit.post.1w3bh6f—

Evidence (7) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟠 redditCUDA: extend MOE fusion to specdec, earlier MOE glu fusion and topk-router fusion were restricted to 1 token by ynankani · Pull Request #27621 · ggml-org/llama.cpp
LocalLLaMA
jacek2023233
🟧 echo.github ⭐Pull request #27621 extends MoE GLU and top-k router fusion beyond single-token execution to speculative decoding, with reported benchmarks ynankani——
🟠 redditCompact Rollback MTP: a MTP version for QWEN models for those with little vRAM
LocalLLaMA
ea_man2513
🟠 redditQwen3.8-Flash-Next MTP merged in ik_llama.cpp (integrated head or separate -md file)... 45 → 90 tok/s on a 5090 + 128GB, works down to a 12GB 4070
LocalLLaMA
Alternative_Will597418989
🟧 hnAccelerating LLM Inference with Lossless Speculative Decoding Algorithms (2025)wslh10
🟠 redditEnable CUDA graph for MTP draft by gaugarg-nv · Pull Request #28549 · ggml-org/llama.cpp
LocalLLaMA
jacek2023402
🟠 redditllama.cpp v0.6.0 released with MTP speculative decoding for Qwen4Exp and lots more
LocalLLaMA
vexatious-big26366

Interpretation history

Decision trace