Skip to content

chore(submodules): bump mlx-swift and mlx-swift-lm to Layr-Labs main - #206

Merged
Gajesh2007 merged 1 commit into
masterfrom
chore/bump-mlx-submodules
May 24, 2026
Merged

Gajesh2007 merged 1 commit into
masterfrom
chore/bump-mlx-submodules

Conversation

@Gajesh2007

@Gajesh2007 Gajesh2007 commented May 24, 2026 •

Copy link
Copy Markdown
Member

Summary

Bumps the two MLX Swift submodules from old branches to current Layr-Labs main:

Submodule Old New Delta
`libs/mlx-swift` `49d73abc` `5202134c` +4 commits
`libs/mlx-swift-lm` `8d1cbcd8` `d164323f` +38 commits

mlx-swift highlights (+4)

mlx-swift-lm highlights (+38)

Compatibility

API surface used by provider-swift is unchanged. A sub-agent audit walked every symbol provider-swift consumes from `MLXLLM` and `MLXLMCommon` (`ModelContainer`, `LLMModelFactory.shared.{loadContainer,_load}`, `BatchGenerator`, `GenerationBatchResponse`, `RowSampler`, `makeRowSampler`, `LanguageModel`, `Tokenizer`, `BatchKVCache`, `Generation`, `GenerateStopReason`, `UserInput`, `GenerateParameters`, `SequenceStateMachine`, etc.) and confirmed every signature is preserved on the new commits. All new work in mlx-swift-lm is additive: MTP machinery, DeepSeek-V4, `BatchedEngine`, parallel shard loading, Gemma 4 fixes.

Dependency-graph caveats (both handled)

  1. mlx-swift-lm main switched its mlx-swift dep from path to URL (`.package(url: "https://github.com/Layr-Labs/mlx-swift.git", branch: "main")`). SPM identity resolution gives root-package path deps priority, so `libs/mlx-swift` remains the single source of truth. Verified via `swift package show-dependencies` — `mlx-swift` resolves to `/Users/.../libs/mlx-swift`, not a fresh checkout.
  2. mlx-swift-lm main added `hummingbird ≥ 2.0.0` and `swift-transformers ≥ 1.3.2` for its new `mlx-server` executable target. Both compatible with provider-swift's existing pins (`hummingbird exact 2.22.0`, `swift-transformers from 1.3.0`); resolver picked 2.22.0 and 1.3.2 cleanly.

Behavioral note (no API impact)

`GenerationBatch.step()` now auto-activates an MTP fast path for any model conforming to the new `MTPCapable` protocol when `batchSize == 1`. None of the production catalog models implement `MTPCapable` today, so prod impact is none. Once we ship a Qwen3.5-MTP or Gemma 4-MTP checkpoint, decoded tokens will be MTP-accelerated automatically.

Verification done

Step Result
`swift package resolve` clean; `mlx-swift` resolves to local path, not URL
`swift build` (provider-swift) clean; only pre-existing `MLX.GPU.activeMemory/peakMemory/cacheMemory` → `Memory.*` deprecation warnings (same warnings exist at `49d73abc` — not introduced by this bump)
`swift test` (non-live) 207 tests / 18 suites pass in 3.1s (0 failures) — includes `BatchKVCacheTests`, `RowSamplersTests`, `SequenceStateMachineTests`, `CoordinatorIntegrationTests`, `SelfUpdaterTests`, `GPUEnforcement`, model-catalog client, etc.

