Skip to content

perf(flint): pin exact decode fusions - #1556

Merged
Gajesh2007 merged 11 commits into
masterfrom
claude/flint-decode2
Oct 22, 2026
Merged

Gajesh2007 merged 11 commits into
masterfrom
claude/flint-decode2

Conversation

@jonathan308

@jonathan308 jonathan308 commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

Follow-up to #1555 (merged): pins merged mlx-swift-lm main at 7bed8216 (Layr-Labs/mlx-swift-lm#338, merged), the exact Flint decode fusions that cut the batch-1 decode graph from 2,042 to 1,233 GPU primitives per token with byte-identical logits, K/V and tokens. mlx-swift stays at 67dc752 (current main). The diff against master is the pin, a changelog fragment and an inference.md paragraph.

Measured through a real served endpoint (darkbloom start --local, M5 Max, paged/native/native, width 8, production sampling, Flint protocol constraint on; #1555 build vs this build, two interleaved rounds with cool-downs):

Served endpoint #1555 This PR Change
Decode, 1 request 105.5 tok/s 115.6 tok/s +10%
Decode, 4 concurrent (sum of rows) 311 tok/s 352 tok/s +13%
Decode, 8 concurrent (sum of rows) 400 tok/s 425 tok/s +6%
Prefill, ~2.3K prompt ~4,550 tok/s ~4,650 tok/s +2%

No provider source changes: only the SDK pin, a changelog fragment and an inference.md paragraph on the fusions. Fusion details, exactness evidence and limits are in mlx-swift-lm#338.

Check Result
Provider suites on this pin (Flint, constraints, router, tool policy, KV backend/quantization, serving width, relay, Responses, MiMo, GLM5, Qwen4, DiffusionGemma, prompt parity, benchmark dispatch) 651 tests in 89 suites pass
make changelog-check / make docs-impact-check BASE=origin/master Pass / Pass

🤖 Generated with Claude Code

jonathan308 and others added 4 commits October 22, 2026 11:35
…ed width

Pins mlx-swift-lm claude/flint-perf (0349802): larger decode command
buffers, fewer paged decode dispatches and host uploads, a fused MoE FP32
expert combine, batched sliding-window prefill attention, final-layer
KV-only evaluation chunks, and constrained decode chaining with cached
device masks. Every SDK change is byte-identical to the previous path.

FlintNativeProtocolConstraint and FlintAnswerStopConstraint opt into
chained decode and key their cached masks by constraint state, since the
allowed set depends only on the state while output budget remains.
RecursiveSI/flint-int4 joins the automatic paged list, so it serves at
the legacy paged width (8) on M5 Pro, Max and Ultra.

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fused q/k/v and gate/up projections, fused routed gate/up banks, one MoE
combine-and-residual kernel and compiled router steps: the batch-1 decode
graph drops from 2,042 to 1,233 GPU primitives per token with
byte-identical logits, K/V and tokens.

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

vercel Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
d-inference Ready Ready Preview Oct 22, 2026 10:18pm UTC
d-inference-console-ui-dev Ready Ready Preview Oct 22, 2026 10:18pm UTC
d-inference-landing Ready Ready Preview Oct 22, 2026 10:18pm UTC
darkbloom-status Ready Ready Preview Oct 22, 2026 10:18pm UTC
eigen-homepages-darkbloom Ready Ready Preview Oct 22, 2026 10:18pm UTC

Request Review

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308 and others added 2 commits October 22, 2026 14:55
fbd2cd0d is the Flint speedup branch with mlx-swift-lm main (f77b384c,
master's previous pin) merged in.

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

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

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Threat model review — advisory

Reviewed head 789e252a06c7 against base 35d5d1f7ab9a.

Review not completed for this head. Previous findings are superseded, not confirmed resolved.
Review in progress; coverage is not complete

Scan incomplete: 1 file(s) could not be fully read as text. Binary, Git LFS and submodule changes require manual review.
Affected files: libs/mlx-swift-lm

Models: budgeted Sonnet / selective Opus / selective Sol 6.1. Findings require human validation; this review never requests changes or blocks merging.

Coverage: 9/21 source units; cross-file integration pending. 0 selected depth batch(es) pending. All threat definitions indexed; relevant full definitions selected. Unchanged callers are not scanned.

Cost this run: $0.0000 reported, $0.0000 reserved with unknown cost; 0 paid request(s), 0 reused batch(es), 0 provider cache-hit tokens.

Saved findings and earlier report · Historical findings are not confirmed resolved.

Bedrock: 2 request(s), 95627 uncached + 0 cache-read + 0 cache-write input / 1154 output tokens; 0 request(s) with unknown usage. OpenRouter backup used 0 time(s). Dollar amounts above cover OpenRouter only; AWS billing is reconciled separately.

…7bed8216 (#338)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gajesh2007
Gajesh2007 merged commit 9c55c6c into master Oct 22, 2026
20 checks passed
@Gajesh2007
Gajesh2007 deleted the claude/flint-decode2 branch October 22, 2026 22:20

This branch was successfully deployed

5 active deployments
Preview – eigen-homepages-darkbloom — 789e252a Deployed Oct 22, 2026 by vercel[bot]
Preview – d-inference — 789e252a Deployed Oct 22, 2026 by vercel[bot]
Preview – d-inference-landing — 789e252a Deployed Oct 22, 2026 by vercel[bot]
Preview – d-inference-console-ui-dev — 789e252a Deployed Oct 22, 2026 by vercel[bot]
Preview – darkbloom-status — 789e252a Deployed Oct 22, 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.

2 participants