Skip to content

Provider 0.10.18 candidate: the remaining changes without #2575 and #2573 - #2724

Closed
jonathan308 wants to merge 59 commits into
devfrom
release/0.10.18-c9p-candidate
Closed

jonathan308 wants to merge 59 commits into
devfrom
release/0.10.18-c9p-candidate

Conversation

@jonathan308

@jonathan308 jonathan308 commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Alternative release candidate for provider 0.10.18, kept unmerged unless it is chosen over #2723: the same merges as #2723 without #2575 and #2573, which would then move to the next release. Every merge is a clean merge of its change's head; nothing is resolved here. The tree equals #2723's minus exactly the changes of #2575 and #2573.

Changes, in merge order:

Linked issue

None.

Test plan

  • CI (dev) and the SDK qualification run on this head.
  • Each change has CI (dev) green on its own head, with its red control where it has one.

Components touched

  • provider-swift (Swift CLI)
  • native runtime / MLX (submodule pin)
  • docs

Protocol / interface changes

Documentation impact

  • Each change carries its own documentation and changelog fragment.

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

jonathan308 and others added 30 commits November 24, 2026 08:33
…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.
… the analysis

For an auto request that declares tools, GPT-OSS sometimes answers after
the loop guard ended its analysis with the call's JSON arguments and no
recipient, or ends an analysis it never closes with a complete call frame,
and the Harmony parser returns no call. GPTOSSToolCallRecovery holds the
answer after the loop guard's exit to the end of generation and returns it
as a call when it is one final (or recipientless commentary) message
holding a single JSON object that exactly one declared tool admits: every
key a declared property and the caller's schema holding
(ToolConstraintValidation.breaksDeclaration). A still-open analysis that
ends with to=functions.<declared>, its header, <|message|> and one JSON
object the schema holds returns that call. Anything else, an answer cut at
the limit, or a response that has a call, leaves as before. No rendered
prompt changes.

DARKBLOOM_GPTOSS_TOOL_CALL_RECOVERY=0|off|false|no turns it off.
…ver 16,384 tokens

Under the two-draft policy on M5 Ultra, MTPAutomaticVerificationPolicy.maxDraftPromptTokens gives gemma-4-26b-qat-4bit a prompt limit of 16,384 tokens, passed to CBv2MTPConfig.maxDraftPromptTokens. A plan whose speculation-eligible decode rows all have prompts over the limit runs at depth 0 as ordinary chained decode; a row under the limit keeps the chip's table, so a long-prompt row never stops another row from drafting. On M5 Ultra two or more decode rows already run without drafts, so this changes only a long-prompt row decoding alone. DARKBLOOM_GEMMA_MTP_MAX_PROMPT_TOKENS=0 removes the limit and a positive integer moves it; the provider's launchd job forwards it. Other chips, models and the one-draft policy are unchanged.
MTPAutomaticVerificationPolicy.gemmaPromptLimitOnByDefault (true) decides whether an unset DARKBLOOM_GEMMA_MTP_MAX_PROMPT_TOKENS applies M5 Ultra's 16,384 limit. With it false, an unset setting passes no limit, the engine behaviour from before the limit; an explicit positive value still applies it and 0 stays off. Tests cover both defaults.
…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.
SDKFeatureDefaults.repetitionPenaltyRowBuilds (the catalog Qwen 3.5/3.6
builds, Gemma 4 26B QAT and Inkling 2 Mini, the presence/frequency
builds) sets CBv2MTPConfig.repetitionPenaltySpeculation. The SDK
re-derives the penalty per verify position and these rows accept
exactly. DARKBLOOM_MTP_REPETITION_PENALTY_ROWS=0 keeps them target-only;
the LaunchAgent forwards it.
…or an early compile

