Repository navigation
fix(provider): let Inkling 2 Mini draft on penalty and stop-string rows - #2686
Closed
jonathan308 wants to merge 1 commit into
Closed
jonathan308 wants to merge 1 commit into
jonathan308 wants to merge 1 commit into
Conversation
Requests with a presence or frequency penalty or with stop strings never used Inkling's DSpark drafter: only the catalog Qwen 3.5/3.6 builds and Gemma 4 26B QAT were in SDKFeatureDefaults.penaltyRowBuilds / stopStringRowBuilds. Add the served Inkling identities to both lists. The SDK's penalty-aware verification and per-token stop confirmation are drafter-agnostic; penalty rows accept exactly. Repetition penalty rows stay target-only.
This was referenced Nov 24, 2026
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Nov 24, 2026
Collaborator
Author
|
Closing: this branch's head (90d995e) is already contained in dev. |
This branch was successfully deployed
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.
Summary
Stacked on #2678 (
3fc0080346, exact acceptance for every model); land after it.Inkling 2 Mini's DSpark drafter now also drafts for requests with a presence or frequency penalty or with
stopstrings. Before, those requests decoded without the drafter: only the catalog Qwen 3.5/3.6 builds and Gemma 4 26B QAT were inSDKFeatureDefaults.penaltyRowBuilds/stopStringRowBuilds. This PR adds the served Inkling identities (Inkling2ModelIdentity.servedModelIDs) to both lists. Provider only: no SDK change, no pin move.DefaultSamplerV2.verifyWindow,applyWindowPenalties). Penalty rows accept exactly. This is the path the catalog Qwen 3.5 builds use, also a recurrent captured-verify target with a request-stateful drafter.mtpHistoryEligiblerequires a repetition penalty of 1 on every build.DARKBLOOM_MTP_PENALTY_ROWS=0/DARKBLOOM_MTP_STOP_STRING_ROWS=0still turn these rows off. Both lists are applied after the Inkling engine profile inEngineV2SlotFactory, so they take effect for Inkling.Red control: #2685 (the tests alone on the same base). It must fail at exactly the changed tests in
MTPPenaltyRowsSwitchTestsandMTPStopStringRowsSwitchTests.Linked issue
Closes #
Test plan
MTPPenaltyRowsSwitchTests: Inkling turns on penalty speculation, while near-miss ids (a case variant, the bare name) don't. The startup summary names it. Presence/frequency rows count as penalty rows; a repetition-penalty row doesn't.MTPStopStringRowsSwitchTests: Inkling turns on stop-string speculation (near-miss ids don't), and the summary names it.python3 scripts/changelog.py check;python3 scripts/docs-impact-check.py --base 3fc0080346(coverage OK)DARKBLOOM_CBV2_MTP=0). Twelve seeded requests: 4 presence at T 0.5, 2 frequency at T 0, 4 stop mid-answer (T 0.5 and T 0), 2 controls. Pass = same reasoning+content sha256, finish reason and token count, andmtp_tokens_proposed_totalrising on the drafter-on arm. Penalty and stop parts reported separately.Components touched
Protocol / interface changes
Documentation impact
docs/reference/configuration.md(both switches),docs/provider/cli-reference.md,docs/architecture/inference.md,docs/reference/inkling2-mini-support.md(Drafter)Changelog
changelog.d/inkling-penalty-stop-rows-draft.md.Notes for reviewers
top_logprobsand checkpoints for rows that can't speculate are out of scope.Before And After
Refactor Pass
Refactor pass: no change justified.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.