Skip to content

Inkling 2: DARKBLOOM_INKLING_MTP_MAX_DRAFT sets the per-round draft cap (default 7) - #2692

Merged
jonathan308 merged 1 commit into
devfrom
perf/inkling-mtp-max-draft-env
Nov 24, 2026
Merged

jonathan308 merged 1 commit into
devfrom
perf/inkling-mtp-max-draft-env

Conversation

@jonathan308

@jonathan308 jonathan308 commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Inkling 2 Mini's DSpark profile drafts up to 7 tokens per round, and there was no way to lower that cap without a build. DARKBLOOM_INKLING_MTP_MAX_DRAFT now sets it (Inkling2MTPProfilePolicy): unset or blank keeps 7 (no change by default), a whole number is clamped to 1 to 7, anything else keeps 7 with a warning. The adaptive depth policy still picks each round's depth at or below the cap, and the verify envelope follows it through Inkling2DSparkDrafter.defaultMTPConfig(maxDraftTokens:). Every draft is verified exactly, so tokens do not depend on the cap. The LaunchAgent forwards the value.

Stacked on #2689 (the pin to SDK main e7918994a7); the base moves to dev once that lands. No SDK change.

Linked issue

None.

Test plan

  • CI (dev) on this head: Inkling2MTPMaxDraftTests (unset/blank keeps the shipped profile; whole numbers set the cap; out-of-range values clamp; other values keep 7 and are reported; the LaunchAgent forwards it).
  • Red control Red control for #2692: tests without the change (do not merge) #2693 fails at exactly the new behaviour tests.
  • scripts/changelog.py check, scripts/docs-impact-check.py --base 939db0b3d5.

Refactor pass: no change justified.

Components touched

  • provider-swift (Swift CLI)
  • native runtime / MLX
  • landing (Next.js)
  • enclave (Swift)
  • CI / provider release
  • docs

Protocol / interface changes

  • No protocol/interface changes
  • Yes — one new provider environment variable, DARKBLOOM_INKLING_MTP_MAX_DRAFT (default unchanged); no wire or release change.

Documentation impact

  • Canonical documentation updated: docs/reference/configuration.md, docs/reference/inkling2-mini-support.md, docs/architecture/inference.md; changelog fragment changelog.d/inkling-mtp-max-draft.md.

…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.
@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 4:35pm UTC
darkbloom-status Ready Ready Preview Nov 24, 2026 4:35pm UTC
eigen-homepages-darkbloom Ready Ready Preview Nov 24, 2026 4:35pm UTC

Request Review

This branch was successfully deployed

3 active deployments
Preview – d-inference-landing — a403b7ed Deployed Nov 24, 2026 by vercel[bot]
Preview – eigen-homepages-darkbloom — a403b7ed Deployed Nov 24, 2026 by vercel[bot]
Preview – darkbloom-status — a403b7ed 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