Interim: the release pin PR supersedes this gitlink.
The policy tests pass onByDefault explicitly, and the process-value check compares against gemmaPromptLimitOnByDefault, so turning the default off changes only gemmaPromptLimitDefaultCanBeSwitchedOff's first expectation.
DARKBLOOM_GPTOSS_TOOL_CALL_RECOVERY joins LaunchAgent.inferencePassthroughEnvKeys,
so its off word reaches a provider run by launchd, as the other GPT-OSS
switches do; tested with the passthrough. The scheduler routes through
the recovery with optional chaining.
SDKFeatureDefaults.logprobRowBuilds (Inkling2ModelIdentity.servedModelIDs)
sets CBv2MTPConfig.logprobSpeculation for Inkling 2 Mini. The SDK takes it
only on a .rectangularExact target under exact acceptance, where each verify
position's logits equal a one-token decode step's, so the committed tokens'
logprobs equal drafter-off's bit for bit. DARKBLOOM_MTP_LOGPROB_ROWS=0 keeps
such rows target-only; the LaunchAgent forwards it. Needs the SDK change that
adds the opt-in (stacked on the SDK pin move).
trust_status gains an optional coordinator_features list. While the connected
coordinator's latest trust_status lists decode_rate_age_decay, the heartbeat
stops omitting an idle slot's observed_decode_tps after
DARKBLOOM_DECODE_RATE_IDLE_MAX_AGE_SECONDS: it sends the rate and its
observed_decode_tps_age_ms, and the coordinator decays a stale rate toward the
fleet median itself. This removes the alternation between no rate (idle) and
an old one (busy) for such a coordinator.

Absent, malformed or unknown entries, a later trust_status without the entry,
and a disconnect keep today's behaviour; the heartbeat is then unchanged byte
for byte. Older coordinators never send the field and are decoded as before.

Tests: CoordinatorDecodeRateDecayTests (shared wire cases in
Fixtures/Protocol/coordinator_features_wire.json, wire shape, advertisement
lifecycle, heartbeat bytes with and without the feature).
Moves the SDK pin from main e7918994a7 to the head of the stacked 0.10.19 SDK changes: prefix checkpoints for rows that do not draft (Inkling), coupled draft proposals (off by default), repetition-penalty rows in exact verification (off by default), and a per-plan prompt limit for drafting. The pin moves again to the landed main commit with the same SDK tree before release. No provider source change.
…x checkpoints

The SDK pin adds Inkling 2 Mini's DSpark drafter to the heads that record prompt history for requests that cannot draft.
…before landing)

Adds logprob rows under exact verification (off by default) to the pinned SDK stack. No provider source change.
theOptInTakesEffectOnInklingsServingConfig builds Inkling's MTP config as
the slot factory does (the drafter's shipped adaptive profile, declared
.rectangular, the acceptance the policy resolves, the per-build defaults)
and runs it as the round driver does beside the loaded drafter
(CBv2MTPConfig.requiring with Inkling2DSparkDrafter.servingVerificationMode):
the opt-in is effective at draft caps 7, 4 and 1. The load log names the
running result: "MTP logprob rows: on (verification rectangular_exact,
acceptance exact)".
…repetition-penalty-rows

# Conflicts:
#	libs/mlx-swift-lm
…pled switch

The Inkling 2 Mini reference's Drafter row keeps both edits: #2696's
drafting rows and acceptance sentence with its sources, and the
DARKBLOOM_INKLING_MTP_MAX_DRAFT mention with Inkling2MTPProfilePolicy.
…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
…ice serves

A required choice refuses an anyOf parameter before any recovery is
made, so the check now declares a plain integer parameter.
… the next call

A parallel call written as a text message that opens with
NAME<|content_invoke_tool_json|> after a completed native call is read as
the second call, at chunk widths 1, 3 and 4096, by the lexer and by the
router for clients that stream and that do not. Without declared tools the
frame stays the answer's text. Test only.
Invariant 8 (Gemma4ToolSchemaEnforcement) rendered a property declared without
a type as untyped only for a bare {} or an annotations-only node directly
under properties or items. It now also covers, reading the caller's
declarations as sent:

