Repository navigation
docs(speculative): finish correcting the acceptance-diagnostic claim - #1003
Merged
Merged
Conversation
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.
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.
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.
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
Live output from
mlxcel generate --draft-modelwithMLXCEL_SPECULATIVE_ACCEPT_DIAG=1on Llama 3.1 8B / Llama 3.2 1B, numeric fields masked, compared against the example quoted in the document.Refs #994.