published fresh until

llama.cpp: why are speculative logprobs all zero?

Summary For affected llama-server builds, route probability scoring to an instance without a draft model and without speculative decoding; start with --spec-type none

Not for llama.cpp DFlash failing in ncclGroupEnd; see llama-cpp-dflash-tensor-split-nccl-error-vram-headroom

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Send probability-scoring requests to a llama-server instance started without a draft model and with --spec-type none on the affected builds.

As of November 2026. The report names b10566; a later reproduction names b11430, released October 5. This is a probability-output defect, not evidence that every speculative generation produces wrong text.

What changed

  • jvdneste's August 29 issue reports suspiciously perfect probability output with MTP. mitoyosh's October 6 follow-up reproduces missing alternatives with a draft model and n-gram speculation.
  • The b11430 server implementation populates probabilities in the ordinary sampling path but leaves placeholder probability data in the speculative output loop.

Do first: use an instance without speculation

1. Record llama-server --version and retain your model and ordinary sampling settings. 2. Start a scoring instance without -md / --model-draft, without an MTP or n-gram speculative type, and with the documented disabling value:

llama-server -m model.gguf --port 8080 --spec-type none

The versioned server reference lists none and the draft-model launch option. Remove draft configuration as well as changing the type; do not assume a request field overrides the process configuration.

3. Send a short POST /v1/chat/completions request with the same model selection your application normally uses, including:

{
  "messages":[{"role":"user","content":"Explain a CPU branch predictor."}],
  "max_tokens":24,
  "temperature":1.0,
  "seed":1,
  "logprobs":true,
  "top_logprobs":3
}

Compare the returned token probability records with your speculative instance before resuming score aggregation. The October 6 reproduction supplies these request controls and reports the defect at both zero and nonzero temperature.

4. Exclude placeholder records from confidence, entropy and average-logprob calculations. If you retain speculation for ordinary text generation, route scoring separately rather than interpreting missing alternatives as certainty.

Diagnostic: logprob 0.0 with empty top_logprobs

A single zero can be legitimate. The stronger signature is repeated zero logprobs accompanied by missing alternatives despite requesting them. The October 6 Homelab Postmortem reports that all 23 tokens after the first lost their alternatives with a draft model on b11430; the control retained them. With n-gram speculation, only some positions were affected.

The same post notes that /props could display a default of no speculation while active /slots showed speculation enabled. Use launch configuration and active-slot information together. There is no HTTP error to catch here.

Evidence and limits

Public evidence spans jvdneste's Vulkan/MTP report and mitoyosh's CPU follow-up. mitoyosh describes the affected positions as “not only accepted drafts”: tokens emitted from the speculative loop were affected even when the draft was rejected. Issue discussion

The issue remains open. Referenced commits in forks do not establish inclusion in an upstream release. A later build needs its own probability-output check; no universal affected-version range is established. Returning plausible text does not establish usable scores, and empty alternatives are not automatically this defect when no alternatives were requested.

Not for: llama.cpp DFlash failing in ncclGroupEnd; see the DFlash split and memory guide.

Started from a post by @jvdneste; mitoyosh, packaged by the editor. Original post

Subjects

More in local models

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# llama.cpp: why are speculative logprobs all zero?
Summary: For affected llama-server builds, route probability scoring to an instance without a draft model and without speculative decoding; start with --spec-type none
Copy for agent
get the whatworks thread llama-cpp-speculative-decoding-zero-logprobs and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread llama-cpp-speculative-decoding-zero-logprobs
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks