Repository navigation
perf(mimo): default-on decode kernels and target-only adaptive serial MTP - #1282
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
jonathan308
force-pushed
the
claude/mimo-decode-kernels-mtp
branch
from
September 30, 2026 20:41
e8b01af to
3bbac81
Compare
5 tasks done
jonathan308
force-pushed
the
claude/mimo-decode-kernels-mtp
branch
from
October 1, 2026 00:31
3bbac81 to
c7021ac
Compare
… MTP Pin mlx-swift-lm to the stack that enables the exact MiMo short-forward decode kernels by default and adds `CBv2MTPConfig.allowsAdaptiveSerialRounds`. - Forward the three kernel rollbacks (`DARKBLOOM_MIMO_FUSED_DECODE_NORMS`, `DARKBLOOM_MIMO_DECODE_EXPERTS`, `DARKBLOOM_MIMO_DECODE_ROUTER_GEMV`, `0`/`false`/`no`/`off`) to the launchd provider job, so an installed provider can restore the stock path. - Build every native MiMo MTP config through `nativeMiMoMTPConfig`, which keeps adaptive plans target-only under serial-target scoring. Each serial draft column costs one ordinary target forward, so those rounds could only slow decode (25-27 tok/s when the controller locked onto depth 3). MTP stays constructed and active with live assistant history; the rectangular opt-in keeps adaptive depth. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308
force-pushed
the
claude/mimo-decode-kernels-mtp
branch
from
October 1, 2026 04:44
c7021ac to
6f58cfa
Compare
6 tasks done
jonathan308
marked this pull request as ready for review
October 1, 2026 15:39
Contributor
Threat model review — advisoryReviewed head Review not completed for this head. Previous findings are superseded, not confirmed resolved. Reviewers: anthropic/claude-opus-5.5: incomplete (review unavailable); openai/gpt-6-astra: incomplete (review unavailable) Scan incomplete: 1 file(s) could not be fully read as text. Binary, Git LFS and submodule changes require manual review. Models: anthropic/claude-opus-5.5, openai/gpt-6-astra. Findings require human validation; this review never requests changes or blocks merging. |
Gajesh2007
approved these changes
Oct 1, 2026
jonathan308
added a commit
that referenced
this pull request
Oct 1, 2026
#1282 and #1299 were squash-merged into master, so this PR's copy of #1282 conflicted. Conflicts resolved to #1289's versions of configuration.md, LaunchAgent.swift and its tests, and MiMoV26RectangularVerifyPolicyTests.swift (master changed each by exactly #1282's diff; the auto-merge had duplicated testNativeMTPConfigKeepsAdaptiveSerialPlansTargetOnly). CHANGELOG keeps master and adds this PR's section. The net diff against master is exactly #1289's reviewed change; the SDK pin stays at mlx-swift-lm main 1ee8675a. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Two native MiMo V2.6 decode fixes, both output-identical:
1opt-ins that no LaunchAgent forwarded, so production decode never used them. The pinned SDK now enables them by default. This PR forwards the three rollbacks (0/false/no/off) to the launchd provider job.[1, 1]target forward. An adaptive serial round therefore cannot commit tokens faster than target-only decode. The adaptive controller still sometimes locked onto depth-3 serial rounds for a whole process, and greedy decode fell to 25–27 tok/s.nativeMiMoMTPConfignow sets the SDK's newallowsAdaptiveSerialRounds: false. MTP stays enabled and active with live assistant history, but adaptive plans no longer launch serial rounds. Explicit rectangular verification (opt-in) keeps adaptive depth.Based on current
masterb1c14ed8(includes #1272, #1280, #1281, #1285, #1286 and #1287). SDK: Layr-Labs/mlx-swift-lm#206 (kernels) → Layr-Labs/mlx-swift-lm#207 (MTP knob, stacked), both now merged. This PR pins mlx-swift-lmmain1ee8675a, which contains #206, #207 and #219 (landed through Layr-Labs/mlx-swift-lm#246) and #245.Evidence
M3 Ultra (60-core GPU), 256 GiB,
EigenLabs/MiMo-V2.6-Flash-MOPD-MLX-4bit-mtp@bb37ffc7, Release build of this branch (darkbloom0.9.13, SHA256e18c32e8…, source-matchedmlx.metallib38ceb8a1…),start --local --foregroundon loopback, default concurrency, residency default from #1272. Every row below is a fresh server process. Temperature 0, reasoning off, 256 completion tokens, cold prompts (unique nonce,cached_tokens = 0). Decode is HTTP-derived: (completion_tokens − 1) / (last − first streamed token).This change on
master08653fc2(includes #1280 prefix caching and #1281 media fix)Rebased onto
08653fc2(SDK pin52d689a= #207 on SDKmainwith #205). ReleasedarkbloomSHA2565c977cff…, same metallib, fresh server per row,prefix_cache_status = ready. With Gaj's media fix, all eight media cases are admitted on this 256 GiB host, so the kernels now have a full multimodal A/B.Since these measurements, the branch was rebased onto
1e4b2d88and then ontob1c14ed8. #1286 changes only coordinator code, docs and the changelog, notprovider-swift. The SDK commits were also reformatted for the lint job: swift-format line wrapping only, token-identical apart from a trailing comma in one test's array literal.=0auto(default)adaptive_serial_suppressed6,782The tables below were measured before the rebase, on #1272's head plus this change with prefix caching off (binary
e18c32e8…).Decode kernels (MTP off), same binary, interleaved rollback/default pairs
=0×3) shortAn earlier binary (same SDK kernels via environment) measured 41.8 → 45.4 short and 40.5 → 43.2 at 4K, and each kernel alone was also output-identical. Norms alone gave +4.4%, experts +6.7% and the router +4.5%.
MTP
auto(default) before and afteradaptive_serial_suppressed7,087adaptive_serial_suppressed7,037A third "before" process on the older binary declined every offer and decoded at 37.8 tok/s without the kernels. So the before behavior depended on the process, while the after behavior is stable. MTP-on greedy decode still pays the persistent-history seed step (about 10% below MTP off) because MTP stays on by default. Sampled requests (temperature > 0) were never eligible for MiMo MTP (no target-prefix acceptance) and are unaffected by item 2.
Output identity
enable_thinking=true), 8 prompts, 512 tokens, content AND reasoning SHA-256 vs the same binary with the three rollbacksBefore
After
Unchanged: explicit
fixedDraftTokensstill runs serial rounds (qualification oracle), rectangular opt-in keeps adaptive depth,mtp_mode = offstill disables MTP, batched decode (B > 1) and prefill keep the stock kernels, and no weights, quantization, KV format, sampler or output handling change.Requalified on master
b1c14ed8(includes #1285, which pins SDK #208)Full stack: #1282 + #1289 + #1299, with SDK #206/#207/#219/#245 rebased onto SDK
maine31a1732. Fresh server per run, on the same M3 Ultra. The reference is clean masterb1c14ed8with MTP auto.Note on the concurrent row: master's own two builds differ on the same prompt, and each run produced one stable output over three concurrent repeats. This is batch composition, not a regression.
b1c14ed8, MTP autoMTP auto on the full stack: 7,659 rounds, 13,660 tokens proposed, 73.8% accepted.
Rollback
DARKBLOOM_MIMO_FUSED_DECODE_NORMS=0,DARKBLOOM_MIMO_DECODE_EXPERTS=0,DARKBLOOM_MIMO_DECODE_ROUTER_GEMV=0(each independent, forwarded to the launchd provider job).nativeMiMoMTPConfigline (SDK defaultallowsAdaptiveSerialRounds: truerestores the previous controller behavior).Test plan
swift build -c release --product darkbloom --force-resolved-versionsand./scripts/fetch-metallib.sh release;darkbloom --version0.9.13.swift build --build-tests --force-resolved-versionswith the source-matched metallib staged into every test bundle.LaunchAgentEnvironmentTests|LaunchAgentServicePlistTests|LaunchAgentRestartTests|WatchdogAgentPlistTests|excludesInferenceControls: 31 passed, including the newforwardsMiMoDecodeKernelRollbacksToProviderJob.MiMoV26RectangularVerifyPolicyTests: 4 passed, including the newtestNativeMTPConfigKeepsAdaptiveSerialPlansTargetOnly.MTPConfigTests|MiMoV26NormalEntrypointTests: 20 swift-testing + 8 XCTest passed.testSelectedSidecarNormalInspectionBindsRealHeaderWithoutClaimingPayloadAuthenticationis fixture-gated (MIMO_V26_MANAGED_AUDIO_FIXTURE_ROOTfromprepare-mimo-audio-fixtures.py, CI's audio job) and was not run locally.scripts/run-nested-suite.sh(fails on zero executed or any skip): residency (5), residency host fault, launchd, wired device context (cpu-retire,gpu-retire,cpu-retire-foreign, one fresh process each), startup, memory admission, media admission, complete prefix (asymmetric fixtures), retained fault. All passed.🤖 Generated with Claude Code