- a property that is only a local $ref (#/$defs or #/definitions) to such a
  schema;
- an anyOf or oneOf whose members accept any value, a {"type": "null"} member
  aside (nullable still renders), and an allOf of such members;
- a typeless enum whose values have more than one JSON type, which the template
  prints only under STRING.

A tuple (prefixItems with items false or absent) renders no items block, as
the template renders an array without a mapping items, instead of the repair's
STRING items. Without the declarations, and for every other position, the
render is unchanged; other families are unchanged. A request this changes is
served without the prompt cache through the same check
(changesGemmaToolRenderType). The vector bodies the rule set applies to are
unchanged: the only new candidate, a prefixItems property with no items, has
no items block to remove.
… hint

The auto grammar compiled the type the schema repair writes beside a union
naming one of its branches, a mixed enum, a not or an if as a hard type, so
a string-or-integer argument could only be written as a string. Drop that
type before compiling (QwenParserLiteralReading.rendersSiblingType, the rule
the call parser and the strict check already read). Declarations without
such a type compile exactly as before; forced choices, the prompt and
validation are unchanged.
…ing null

The strict check admits null at a node marked nullable even when its type
is a render hint. Once the hint is dropped, carry that null in the node's
union or enum so the grammar admits it too.
jonathan308 and others added 20 commits November 24, 2026 10:51
…on rows) into Inkling logprob-row drafting
Same SDK tree as the previous pin; the gitlink now names the landed main commit.
…s reasoning

With reasoning off, Inkling 2 still thinks and the provider withholds that
thought, so a stream sends only its role preamble until the answer. When
withholding starts, the router now emits one event the coordinator serving
path writes as a plain chunk with delta {"content": ""}: no role, no
reasoning field, no finish reason, no usage, nothing derived from the
withheld text (InklingWithheldReasoningHeartbeat). It claims output first,
as a first content frame does. Only the coordinator path turns it on;
reasoning-on Inkling streams, other models and non-streamed responses are
unchanged. An empty content delta is a legal OpenAI streaming chunk.
Conflict in docs/developer/serving-performance-qualification.md only: both sentences kept (the decode rate before a slot's first completed request, then the decode_rate_age_decay advertisement).
The configuration reference gains rows on both sides at the same place;
the merge keeps both. No code change.
…petition-penalty rows draft on the MTP builds
…INKLING_MTP_COUPLED turns on coupled drafting (default off)
…late on rows that request logprobs (logprob values unchanged)
…le declared call written as the answer or inside the analysis
…mmar: read the repair's sibling type as a render hint
… drafts for a step whose rows all have prompts over 16,384 tokens
…ecode rate while the coordinator decays stale rates (trust_status.coordinator_features)
…l frame opening an answer after a native call is the next call
…compile a render-marked {} that keeps its annotations
…ice floor scenarios keep their idle engines from republishing capacity
…answer delta when a stream starts withholding its reasoning
@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference-landing Ready Ready Preview Nov 24, 2026 8:25pm UTC
darkbloom-status Ready Ready Preview Nov 24, 2026 8:25pm UTC
eigen-homepages-darkbloom Ready Ready Preview Nov 24, 2026 8:25pm UTC

Request Review

@jonathan308 jonathan308 added run-ci Trigger one-shot PR CI run (auto-removed when run starts) run-release-ci One-shot: run SDK 27 release and qualification on this PR (removed when the run starts) labels Nov 24, 2026
@github-actions github-actions Bot removed run-ci Trigger one-shot PR CI run (auto-removed when run starts) run-release-ci One-shot: run SDK 27 release and qualification on this PR (removed when the run starts) labels Nov 24, 2026
@jonathan308

Copy link
Copy Markdown
Collaborator Author

Superseded: the 0.10.18 remainder; reopen or port to dev if any part is still needed.

@jonathan308 jonathan308 closed this Dec 2, 2026

This branch was successfully deployed

3 active deployments
Preview – eigen-homepages-darkbloom — 5671f63d Deployed Nov 24, 2026 by vercel[bot]
Preview – d-inference-landing — 5671f63d Deployed Nov 24, 2026 by vercel[bot]
Preview – darkbloom-status — 5671f63d Deployed Nov 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant