Skip to content

docs(speculative): finish correcting the acceptance-diagnostic claim - #1003

Merged
inureyes merged 1 commit into
mainfrom
docs/issue-994-acceptance-claim-followup
Aug 2, 2026
Merged

inureyes merged 1 commit into
mainfrom
docs/issue-994-acceptance-claim-followup

Conversation

@inureyes

@inureyes inureyes commented Aug 2, 2026

Copy link
Copy Markdown
Member

PR #1002 corrected the "measured per-position acceptance must sit at sum_min" claim in the prose of docs/speculative-acceptance.md and, in a follow-up commit, in the runtime diagnostic string itself. Two places still carried the old claim: the example diagnostic line quoted in that same document, and the MLXCEL_SPECULATIVE_ACCEPT_DIAG row in docs/environment-variables.md. Both now say what the code says, that the measured value sits at sum_prod under the default sampler-match rule and at sum_min under the opt-in acceptance-optimal rule, and the bullet points to the rule= token on the line above as the way to tell which one ran.

The quoted example is also re-measured. Its old numbers (sum_min 0.2213, sum_prod 0.2087) came from the pre-#1002 draft cache defect, where the drafter conditioned on a truncated prefix and both closed forms collapsed toward each other, which is exactly why the wrong claim was not visible: the two quantities were indistinguishable. Post-fix they separate, so the example now shows a representative separated pair.

Verified by diffing the live diagnostic line against the documented example with the numeric fields masked; they are identical.

Also corrects "the probability the pre-#902 rule accepts" to "the probability the sampler-match rule accepts". Sampler-match is the current default, not a superseded rule, so dating it by the issue that added its alternative misreads which one a default run measures.

Why this is separate from #1002

#1002 was already merged when these two spots surfaced. They are doc-only and complete a correction that PR started, so they are not worth reopening it.

Verification

ACTUAL: [Speculative acceptance diagnostic] closed_form_sum_min=N closed_form_sum_prod=N (the measured per-position acceptance sits at sum_prod under the default sampler-match rule and at sum_min under the opt-in acceptance-optimal rule; sum_min >=N sum_prod always)
DOC   : [Speculative acceptance diagnostic] closed_form_sum_min=N closed_form_sum_prod=N (the measured per-position acceptance sits at sum_prod under the default sampler-match rule and at sum_min under the opt-in acceptance-optimal rule; sum_min >=N sum_prod always)
MATCH

Live output from mlxcel generate --draft-model with MLXCEL_SPECULATIVE_ACCEPT_DIAG=1 on Llama 3.1 8B / Llama 3.2 1B, numeric fields masked, compared against the example quoted in the document.

Refs #994.

PR #1002 corrected the "measured per-position acceptance must sit at sum_min" claim in the prose of docs/speculative-acceptance.md and, in a follow-up commit, in the runtime diagnostic string itself. Two places still carried the old claim: the example diagnostic line quoted in that same document, and the MLXCEL_SPECULATIVE_ACCEPT_DIAG row in docs/environment-variables.md. Both now say what the code says, that the measured value sits at sum_prod under the default sampler-match rule and at sum_min under the opt-in acceptance-optimal rule, and the bullet points to the rule= token on the line above as the way to tell which one ran.

The quoted example is also re-measured. Its old numbers (sum_min 0.2213, sum_prod 0.2087) came from the pre-#1002 draft cache defect, where the drafter conditioned on a truncated prefix and both closed forms collapsed toward each other, which is exactly why the wrong claim was not visible: the two quantities were indistinguishable. Post-fix they separate, so the example now shows a representative separated pair.

Verified by diffing the live diagnostic line against the documented example with the numeric fields masked; they are identical.

Also corrects "the probability the pre-#902 rule accepts" to "the probability the sampler-match rule accepts". Sampler-match is the current default, not a superseded rule, so dating it by the issue that added its alternative misreads which one a default run measures.
@inureyes
inureyes merged commit b06cb38 into main Aug 2, 2026
4 checks passed
@inureyes
inureyes deleted the docs/issue-994-acceptance-claim-followup branch August 2, 2026 14:51
@inureyes inureyes self-assigned this Aug 31, 2026
@inureyes inureyes added status:done Completed type:docs Documentation improvements or additions labels Sep 6, 2026
be-free-snowboy pushed a commit to freestylejs/snowbrain-mlxcel that referenced this pull request Oct 27, 2026
…ablup#1003)

PR lablup#1002 corrected the "measured per-position acceptance must sit at sum_min" claim in the prose of docs/speculative-acceptance.md and, in a follow-up commit, in the runtime diagnostic string itself. Two places still carried the old claim: the example diagnostic line quoted in that same document, and the MLXCEL_SPECULATIVE_ACCEPT_DIAG row in docs/environment-variables.md. Both now say what the code says, that the measured value sits at sum_prod under the default sampler-match rule and at sum_min under the opt-in acceptance-optimal rule, and the bullet points to the rule= token on the line above as the way to tell which one ran.

The quoted example is also re-measured. Its old numbers (sum_min 0.2213, sum_prod 0.2087) came from the pre-lablup#1002 draft cache defect, where the drafter conditioned on a truncated prefix and both closed forms collapsed toward each other, which is exactly why the wrong claim was not visible: the two quantities were indistinguishable. Post-fix they separate, so the example now shows a representative separated pair.

Verified by diffing the live diagnostic line against the documented example with the numeric fields masked; they are identical.

Also corrects "the probability the pre-lablup#902 rule accepts" to "the probability the sampler-match rule accepts". Sampler-match is the current default, not a superseded rule, so dating it by the issue that added its alternative misreads which one a default run measures.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status:done Completed type:docs Documentation improvements or additions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant