Repository navigation
Inkling 2: DARKBLOOM_INKLING_MTP_COUPLED turns on coupled drafting (default off) - #2706
Closed
jonathan308 wants to merge 6 commits into
Closed
jonathan308 wants to merge 6 commits into
jonathan308 wants to merge 6 commits into
Conversation
…nd cap Inkling 2 Mini's DSpark profile (Inkling2DSparkDrafter.defaultMTPConfig) drafts up to 7 tokens per round, with the adaptive depth policy picking each round's depth below that. There was no way to lower the cap without a build, so comparing caps needed one build per value. DARKBLOOM_INKLING_MTP_MAX_DRAFT now sets it (Inkling2MTPProfilePolicy): unset or blank keeps 7, a whole number is clamped to 1...7, anything else keeps 7 with a warning. The verify envelope follows the cap through defaultMTPConfig(maxDraftTokens:). The acceptance setting still applies. Every draft is verified exactly, so tokens do not depend on the cap. The LaunchAgent forwards the value. Tests: Inkling2MTPMaxDraftTests (parse, clamp, unrecognized values, engine profile per cap, LaunchAgent forwarding). Docs: configuration reference row, Inkling 2 Mini reference, inference architecture; changelog fragment.
…efault off) The SDK's CBv2MTPConfig.coupledProposals lets Inkling 2's DSpark drafter propose, for a sampled row under exact acceptance, the keyed race its verify draw runs at each output index instead of the draft's argmax. Output is unchanged (exact acceptance emits only the target's draws); only acceptance can move. Inkling2MTPProfilePolicy.coupledProposals reads the switch for the served identities only (Inkling2ModelIdentity.servedModelIDs): on words turn it on, off words keep it off, anything else keeps the default (coupledByDefault = false). engineConfig passes it, with the cap and the SDK's adaptive and speculating-row parameters, through Inkling2DSparkDrafter.defaultMTPConfig. The LaunchAgent forwards it. Tests: Inkling2MTPCoupledSwitchTests (default off, on/off words, other models never couple, the profile carries the switch and nothing else moves, LaunchAgent forwarding). Docs: configuration reference row, inference architecture; changelog fragment.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
2 of 3 tasks
jonathan308
added a commit
that referenced
this pull request
Nov 24, 2026
jonathan308
changed the base branch from
perf/sdk-pin-0119
to
fix/mtp-repetition-penalty-rows
November 24, 2026 16:59
jonathan308
added a commit
that referenced
this pull request
Nov 24, 2026
…nkling logprob-row drafting # Conflicts: # docs/architecture/inference.md # docs/reference/configuration.md # provider-swift/Sources/ProviderCore/Config/SDKFeatureDefaults.swift # provider-swift/Sources/ProviderCore/Service/LaunchAgent.swift
jonathan308
added a commit
that referenced
this pull request
Nov 24, 2026
7 of 15 tasks
jonathan308
added a commit
that referenced
this pull request
Nov 24, 2026
jonathan308
added a commit
that referenced
this pull request
Nov 24, 2026
This was referenced Nov 24, 2026
Collaborator
Author
|
Closing: this branch's head (3185edc) 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
DARKBLOOM_INKLING_MTP_COUPLEDturns on coupled drafting for Inkling 2 Mini. It is off by default: with the variable unset, nothing changes.The SDK change is
CBv2MTPConfig.coupledProposals(mlx-swift-lm #550, in the pin this PR is based on). With it on, Inkling 2's DSpark drafter proposes, for a sampled row under exact acceptance, the keyed race that the row's verify draw runs at each output index, instead of the draft's argmax.Inkling2MTPProfilePolicy.coupledProposalsreads the switch for the served identities only (Inkling2ModelIdentity.servedModelIDs). On words (1,true,yes,on) turn it on. Off words (0,false,no,off) keep it off. Anything else keeps the default,coupledByDefault = false.coupledByDefault, and only on an orchestrator ruling.engineConfigpasses the switch, the draft cap and the SDK'sadaptive/maxSpeculativeRowsparameters throughInkling2DSparkDrafter.defaultMTPConfig. It doesn't build aCBv2MTPConfigby hand.Stacked on #2696 (
fix/mtp-repetition-penalty-rows, head8090f6e9ce), which is stacked on P9 #2705 (perf/sdk-pin-0119, the SDK pin for 0.10.18). The branch also carries #2692's commit (DARKBLOOM_INKLING_MTP_MAX_DRAFT), which this builds on and which enters the release with this stack; this PR's own change is commit78818f29dbplus its merges.Linked issue
None.
Test plan
Inkling2MTPCoupledSwitchTestscovers:scripts/changelog.py check;scripts/docs-impact-check.py --base cd6d475f7b.Refactor pass: no change justified.
Components touched
Protocol / interface changes
DARKBLOOM_INKLING_MTP_COUPLED(default off). No wire or release change.Documentation impact
docs/reference/configuration.md(row);docs/architecture/inference.md;changelog.d/inkling-mtp-coupled-switch.md.