Skip to content

perf(qwen36): bump mlx-swift-lm to single-forward MTP draft rounds (mlx-swift-lm#108) - #621

Closed
Gajesh2007 wants to merge 2 commits into
masterfrom
perf/qwen36-mtp-draft-trim
Closed

Gajesh2007 wants to merge 2 commits into
masterfrom
perf/qwen36-mtp-draft-trim

Conversation

@Gajesh2007

@Gajesh2007 Gajesh2007 commented Aug 13, 2026 •

Copy link
Copy Markdown
Member

What

Bumps libs/mlx-swift-lm to the single-forward MTP draft rounds — companion to Layr-Labs/mlx-swift-lm#108 (measurements, diagrams, negative-result documentation there). Same two-step flow as #106/#616: merge #108, then repoint this pin at the squash SHA before merging.

Summary

  • Draft head ran twice per round (2× 286 MB lm_head + a blocking mid-graph eval); now once, deferred-pair design.
  • 116.5 tok/s = 1.11–1.13x vs MTP-off (from 1.08x), acceptance 0.778, temp-0.7 speculation intact.
  • Shortlist draft head implemented but default-off — measured acceptance collapse from stale top-K; env-gated for future k≥2 work.
  • MTP remains beta-flag-gated; no behavior change with the flag off.
flowchart LR
  subgraph Before
    A1["pin cccff2edf: capture-verify"] --> B1["1.08x vs off; 2 draft forwards/round"]
  end
  subgraph After
    A2["pin b767ba7 (PR #108)"] --> B2["1.11–1.13x vs off; 1 draft forward/round"]
  end
Loading

Verification

Submodule: 6 new oracle-parity/rollback tests + 3 integration tests; release suites green. Ladder measured on the prod artifact per the baseline method (release, paired sessions, APFS-cloned snapshot, activation verified).


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Submodule perf/qwen36-mtp-draft-trim @ c86a298 (on top of capture-verify
c020624): one MTP forward per draft round (deferred draft pair) and an
env-gated, measured-off draft-head shortlist. Paired ladder: MTP-off
103.0/105.0, double-forward control 111.75, single-forward 116.45 tok/s
(1.11-1.13x vs off, +4.2% vs control) at acceptance 0.78.
@vercel

vercel Bot commented Aug 13, 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 Aug 14, 2026 8:20pm
d-inference-console-ui-dev Ready Ready Preview Aug 14, 2026 8:20pm
d-inference-landing Ready Ready Preview Aug 14, 2026 8:20pm

Request Review

@Gajesh2007

Copy link
Copy Markdown
Member Author

Redundant: #617 now pins libs/mlx-swift-lm at the same merged-main SHA (5b8e6e3), which already contains #108's single-forward draft rounds (7e3f185) alongside #107. Once #617 merges this diff is empty. The draft-trim work ships via #617's pin — measurements and design remain documented in mlx-swift-lm#108 (merged).

@Gajesh2007 Gajesh2007 closed this Aug 14, 2026
@Gajesh2007
Gajesh2007 deleted the perf/qwen36-mtp-draft-trim branch August 14, 2026 20:36

This branch had an error being deployed

1 failed and 3 active deployments
Preview – d-inference — dd8a3e9b Deployed Aug 14, 2026 by vercel[bot]
Preview – d-inference-console-ui-dev — dd8a3e9b Deployed Aug 14, 2026 by vercel[bot]
Preview – d-inference-landing — dd8a3e9b Deployed Aug 14, 2026 by vercel[bot]
benchmarks — dd8a3e9b Deployed Aug 14, 2026 by Gajesh2007 via E2E Benchmarks #74
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