Verification still recommended before merge

  • `DARKBLOOM_LIVE_MLX_TESTS=1 swift test --filter ContinuousBatchingLiveTests` against prod Qwen3 model
  • One ad-hoc end-to-end run against a Gemma 4 checkpoint if any user-facing model uses Gemma 4 (chat template + tool-call behavior changed in PR Add omlx and vmlx as selectable inference backends #20)

Out of scope (follow-ups)

  • Fixing the pre-existing `MLX.GPU.{activeMemory,peakMemory,cacheMemory}` → `Memory.{...}` deprecation warnings in `provider-swift/Sources/ProviderCore/ProviderLoop.swift:1169,1170,1301-1303`.

View with Codesmith Autofix with Codesmith
Need help on this PR? Tag @codesmith with what you need. Autofix is disabled.

mlx-swift: 49d73abc -> 5202134c (+4 commits)
  - Expose Cmlx product + enable jaccl distributed backend (PR #2)
  - ParallelFileReader batch_size 32 MiB -> 128 MiB (PR #1)

mlx-swift-lm: 8d1cbcd8 -> d164323f (+38 commits)
  - PR #7: omlx-continuous-batching (BatchedEngine, vLLM-inspired scheduler)
  - PR #10: MTP speculative decoding (Qwen3.5, Gemma 4, DeepSeek-V4)
  - PR #19: parallel stacked shard loading
  - PR #20: Gemma 4 chat templates + tool calls fix

API surface used by provider-swift (ModelContainer, LLMModelFactory,
BatchGenerator, GenerationBatchResponse, RowSampler, makeRowSampler,
LanguageModel, Tokenizer, BatchKVCache, Generation, GenerateStopReason,
UserInput, GenerateParameters) is unchanged. All new work in mlx-swift-lm
is additive (MTP, DeepSeek-V4, BatchedEngine, parallel shard loading).

Notes on the dependency graph:
- mlx-swift-lm main switched its mlx-swift dep from path to URL
  (Layr-Labs/mlx-swift#main). SPM identity resolution gives root-package
  path deps priority, so libs/mlx-swift remains the source of truth
  (verified via swift package show-dependencies).
- mlx-swift-lm main added hummingbird >= 2.0.0 and swift-transformers
  >= 1.3.2 for its new mlx-server target. Both compatible with
  provider-swift's existing pins (hummingbird exact 2.22.0,
  swift-transformers from 1.3.0).

Verification:
- swift build: clean (only pre-existing MLX.GPU.* -> Memory.* deprecation
  warnings; deprecations existed at 49d73abc as well).
- swift test: 207 tests / 18 suites pass in 3.1s. Live MLX tests
  (DARKBLOOM_LIVE_MLX_TESTS=1) still need to be exercised against prod
  models before merge -- recommended: ContinuousBatchingLiveTests on
  Qwen3 and a Gemma 4 end-to-end run (chat template + tool-call
  behavior changed in PR #20).

Behavioral note: GenerationBatch.step() now auto-activates an MTP fast
path for MTPCapable models at batchSize == 1. No production catalog
model implements MTPCapable today, so prod impact is none.
@vercel

vercel Bot commented May 24, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
d-inference Ready Ready Preview May 24, 2026 7:58pm
d-inference-console-ui-dev Ready Ready Preview May 24, 2026 7:58pm
d-inference-landing Ready Ready Preview May 24, 2026 7:58pm

Request Review

@github-actions

github-actions Bot commented May 24, 2026 •

Copy link
Copy Markdown
Contributor

Benchmark Results

Runner: macos-15 (M1 Virtual) | Date: 2026-05-24 19:59 UTC

1-provider-streaming

1 providers, 1 users, 30 requests, concurrency=5, streaming=true

Model Providers RAM
mlx-community/Qwen3.5-0.8B-MLX-4bit 1 0.5 GB
Metric Value
Total Requests 30
Success 4
Errors 26
Total Duration 3.96s
Throughput 1.0 req/s

Latency Decomposition

Segment Count Mean P50 P95 Max
total_e2e 4 1.775s 1.775s 1.775s 1.775s
parse 4 42µs 53µs 60µs 60µs
reserve 4 3ms 3ms 4ms 4ms
route 4 14µs 17µs 26µs 26µs
encrypt 4 364µs 375µs 384µs 384µs
dispatch 4 23µs 25µs 27µs 27µs
coordinator_to_provider 4 1.769s 1.769s 1.77s 1.77s

Assertion Report: PASS

Assertion Result Detail
parse:mean<=1ms PASS mean=42.25µs (threshold=1ms)
parse:p95<=5ms PASS p95=60µs (threshold=5ms)
reserve:mean<=50ms PASS mean=2.76625ms (threshold=50ms)
reserve:p95<=200ms PASS p95=4.096ms (threshold=200ms)
encrypt:mean<=5ms PASS mean=363.75µs (threshold=5ms)
encrypt:p95<=50ms PASS p95=384µs (threshold=50ms)
dispatch:mean<=5ms PASS mean=23.25µs (threshold=5ms)
dispatch:p95<=50ms PASS p95=27µs (threshold=50ms)

1-provider-non-streaming

1 providers, 1 users, 20 requests, concurrency=5, streaming=false

Model Providers RAM
mlx-community/Qwen3.5-0.8B-MLX-4bit 1 0.5 GB
Metric Value
Total Requests 20
Success 4
Errors 16
Total Duration 2.298s
Throughput 1.7 req/s

Latency Decomposition

Segment Count Mean P50 P95 Max
total_e2e 4 2.295s 2.296s 2.298s 2.298s
parse 4 19µs 21µs 25µs 25µs
reserve 4 4ms 4ms 5ms 5ms
route 4 14µs 17µs 19µs 19µs
encrypt 4 471µs 467µs 539µs 539µs
dispatch 4 28µs 30µs 34µs 34µs
coordinator_to_provider 4 1.712s 1.712s 1.713s 1.713s

Assertion Report: PASS

Assertion Result Detail
parse:mean<=1ms PASS mean=18.75µs (threshold=1ms)
parse:p95<=5ms PASS p95=25µs (threshold=5ms)
reserve:mean<=50ms PASS mean=3.71875ms (threshold=50ms)
reserve:p95<=200ms PASS p95=5.296ms (threshold=200ms)
encrypt:mean<=5ms PASS mean=471.25µs (threshold=5ms)
encrypt:p95<=50ms PASS p95=539µs (threshold=50ms)
dispatch:mean<=5ms PASS mean=27.75µs (threshold=5ms)
dispatch:p95<=50ms PASS p95=34µs (threshold=50ms)

7-provider-multi-model

7 providers, 5 users, 50 requests, concurrency=10, streaming=true

Model Providers RAM
mlx-community/Qwen3.5-0.8B-MLX-4bit 4 0.5 GB
mlx-community/gemma-3-270m-4bit 3 0.2 GB
Metric Value
Total Requests 50
Success 43
Errors 7
Total Duration 9.227s
Throughput 4.7 req/s

Latency Decomposition

Segment Count Mean P50 P95 Max
total_e2e 43 697ms 4ms 3.59s 3.617s
parse 42 22µs 15µs 42µs 167µs
reserve 42 1ms 1ms 3ms 3ms
route 42 19µs 17µs 36µs 43µs
encrypt 43 410µs 385µs 664µs 684µs
dispatch 43 37µs 30µs 83µs 150µs
coordinator_to_provider 43 635ms 1ms 3.584s 3.61s

Assertion Report: PASS

Assertion Result Detail
parse:mean<=1ms PASS mean=21.571µs (threshold=1ms)
parse:p95<=5ms PASS p95=42µs (threshold=5ms)
reserve:mean<=50ms PASS mean=1.356214ms (threshold=50ms)
reserve:p95<=200ms PASS p95=2.894ms (threshold=200ms)
encrypt:mean<=5ms PASS mean=409.744µs (threshold=5ms)
encrypt:p95<=50ms PASS p95=664µs (threshold=50ms)
dispatch:mean<=5ms PASS mean=37.488µs (threshold=5ms)
dispatch:p95<=50ms PASS p95=83µs (threshold=50ms)

3-provider-high-concurrency

3 providers, 10 users, 60 requests, concurrency=20, streaming=true

Model Providers RAM
mlx-community/Qwen3.5-0.8B-MLX-4bit 3 0.5 GB
Metric Value
Total Requests 60
Success 12
Errors 48
Total Duration 3.505s
Throughput 3.4 req/s

Latency Decomposition

Segment Count Mean P50 P95 Max
total_e2e 12 2.069s 2.06s 2.095s 2.095s
parse 12 13µs 14µs 25µs 25µs
reserve 12 2ms 2ms 3ms 3ms
route 12 14µs 13µs 30µs 30µs
encrypt 12 441µs 410µs 556µs 556µs
dispatch 12 28µs 29µs 56µs 56µs
coordinator_to_provider 12 2.06s 2.053s 2.089s 2.089s

Assertion Report: PASS

Assertion Result Detail
parse:mean<=1ms PASS mean=13.166µs (threshold=1ms)
parse:p95<=5ms PASS p95=25µs (threshold=5ms)
reserve:mean<=50ms PASS mean=2.182ms (threshold=50ms)
reserve:p95<=200ms PASS p95=2.901ms (threshold=200ms)
encrypt:mean<=5ms PASS mean=440.916µs (threshold=5ms)
encrypt:p95<=50ms PASS p95=556µs (threshold=50ms)
dispatch:mean<=5ms PASS mean=27.5µs (threshold=5ms)
dispatch:p95<=50ms PASS p95=56µs (threshold=50ms)

1-provider-queue-saturation

1 providers, 10 users, 40 requests, concurrency=15, streaming=true

Model Providers RAM
mlx-community/Qwen3.5-0.8B-MLX-4bit 1 0.5 GB
Metric Value
Total Requests 40
Success 4
Errors 36
Total Duration 2.915s
Throughput 1.4 req/s

Latency Decomposition

Segment Count Mean P50 P95 Max
total_e2e 4 1.989s 1.989s 1.989s 1.989s
parse 4 17µs 21µs 25µs 25µs
reserve 4 2ms 2ms 2ms 2ms
route 4 16µs 15µs 31µs 31µs
encrypt 4 418µs 426µs 531µs 531µs
dispatch 4 23µs 20µs 36µs 36µs
coordinator_to_provider 4 1.983s 1.983s 1.983s 1.983s

Assertion Report: PASS

Assertion Result Detail
parse:mean<=1ms PASS mean=17.25µs (threshold=1ms)
parse:p95<=5ms PASS p95=25µs (threshold=5ms)
reserve:mean<=50ms PASS mean=2.354ms (threshold=50ms)
reserve:p95<=200ms PASS p95=2.49ms (threshold=200ms)
encrypt:mean<=5ms PASS mean=418.25µs (threshold=5ms)
encrypt:p95<=50ms PASS p95=531µs (threshold=50ms)
dispatch:mean<=5ms PASS mean=22.75µs (threshold=5ms)
dispatch:p95<=50ms PASS p95=36µs (threshold=50ms)

3-provider-20-users

3 providers, 20 users, 60 requests, concurrency=10, streaming=true

Model Providers RAM
mlx-community/Qwen3.5-0.8B-MLX-4bit 3 0.5 GB
Metric Value
Total Requests 60
Success 60
Errors 0
Total Duration 5.794s
Throughput 10.4 req/s

Latency Decomposition

Segment Count Mean P50 P95 Max
total_e2e 60 360ms 5ms 2.16s 2.16s
parse 60 16µs 14µs 33µs 48µs
reserve 60 1ms 1ms 2ms 2ms
route 60 21µs 14µs 53µs 234µs
encrypt 60 0s 0s 1ms 2ms
dispatch 60 31µs 26µs 85µs 102µs
coordinator_to_provider 60 357ms 3ms 2.149s 2.155s

Assertion Report: PASS

Assertion Result Detail
parse:mean<=1ms PASS mean=16.3µs (threshold=1ms)
parse:p95<=5ms PASS p95=33µs (threshold=5ms)
reserve:mean<=50ms PASS mean=1.251166ms (threshold=50ms)
reserve:p95<=200ms PASS p95=2.205ms (threshold=200ms)
encrypt:mean<=5ms PASS mean=445.85µs (threshold=5ms)
encrypt:p95<=50ms PASS p95=741µs (threshold=50ms)
dispatch:mean<=5ms PASS mean=30.5µs (threshold=5ms)
dispatch:p95<=50ms PASS p95=85µs (threshold=50ms)

1-provider-scaling

1 providers, 5 users, 30 requests, concurrency=10, streaming=true

Model Providers RAM
mlx-community/Qwen3.5-0.8B-MLX-4bit 1 0.5 GB
Metric Value
Total Requests 30
Success 4
Errors 26
Total Duration 3.272s
Throughput 1.2 req/s

Latency Decomposition

Segment Count Mean P50 P95 Max
total_e2e 4 2.117s 2.117s 2.117s 2.117s
parse 4 29µs 26µs 61µs 61µs
reserve 4 2ms 2ms 3ms 3ms
route 4 15µs 17µs 24µs 24µs
encrypt 4 568µs 582µs 651µs 651µs
dispatch 4 33µs 30µs 59µs 59µs
coordinator_to_provider 4 2.111s 2.111s 2.111s 2.111s

Assertion Report: PASS

Assertion Result Detail
parse:mean<=1ms PASS mean=29µs (threshold=1ms)
parse:p95<=5ms PASS p95=61µs (threshold=5ms)
reserve:mean<=50ms PASS mean=2.413ms (threshold=50ms)
reserve:p95<=200ms PASS p95=2.672ms (threshold=200ms)
encrypt:mean<=5ms PASS mean=567.5µs (threshold=5ms)
encrypt:p95<=50ms PASS p95=651µs (threshold=50ms)
dispatch:mean<=5ms PASS mean=32.75µs (threshold=5ms)
dispatch:p95<=50ms PASS p95=59µs (threshold=50ms)

3-provider-scaling

3 providers, 5 users, 30 requests, concurrency=10, streaming=true

Model Providers RAM
mlx-community/Qwen3.5-0.8B-MLX-4bit 3 0.5 GB
Metric Value
Total Requests 30
Success 30
Errors 0
Total Duration 3.825s
Throughput 7.8 req/s

Latency Decomposition

Segment Count Mean P50 P95 Max
total_e2e 30 682ms 7ms 2.096s 2.096s
parse 30 16µs 13µs 43µs 65µs
reserve 30 1ms 1ms 2ms 3ms
route 30 14µs 13µs 20µs 25µs
encrypt 30 367µs 343µs 605µs 832µs
dispatch 30 29µs 23µs 67µs 95µs
coordinator_to_provider 30 678ms 4ms 2.09s 2.091s

Assertion Report: PASS

Assertion Result Detail
parse:mean<=1ms PASS mean=16.2µs (threshold=1ms)
parse:p95<=5ms PASS p95=43µs (threshold=5ms)
reserve:mean<=50ms PASS mean=1.375333ms (threshold=50ms)
reserve:p95<=200ms PASS p95=2.194ms (threshold=200ms)
encrypt:mean<=5ms PASS mean=366.6µs (threshold=5ms)
encrypt:p95<=50ms PASS p95=605µs (threshold=50ms)
dispatch:mean<=5ms PASS mean=29.1µs (threshold=5ms)
dispatch:p95<=50ms PASS p95=67µs (threshold=50ms)

5-provider-scaling

5 providers, 5 users, 30 requests, concurrency=10, streaming=true

Model Providers RAM
mlx-community/Qwen3.5-0.8B-MLX-4bit 5 0.5 GB
Metric Value
Total Requests 30
Success 30
Errors 0
Total Duration 4.236s
Throughput 7.1 req/s

Latency Decomposition

Segment Count Mean P50 P95 Max
total_e2e 30 833ms 5ms 2.498s 2.499s
parse 30 18µs 16µs 35µs 40µs
reserve 30 2ms 1ms 3ms 4ms
route 30 18µs 16µs 32µs 44µs
encrypt 30 420µs 401µs 626µs 689µs
dispatch 30 28µs 23µs 65µs 96µs
coordinator_to_provider 30 828ms 1ms 2.491s 2.493s

Assertion Report: PASS

Assertion Result Detail
parse:mean<=1ms PASS mean=18.166µs (threshold=1ms)
parse:p95<=5ms PASS p95=35µs (threshold=5ms)
reserve:mean<=50ms PASS mean=1.677466ms (threshold=50ms)
reserve:p95<=200ms PASS p95=3.451ms (threshold=200ms)
encrypt:mean<=5ms PASS mean=419.566µs (threshold=5ms)
encrypt:p95<=50ms PASS p95=626µs (threshold=50ms)
dispatch:mean<=5ms PASS mean=28.433µs (threshold=5ms)
dispatch:p95<=50ms PASS p95=65µs (threshold=50ms)

3-provider-heavy-100conc-10kb

3 providers, 20 users, 100 requests, concurrency=100, streaming=true

Model Providers RAM
mlx-community/Qwen3.5-0.8B-MLX-4bit 3 0.5 GB
Metric Value
Total Requests 100
Success 14
Errors 86
Total Duration 3.464s
Throughput 4.0 req/s

Latency Decomposition

Segment Count Mean P50 P95 Max
total_e2e 14 2.304s 2.151s 3.26s 3.26s
parse 14 189µs 106µs 582µs 582µs
reserve 14 8ms 8ms 8ms 8ms
route 14 461ms 0s 3.228s 3.228s
queue_wait 2 3.229s 3.229s 3.229s 3.229s
encrypt 14 17ms 20ms 21ms 21ms
dispatch 14 47µs 39µs 118µs 118µs
coordinator_to_provider 14 1.806s 2.111s 2.134s 2.134s

Assertion Report: FAIL

Assertion Result Detail
parse:mean<=1ms PASS mean=189.357µs (threshold=1ms)
parse:p95<=5ms PASS p95=582µs (threshold=5ms)
reserve:mean<=50ms PASS mean=7.5815ms (threshold=50ms)
reserve:p95<=200ms PASS p95=8.201ms (threshold=200ms)
encrypt:mean<=5ms FAIL mean=17.420214ms (threshold=5ms)
encrypt:p95<=50ms PASS p95=20.608ms (threshold=50ms)
dispatch:mean<=5ms PASS mean=47µs (threshold=5ms)
dispatch:p95<=50ms PASS p95=118µs (threshold=50ms)

@Gajesh2007
Gajesh2007 merged commit 5919dac into master May 24, 2026
17 checks passed
jonathan308 added a commit that referenced this pull request Oct 1, 2026
mlx-swift-lm main now contains #206, #207 and #219 (landed through #246) and
#245. Pin it instead of the stacked SDK branch commit. The pinned tree is
identical to the SDK validated with this stack.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308 added a commit that referenced this pull request Oct 1, 2026
mlx-swift-lm main now contains #206, #207 and #219 (landed through #246) and
#245. Pin it instead of the stacked SDK branch commit. The pinned tree is
identical to the SDK validated with this stack.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308 added a commit that referenced this pull request Oct 1, 2026
mlx-swift-lm main now contains #206, #207 and #219 (landed through #246) and
#245. Pin it instead of the stacked SDK branch commit. The pinned tree is
identical to the SDK validated with this stack.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gajesh2007 pushed a commit that referenced this pull request Oct 1, 2026
… MTP (#1282)

* perf(mimo): default-on decode kernels and target-only adaptive serial 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>

* chore(mimo): pin mlx-swift-lm main 1ee8675a

mlx-swift-lm main now contains #206, #207 and #219 (landed through #246) and
#245. Pin it instead of the stacked SDK branch commit. The pinned tree is
identical to the SDK validated with this stack.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: jonathan308 <5055076+jonathan308@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Gajesh2007 pushed a commit that referenced this pull request Oct 1, 2026
…for reuse (#1299)

* fix(mimo): reuse SSD prefix-cache hits and report cached tokens only for reuse

Every native MiMo V2.6 SSD prefix-cache hit was discarded. The bridge stages
a checkpoint under a placeholder engine request ID and mints the real ID just
before submit; the SDK's native import check compared engine IDs, so each
staged checkpoint was refused (`unsupportedConsumer`). The request prefilled
its whole prompt again and the coordinator received a skipped lookup.

- Pin mlx-swift-lm to the receipt-bound native stage check.
- EngineV2RequestUsageSignal: client-facing cached tokens (standalone usage
  and the provider SSE splice) now count only an actual hit. A matched
  checkpoint whose adoption failed or was skipped used to report its matched
  tokens, which hid this bug locally. Coordinator usage already came from the
  resolved lookup and is unchanged.

Tests: the native MiMo complete-prefix gate gains a bridge-level repeat
(`testNativeCompletePrefixONReusesThePublishedBoundaryThroughTheBridge`): the
second submission of the same prompt must adopt the published boundary with
a resolved hit, saved prefill and byte-identical text. The existing gates
only checked that the first submission published. PrefixCacheReceiptTests
pins the cached-token report for a failed adoption.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore(mimo): pin mlx-swift-lm main 1ee8675a

mlx-swift-lm main now contains #206, #207 and #219 (landed through #246) and
#245. Pin it instead of the stacked SDK branch commit. The pinned tree is
identical to the SDK validated with this stack.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: jonathan308 <5055076+jonathan308@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Gajesh2007 pushed a commit that referenced this pull request Oct 1, 2026
* perf(mimo): default-on decode kernels and target-only adaptive serial 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>

* perf(mimo): exact rectangular MTP verification by default

Pin mlx-swift-lm to the exact rectangular verification stack (row-exact
multi-row affine projection, fused norms inside the scalar-dense verifier,
scalar-dense default with a guard against drafting through the bulk trunk).

- `nativeMiMoVerificationMode` selects rectangular verification by default.
  A rollback of `DARKBLOOM_MIMO_RECTANGULAR_VERIFY` or of the SDK's
  scalar-dense switch selects serial-target scoring; the provider never
  selects the bulk rectangular trunk, whose reductions differ from serial
  decode.
- The native paged profile keeps serial-target MTP independently of the
  contiguous default.
- LaunchAgent forwards the three verification rollbacks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore(mimo): pin mlx-swift-lm main 1ee8675a

mlx-swift-lm main now contains #206, #207 and #219 (landed through #246) and
#245. Pin it instead of the stacked SDK branch commit. The pinned tree is
identical to the SDK validated with this stack.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: jonathan308 <5055076+jonathan308@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

This branch was successfully deployed

3 active deployments
Preview – d-inference-console-ui-dev — dff5a215 Deployed May 24, 2026 by vercel[bot]
Preview – d-inference — dff5a215 Deployed May 24, 2026 by vercel[bot]
Preview – d-inference-landing — dff5a215 Deployed May 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