Repository navigation
Releases
MTPLX 2.13.3
MTPLX 2.13.3
MTPLX 2.13.3 keeps chat streaming smooth above 200 tokens per second on 120 Hz displays, adds a lighter 30 Hz Performance mode, speeds up code rewrites on Inkling 2 Mini, fixes long-prompt GPU timeouts on M1 and M2 Macs (#422), speeds up Flash-Next on M5 Ultra (#682), steps fan speed smoothly with temperature, gives Macs under 48 GB more memory room, and fixes a round of app, cache, embedding, and CLI bugs. Your downloaded packs keep working as they are.
The M5 Max measurements ran on a 128 GB MacBook Pro with fans at maximum, comparing the final 2.13.3 build against the pre-polish 2.13.3 base (24afa03ad), which already included the earlier fixes since 2.13.2. In the alternating four-run check, the first pair ran at nominal thermal pressure while the last run ran under heavy macOS throttling. The M5 Ultra measurement (#682) ran separately on a 256 GB M5 Ultra against main before merge.
| What you do | Baseline | 2.13.3 | Change |
|---|---|---|---|
| Stream a fast HTML rewrite in the app | 51.1 Hz, 25.0 ms p95 frame gap (66.7 ms max) |
96.2 Hz, 8.3 ms p95 frame gap (0 gaps over 50 ms) |
+88.1% Hz |
| Stream a Markdown reply in the app | 14 visual freezes over 50 ms |
3 freezes over 50 ms |
-78.6% freezes |
| Ask Inkling 2 Mini to build an HTML file, then rewrite it | 87.2 tok/s |
125.5 tok/s |
+43.9% |
| Make a small follow-up edit on the same file | 118.7 tok/s (3 copy pauses) |
138.7 tok/s (0 copy pauses) |
+16.8% |
| Fresh coding prompt (matched nominal runs) | 30.36 ms per step |
29.87 ms per step |
Flat (-1.6%) |
Greedy check (temp 0, seed 42, 256 tokens) and peak memory |
Identical output (19.23–23.24 GB) |
Identical output (19.23–23.24 GB) |
Exact (0.00 GB) |
| Flash-Next Optimized Quality at depth 3 on M5 Ultra (256 GB, 9 requests across 6 alternating boots, #682) | 21.02 ms median step |
19.54 ms median step (identical output) |
+7.5% to +8.8% |
| Inkling timing breakdown, Settings stability, and System/SessionBank readouts | Missing verify split, settings jumps and resets, missing live RPMs and session RAM | Full breakdown, saved settings stay put, live RPMs (7,821 / 7,815 RPM) and 6.79 GB session RAM |
Fixed |
Smoother chat streaming
- 120 Hz streaming keeps up past 200 tok/s. In 2.13.2, copy-lane bursts above 110 to 200 tok/s outran the 60 Hz display cadence and made the transcript stutter. 2.13.3 paces reveals on native 120 Hz ProMotion (
60–120 Hz), raising HTML flush rates from51.1to96.2 Hzwith0frame gaps over50 ms(25.0down to8.3 msp95) and cutting Markdown visual freezes over50 msby78.6%(14down to3). - Incremental text layout replaces heavy view rebuilds. Live prose now renders incrementally in AppKit instead of rebuilding SwiftUI views on every tick, dropping layout updates from
684to3on HTML rewrites and from156to4on Markdown, while keeping live tok/s updates isolated from the transcript view. - Performance mode drops display overhead further. Turning on Performance mode caps live streaming updates at
30 Hz(15–30 Hz) and uses plain text rendering without Markdown or syntax highlighting while the model decodes.
Faster code rewrites on Inkling 2 Mini
- File rewrites keep copy speed instead of stalling. When a
"rewrite it"edit changed parts of a file while copying the rest, partial matches at edit boundaries used to trigger 64-token copy lockouts. 2.13.3 judges match quality on a smaller prefix window and steps verify widths smoothly across 8-row tiles while still backing off on real misses, lifting full HTML rewrites from87.2to125.5 tok/s(+43.9%) and follow-up edits from118.7to138.7 tok/s(+16.8%,0pauses). - Wide copy panels no longer drop off a cliff. Fixed wide-panel slowdowns across draft-head scoring, memory spills, verify selection, tile alignment, and warm-up pricing.
- No change to cold coding, vision, memory, or greedy output. Cold coding latency stayed flat (
29.87vs30.36 msper step at nominal thermal state), peak memory stayed identical (19.23–23.24 GB), vision recognition remained intact, and greedy outputs matched bit-for-bit.
M1/M2 stability and M5 Ultra speed
- Long prompts stay under the GPU watchdog on M1 and M2 Macs (#422). On M1 and M2 chips, long cold prompts on Inkling 2 Mini attend across the entire prefix in one Metal dispatch and could trip the macOS interactivity timeout. MTPLX now splits long full-attention prefills into smaller batches and flushes command buffers between slices on older chips, while M5 Macs keep their single-launch path.
- Faster Flash-Next decode on M5 Ultra (#682). Enabled the verified fused verify read on M5 Ultra GPUs. Across 9 requests over 6 alternating boots on a 256 GB M5 Ultra at depth 3, decode sped up
7.5%to8.8%(21.02down to19.54 msmedian verify step) with identical greedy and seeded output and unchanged prompt speed. M3 Ultra stays on the standard path until measured.
Cooling and smaller Macs
- Stepped Smart fan curve. Smart fan mode now steps RPMs smoothly with chip temperature instead of jumping straight to maximum, using tuned profiles for laptops and desktop Macs (Mac Studio, Mac mini, Mac Pro, iMac), a short-turn quiet delay so brief replies stay quiet, RPM verification in the CLI, and fixes so fans always restore cleanly after requests end or cancel.
- More memory headroom on Macs under 48 GB. Lowered the memory-guard floor below 48 GB (
512 MiBminimum on 8 and 16 GB Macs and0.60 GiBon 24 GB Macs) while keeping all crash guards active, and stopped counting leased Inkling buffers twice.
App, Settings, and Dashboard
- Settings stay put. Moving the Save bar to a fixed overlay stops the Settings tab from jumping when toggled or refreshed, and Cooling now uses one segmented Fan Mode control (
Default,Smart,Max). Loading or restarting Inkling 2 Mini keeps your saved fan and reasoning settings instead of resetting them on background health polls. - Full Inkling timing breakdown. Speed Truth and the Verify Waterfall now split draft time, verify forward time, and overhead cleanly on Inkling 2 Mini without adding extra GPU syncs during generation.
- Clearer System, Activity, and SessionBank readouts. The System tab shows the active fan mode and live dual fan RPMs (
7,821 / 7,815 RPM) even when background thermal polling is off, tool-call-only turns show"first tool call at ..."rather than looking like slow text replies, Activity shows the live model, sampler, and resolved reasoning effort, SessionBank reports real held memory (6.79 GB) and cache hits without noisy false evictions, and dashboard charts, tiles, and bottom padding line up cleanly.
Models, Forge, CLI, and reliability
- Reuse models already on disk. MTPLX and the app now pick up complete snapshots already downloaded in Hugging Face caches and folders while checking revision and commit freshness.
- Better Forge search. Discover now returns up to 500 models with multi-word search across separators and includes Inkling 2 Mini in the fallback catalog.
- Qwen 3.5 embeddings and reranking (#712). Supports nested language-model backbones on
/v1/embeddingsand reranking. - Keyed
mtplx stop(#422). Supports--api-key,--api-key-file, andMTPLX_API_KEY, and reports authentication failures clearly instead of silently exiting. - Clean stream errors and prompt cache continuity. Streaming endpoints log mid-stream errors and record disconnects cleanly, clone-restored Inkling turns preserve boundary logits,
mtplx tracereads OpenCode 2.3's new SQLite tables alongside older ones, and PyPI package metadata now describes Inkling 2 Mini (#705).
Experimental, off by default
MTPLX_INKLING_DRAFT_HEAD_BITS(4,6, or8, off by default). Builds a quantized copy of dense 16-bit vocabulary heads for Inkling draft scoring only, leaving target weights untouched. Off by default because it uses extra memory.
Known in this release
- Most measurements ran on a 128 GB M5 Max (and a 256 GB M5 Ultra for #682). Behavior on M1–M4 Macs and smaller memory sizes rests on fallback rehearsals, the 106-launch kernel census, and automated tests; the #422 M1/M2 prefill fix passed parity checks and awaits confirmation on a real M2 Max.
- On Apple Silicon, macOS still reduces GPU clock speeds when a chip gets hot unless Smart or Max fan mode is enabled in Settings.
Validated
Verified against 14,518 passing Python tests (245 skipped; all 4 remaining test failures fixed and re-verified with 106/106 passing afterwards), 1,280 Swift tests (1,169 Core + 111 Host, 3 skipped, 0 failed), 106/106 Inkling launch census on M5, M4, and M1 architectures, kernel selfcheck across 4/6/8-bit × bf16/fp16 (0 fallbacks), native engine 0.6.4 selftest, and full-window 1814×1730 120 fps capture logs. Greedy combined SHA-256 (8a92d60575fefce2e5cc13e26750acbabac3b8794028bd7c5f2f657f41fe9ab4) matched across all four alternating test runs.
Upgrading
The app updates itself (MTPLX menu, Check for Updates). With Homebrew: brew update && brew upgrade mtplx. With pip: pip install -U mtplx. The packs did not change, so nothing needs to be downloaded again. This release is version 2.13.3, build 2013031.
Thanks
- M5 Ultra measurements and patch: #682 and #683 by @nomishbhardwaj.
- M2 Max long-prompt watchdog table, stream error logging, and keyed
mtplx stopreports: #422 by @bvallier. - Qwen 3.5 embeddings and reranking report: #712 by @fgtalmeida.
MTPLX 2.13.2
MTPLX 2.13.2
MTPLX 2.13.2 keeps Inkling 2 Mini on its fast decoder when a client sets top-p or top-k, so those requests now run more than twice as fast as on 2.13.1. It also fixes three bugs that broke real sessions: parallel tool calls merging into one in a streamed reply, memory refusals on 24 GB Macs, and an HTTP 500 after a saved conversation was restored. Your downloaded packs keep working as they are.
Measured on an M5 Max MacBook Pro (128 GB), against 2.13.1.
| What you do | 2.13.1 | 2.13.2 | Change |
|---|---|---|---|
| Generate a 256-token answer on Inkling 2 Mini Bare Speed with top-p 0.95, after a 558-token prompt | 34.76 tok/s | 81.67 tok/s | +135.0% |
| Ask Pi, OpenCode or Hermes to read two files in one turn, on Optimized Speed | 0 of 3 clients ran both reads from the first reply | 3 of 3 clients ran both reads from the first reply | Fixed |
| Stream a reply that holds two or three tool calls | 0 of 8 replays delivered every call on its own | 8 of 8 replays delivered every call on its own | Fixed |
| Send a 4K prompt after a short request on Bare Speed, on a simulated 24 GB Mac with 4.5 GiB used by other apps | Refused with a memory error after the stream had opened | Answered in full, 400 tokens | Fixed |
| Send a follow-up after the server restores a saved Inkling 2 Mini conversation from disk (#710) | 2 of 2 follow-ups failed with HTTP 500 | 2 of 2 follow-ups completed, and the greedy one matched a fresh run in all 128 tokens | Fixed |
The top-p row is the mean of two runs on each version, taken across four server starts that alternated between the two versions, with every run at nominal thermal pressure. The 2.13.2 client runs used Pi 1.6.0, OpenCode 1.19.6 and Hermes 0.21.6. The 24 GB row ran on the 128 GB Mac set to behave like a 24 GB one.
Speed
-
Top-p and top-k no longer slow Inkling 2 Mini down. In 2.13.1, a request that set top-p or top-k left the fast decoder and chose every token on the slower CPU path, so on Bare Speed it ran 63.9% slower than the same request at the model's own sampler. 2.13.2 applies top-p and top-k on the GPU before it decides which drafted tokens to keep, and the gap is now 13.7%.
-
The gain holds at every prompt length we tried. On an earlier 2.13.2 test build, top-p 0.95 on Bare Speed went from 33.9 to 80.2 tok/s after a 4,142-token prompt and from 33.3 to 91.4 tok/s after a 16,430-token prompt. On Optimized Speed it went from 34.1 to 75.7 tok/s after 558 tokens, from 33.1 to 79.1 after 4,142 and from 33.2 to 79.8 after 16,430. Each figure is the mean of two runs.
-
Every Inkling 2 Mini pack takes the fast path. With top-p 0.95 or top-k 40, 12 of 12 test requests across the six packs ran every round on the GPU, including the three FP16 builds on the code path that M1 and M2 Macs take, simulated on the M5 Max.
Draft depth on Inkling 2 Mini
-
Inkling 2 Mini now drafts 3 tokens per round by default. When a request does not set a draft depth, 2.13.2 drafts three tokens each round instead of choosing a depth each round. 2.13.1 made that choice from round costs it measured once at load, and those costs priced longer drafts too low: on Bare Speed after a 4,167-token prompt it expected a fourth draft token to cost 14.0% more time than three, while the rounds it served took 33.8% more. After a long prompt it therefore often drafted four or more tokens and lost time.
-
In one test, a fixed draft of 3 was up to 22% faster on short answers after a long prompt. This test ran on 2.13.1 with a 4,167-token prompt, the model's own sampler and 256-token answers, comparing the automatic choice with the depth set to 3 by hand. 2.13.2's default gives the same tokens and the same rounds as 2.13.1 set to 3, which we checked on Bare Speed and Optimized Quality. Each figure is the mean of two runs, and each automatic figure includes the first request after the server started, which is slower on either setting.
| Pack, in that test | 2.13.1, depth chosen each round | Depth 3, the 2.13.2 default | Change |
|---|---|---|---|
| Bare Speed | 87.85 tok/s | 107.48 tok/s | +22.3% |
| Optimized Speed | 99.29 tok/s | 121.26 tok/s | +22.1% |
| Optimized Quality | 81.22 tok/s | 96.32 tok/s | +18.6% |
-
On our standard 4,142-token coding prompt, 2.13.2 is about level with 2.13.1. On Bare Speed with the model's own sampler and 256-token answers, 2.13.1 ran 91.38 tok/s and 2.13.2 ran 86.94 tok/s. The two orders of alternating server starts gave -0.3% and -9.4%, so we read this as level, not as a gain or a loss. Greedy answers ran 82.08 and 83.36 tok/s. After a 558-token prompt, the model's own sampler ran 96.28 and 94.60 tok/s, and greedy ran 89.63 and 95.37.
-
Long answers gain a little. For 1,500-token answers after the 4,167-token prompt, Bare Speed went from 99.15 to 99.86 tok/s (+0.7%) and Optimized Speed from 96.37 to 101.07 tok/s (+4.9%), the mean of two runs each.
-
You can keep the old behavior. A draft depth sent by a client, or set at launch with
--depth, still applies. SettingMTPLX_INKLING_DEPTH=autobrings back the choice each round. -
Greedy answers are identical to 2.13.1, token for token. With sampling, the model's distribution is unchanged, but the answer for a given seed can differ from 2.13.1.
-
Measured on an M5 Max only. Macs with an M1 to M4 chip take another code path. One request on that path, simulated on the M5 Max, ran at the new default. Its speed on those chips is not measured.
-
Thank you to @Aster-cmd, whose report in #710 led to this change.
Tool calling
-
Parallel tool calls keep their own arguments in a stream (#709). Inkling 2 Mini writes each call in its own block, and 2.13.1 numbered every block from zero, so the second call took the first call's index. Clients then received one call whose arguments were two JSON objects joined together. 2.13.2 gives each call its own index on
/v1/chat/completionsand/v1/messages. -
A tool call no longer arrives as plain text. When the stream chunk that closed one call also held the start of the next, 2.13.1 dropped that start and sent the next call as text. 2.13.2 keeps it.
-
The coding clients finish the turn. On 2.13.2, Pi, OpenCode and Hermes each ran both file reads from the first reply and answered with the values from both files. On 2.13.1 every first reply joined the two calls; two clients recovered by retrying, and the third ran out of time while retrying.
-
Every streamed case is covered. The replays sent the same tool twice, two different tools and three calls in one reply, on both endpoints. Replies without streaming were already right on 2.13.1, in 2 of 2 replays, and stay right.
24 GB Macs
-
Longer Inkling 2 Mini prompts are served instead of refused. On a simulated 24 GB Mac with 4.5 GiB used by other apps, 2.13.1 refused a 4K prompt sent after a short request. 2.13.2 answered it in full, and answered a 6K prompt as well. In the same simulation, cold 8K, 16K and 24K prompts that 2.13.1 refused were served by the fix. The memory guard now waits for memory that MLX is still giving back before it decides, and it counts the memory MTPLX can reuse: its own cache, the saved conversations and queued disk writes.
-
A request that cannot fit is refused before its stream opens. 2.13.1 sent the memory error after the reply had started, which many clients show as a broken stream. Now a request that clearly cannot fit gets a real 507 before the response begins. The check never runs while another request is still finishing, so it does not refuse a request that would have fit.
-
A long prompt is no longer stopped partway through. A second safety check ignored the memory MTPLX holds for reuse and stopped prompt reads that the memory guard had already admitted, saying the Mac had run out of free memory. In the simulation it stopped a 24K read at chunk 43 of 49, and a 16K read of an FP16 pack on the M1 to M4 code path. It now counts that memory.
-
The image encoder gives its memory back. After an image turn, the encoder keeps 0.59 GiB in memory. When a text request would otherwise be refused, MTPLX now releases it first, and the next image reads the encoder from disk again. In the simulation, a cold 24K text prompt after an image turn had been refused 0.20 GiB short.
-
Faster prompt reads on 24 to 36 GB Macs. Prompts of 4K tokens and more now use Inkling 2 Mini's faster prompt attention on these Macs. In the simulation it handled 432 of 432 attention calls at 4K and 576 of 576 at 6K. Because the prompt is read a different way, sampled and greedy answers on these Macs can be worded differently from 2.13.1.
-
16 GB Macs gain too. On a simulated 16 GB Mac running Bonsai 2 27B Optimized Speed, a 6K prompt that 2.13.1 refused after its stream had opened is now served.
Saved conversations
-
A restored conversation no longer fails with HTTP 500 (#710). After the server restarted with an Inkling 2 Mini conversation saved on disk, 2.13.1 could fail the next request with HTTP 500, and the server log said "Visits disagree on the committed length". Sampled and greedy requests both failed. 2.13.2 resumes right after the last saved token. With the reporter's server settings, the restored greedy request returned the same 128 tokens as a fresh run.
-
Restored requests stay on the fast path. In the reporter's own run on 2.13.1, the same fault sent 45 of 49 decode rounds to a slower path. On 2.13.2, no restored round left the fast path for that reason.
-
Conversations that 2.13.1 saved in that state are read again from the prompt instead of being restored at the wrong position.
-
If you turned off the SSD session cache to work around this on 2.13.1 (
--ssd-session-cache off), you can turn it back on.
Known in this release
- The 24 GB and 16 GB fixes were tested in simulation only, on the 128 GB M5 Max. Nobody has run 2.13.2 on a real 24 GB Mac yet. If you have one, an issue wit...
MTPLX 2.13.1
MTPLX 2.13.1
MTPLX 2.13.1 fixes Inkling 2 Mini failing to load on M1 Macs. In 2.13.0 the model stopped while loading on an M1 Max with the error "Thread group size (800) is greater than the maximum allowed threads per threadgroup (704)" (#706). The M5 loads it. On the M4 we own, a 16 GB Mac too small for any Inkling 2 Mini pack, the GPU runs every Inkling 2 Mini kernel at the model's sizes, but no full load was run there. Whether Macs with an M2 or an M3 were affected is not known: nobody has run 2.13.0 on one yet. The packs on Hugging Face did not change, so nothing needs to be downloaded again.
| What you do | 2.13.0 | 2.13.1 |
|---|---|---|
| Load Inkling 2 Mini on an M1 Max (Optimized Quality FP16, as in #706) | Fails with "Thread group size (800) is greater than the maximum allowed threads per threadgroup (704)" | Loads |
| Run Inkling 2 Mini on a 16 GB M4 | Every Inkling 2 Mini kernel and the Inkling test files ran at the model's sizes; no full load | Every Inkling 2 Mini kernel and the Inkling test files ran at the model's sizes; no full load |
| Load Inkling 2 Mini on an M5 | Loads | Loads. The three published packs give the same tokens as 2.13.0, and an interleaved pair is flat: decode within 2%, first token equal or lower, prefill and memory unchanged |
How the M1 row was checked: on GitHub's M1 test machine, whose GPU has the same limit of 704 threads for this kernel, 2.13.0's code is refused in 14 of 106 wide launches and 2.13.1 runs all 106. On an M5 Max set to the M1 Max's limit, all six packs load and answer, and Optimized Quality FP16 gives the same tokens as 2.13.0 in ten cases. It has not yet been run on a real M1 Max. If Inkling 2 Mini still does not load on your M1, M2 or M3 Mac, please open an issue with the output.
What changed
- Inkling 2 Mini now loads on M1 Macs. While it loads, Inkling 2 Mini prepares the widest panel it uses when the model copies text it has already seen, such as rewriting a file: 25 rows, 24 copied tokens and one more. That panel's attention kernel asks the GPU for a group of 32 threads per row, 800 threads, and an M1 Max allows that kernel only 704. The first time each large kernel runs, MTPLX now checks that this Mac's GPU accepts its thread group. Where the GPU refuses the wide panel, its attention runs in groups of 8 rows, which gives exactly the same result, so answers and the 24-token copy rounds are unchanged. Any other kernel a GPU refuses falls back to the standard path for that step instead of stopping the load, and
mtplx doctor --explainand /health list it. - A source install builds MTPLX's engine with older Xcode tools. In 2.13.0 a source install (
pipwithout a prebuilt wheel, or a development checkout) whose Xcode tools carried an SDK older than macOS 26 could not compile the engine, and MTPLX then ran without it. It now compiles there too. The prebuilt wheels on PyPI for Python 3.11 to 3.14 on Apple silicon carry the engine, and Homebrew installs that wheel.
If you have an M1 Mac
Update MTPLX, then start Inkling 2 Mini again. The app offers the update itself; with Homebrew run brew update && brew upgrade mtplx, and with pip run pip install -U mtplx. If you started 2.13.0 with MTPLX_CONTEXT_COPY_K=7 to get past the error, you can leave that setting out now. You get the same answers as on any other Mac, and one line at load says the wide panel runs in row groups. Speed on an M1 is not measured: we do not have an M1 with 24 GB or more. The packs you already downloaded stay as they are; on M1 and M2 Macs MTPLX offers the FP16 builds of the three packs, which are made for those chips.
Validated
| Check | Result |
|---|---|
| Every wide Inkling 2 Mini launch on GitHub's M1 test machine, on the release pull request | Run 45011806448: all 106 wide launches run. 2.13.0's code on the same machine: 14 of 106 refused |
The real M4 gate, on a 16 GB M4, on the fix's head f7ebc03ff (the same code as 2.13.1's fix), 22 November 2026 |
1,379 passed, 1 known failure in a test that expects an M5 |
| GitHub's checks on the release pull request | All green: ci 45011717653, build 45011717658, hygiene 45011717655, no-ai-attribution 45011717663, and the kernel matrix 45011806448 (kernel exactness, a small model loading and answering, and the Inkling launch check above) |
| Every test file, on the release pull request's code | 14,332 passed, 1 failed, 150 skipped. The one failure, a check on a short prompt asked twice, already failed before 2.13.0 was released, and this release does not touch it |
Upgrading
The app updates itself (MTPLX menu, Check for Updates). With Homebrew: brew update && brew upgrade mtplx. With pip: pip install -U mtplx.
Credits
- The report, with the whole traceback: #706 by @haseebeqx.
MTPLX 2.13.0
MTPLX 2.13.0
MTPLX 2.13.0 adds Inkling 2 Mini, Thinking Machines Lab's open-weights model for coding, agents and images, in three packs for Macs with 24 GB of memory or more, each with an FP16 build for M1 and M2 Macs. On a MacBook Pro M5 Max, Bare Speed decodes at up to 128.8 tok/s, Optimized Speed at up to 123.8 and Optimized Quality at up to 103.8, and every pack reads images with the model's whole vision tower.
| What you do | 2.12.3 | 2.13.0 |
|---|---|---|
| Run Inkling 2 Mini on a MacBook Pro M5 Max: decode speed | Cannot load the model | Bare Speed up to 128.8 tok/s; Optimized Speed up to 123.8 tok/s; Optimized Quality up to 103.8 tok/s |
| Read a new 4,142-token prompt on Inkling 2 Mini Bare Speed | Cannot load the model | Prefill at 2,830 tok/s, first token in 1.72 s |
| Run Inkling 2 Mini on a 24 GB Mac | Cannot load the model | Bare Speed, with a 24,576-token window |
| Have an agent write a file through a tool call on a Qwen-format pack (#691) | The file lost its last newline, and a JSON file was refused | Every argument arrives exactly as the model wrote it |
| Send a follow-up in Pi on Flash-Next right after a 32,000-token answer | 31,920 tokens read again, 32.9 s to the first text | 78 new tokens read, 0.55 s to the first text |
Decode speed is the fastest recorded figure for each pack, at the model's own sampler: for Bare Speed, a 128-token answer to a 4,142-token prompt already in the prompt cache, recorded through mtplx serve on a 2.13 test build; for Optimized Speed, a 166-token answer in the 2.13 app; for Optimized Quality, the fastest stretch of an answer in the 2.13 app, its first 32 tokens. macOS thermal pressure was nominal for Bare Speed and Optimized Speed, and moderate when Optimized Quality's answer began. Prefill is MTPLX's own server figure on a new 4,142-token prompt, the mean of three runs, and the first token is the slowest of the same three runs. Long sessions on a hot Mac run slower than the peak.
The fastest way to run Inkling 2 Mini on a Mac
MTPLX is the fastest way to run Inkling 2 Mini on a Mac. On the same MacBook Pro M5 Max with a new 4,142-token coding prompt, Inkling 2 Mini Bare Speed on MTPLX shows its first token in 1.69 s against 2.83 s for oMLX and 2.26 s for plain mlx-lm, reads the prompt at 2,466 tok/s against 1,460 and 1,829, and then decodes 1.6 times as fast as oMLX and 2.8 times as fast as plain mlx-lm.
| Engine and pack | First token | Prefill |
|---|---|---|
| MTPLX, Inkling 2 Mini Bare Speed | 1.69 s | 2,466 tok/s |
| MTPLX, Inkling 2 Mini Optimized Speed | 1.73 s | 2,397 tok/s |
| MTPLX, Inkling 2 Mini Optimized Quality | 1.84 s | 2,257 tok/s |
| oMLX with its own draft head, official weights | 2.83 s | 1,460 tok/s |
| plain mlx-lm, official weights, no draft | 2.26 s | 1,829 tok/s |
Measured on one MacBook Pro M5 Max with 128 GB on 22 November 2026, each engine through its own server with a fresh server for each run, the same 4,142-token prompt, temperature 1.0, top-p 1.0, top-k off and reasoning effort medium, three seeds (29, 31 and 37) taken in turn across the engines, every run starting and ending at macOS thermal pressure nominal. First token and prefill (the prompt's tokens over the first-token time) are timed at the client on the new prompt, and the decode ratio compares each engine's mean decode on a second request with that prompt cached; each figure is the mean over the runs (Inkling 2 Mini Optimized Quality: seeds 29 and 31, as the other run did not meet these conditions); Inkling 2 Mini Optimized Speed has no run on that sheet and is shown from one run on the release build. MTPLX 2.13.0. oMLX 0.8.0 (commit a9e23054) with its own draft head, and plain mlx-lm (commit 0c4c9919) with no draft, both on the official thinkingmachines/Inkling-2-Mini weights (revision 6e7c8248) with MLX 0.32.4.
Inkling 2 Mini
- A new model. Inkling 2 Mini is Thinking Machines Lab's open-weights model for coding, agents and images, released on 20 November 2026 under the Apache License 2.0, with 26.4 billion parameters, 3.4 billion of them active for each token, and a context window of up to 1M tokens according to its model card. It reads images natively.
- Three packs. Bare Speed (16.0 GB) keeps the official 4-bit experts and stores the attention, the output head and the embedding in 4 bits, Optimized Speed (17.2 GB) keeps the attention and the output head in 8 bits, and Optimized Quality (20.2 GB) is the official weights unchanged. Every pack carries the model's whole vision tower and its draft head, and needs MTPLX 2.13 or later.
- Three FP16 packs for M1 and M2 Macs. M1 and M2 chips have no native bfloat16, so each pack has an FP16 build that stores its 16-bit weights as float16 and keeps every 4-bit and 8-bit code as in its parent, and the app and
mtplx startpick it for you. All three passed MTPLX's release check (the coding tests, 6 of 6, the screenshot and the tool call) on the code path an M1 or M2 takes, run on an M5 Max. - Which Mac gets which pack. The app's model picker, its first-run screen and
mtplx startread your chip and memory and offer only the packs that fit: Bare Speed from 24 GB on an M3 or later, all three from 32 GB, and the FP16 builds from 32 GB on an M1 or M2 (no pack fits a 16 GB Mac). The context column is the longest conversation MTPLX admits for the first pack on that much memory:
| Your Mac | Inkling 2 Mini pack to use | Also fits | Context |
|---|---|---|---|
| 8 GB, M3, M4 or M5 | None fits. MTPLX recommends Qwen 3.5 4B Optimized Speed. | ||
| 16 GB to 18 GB, M3, M4 or M5 | None fits. MTPLX recommends Bonsai 2 27B Optimized Speed. | ||
| 24 GB, M3, M4 or M5 | Inkling 2 Mini Bare Speed | none | 24,576 tokens |
| 32 GB, M3, M4 or M5 | Inkling 2 Mini Bare Speed | Optimized Speed, Optimized Quality | 163,840 tokens |
| 36 GB, M3, M4 or M5 | Inkling 2 Mini Bare Speed | Optimized Speed, Optimized Quality | 245,760 tokens |
| 48 GB, M3, M4 or M5 | Inkling 2 Mini Bare Speed | Optimized Speed, Optimized Quality | 434,176 tokens |
| 64 GB, M3, M4 or M5 | Inkling 2 Mini Bare Speed | Optimized Speed, Optimized Quality | 749,568 tokens |
| 96 GB to 512 GB, M3, M4 or M5 | Inkling 2 Mini Bare Speed | Optimized Speed, Optimized Quality | 1,048,576 tokens |
| 8 GB, M1 or M2 | None fits. | ||
| 16 GB to 24 GB, M1 or M2 | None fits. MTPLX recommends Qwen 3.5 9B Optimized Speed FP16. | ||
| 32 GB, M1 or M2 | Inkling 2 Mini Bare Speed FP16 | Optimized Speed FP16, Optimized Quality FP16 | 163,840 tokens |
| 64 GB, M1 or M2 | Inkling 2 Mini Bare Speed FP16 | Optimized Speed FP16, Optimized Quality FP16 | 749,568 tokens |
| 96 GB to 192 GB, M1 or M2 | Inkling 2 Mini Bare Speed FP16 | Optimized Speed FP16, Optimized Quality FP16 | 1,048,576 tokens |
- Vision. Every pack reads screenshots, diagrams and photos, and an image turn uses the same prompt cache, fast decode path and memory plan as a text turn. In MTPLX's release check each of the six packs read a screenshot of a failing test, named the test and both counts, and called the tool it was offered.
- The prompt cache in every client. A follow-up turn reads only what is new, in Pi, OpenCode, Hermes and the app's Chat; the table gives the share of prompt tokens served from the cache after the first turn, one session per client on Bare Speed.
The cache in each client the release offers, on Inkling 2 Mini Bare Speed: the share of prompt tokens served from the cache over every request after the first. A new paste or tool result counts as prompt, so no session reaches 100%.
| Client | Session | From the cache |
|---|---|---|
| Pi | one prompt to build a browser game, Pi's thinking at xhigh: 18 turns in one part to a 113,202-token context, with a screenshot and the server restarted 3 times | 99.7% |
| OpenCode | 11 turns with file tools, an image and a 9,919-token tool result; the server restarted halfway | 91.8% |
| OpenCode, M3 and M4 code path | the same OpenCode session, on the code path M3 and M4 Macs take | 91.5% |
| Hermes | 11 turns with file tools; the server restarted halfway | 97.9% |
| The app's Chat | 10 turns with a pasted image and a 9,448-token paste; the app quit and opened again halfway | 89.8% |
After a restart, Pi picked its conversation up from the SSD cache in 1.45 s, Hermes in 0.48 s and the app's Chat in 0.63 s to the first token; OpenCode read its conversation again (see Known issues).
- Its own kernels and draft head. Inkling 2 Mini runs on Metal kernels written for it, and the model's own draft head proposes several tokens that the full model checks in one pass, so the output keeps the model's own distribution at any temperature. When an agent rewrites a file or repeats a patch, MTPLX also proposes up to 24 tokens at once from the prompt: a 315-line file rewrite on Bare Speed ran at 114.9 tok/s against 89.8 with this off.
- Faster prefill on M5 Macs. On an M5 Mac with at least 12 GB of GPU memory to spare beyond the model, a prompt is read 2,048 tokens at a time instead of 512, and prompts of 4,096 tokens and more use a new attention launch on the GPU's tensor units. As on any engine, two correct ways of reading a prompt can lead to differently worded answers.
- M1 to M4 Macs. They take a code path without the M5's tensor units: on an M5 Max forced onto it, Bare Speed generated 106.1 tok/s on a cached conversation and answered a follow-up's first token in 0.06 s, and an M3 or M4 with less memory bandwidth will be slower. Prompts of 4,096 tokens or more now read faster there, in one attention launch on the GPU: in two pairs of runs Bare Speed read a 4,179-token prompt at 812 and 903 tok/s instead of 745 and 813 and a 16,467-token prompt at 801 and 845 instead of 699 and 695, with peak memory flat.
- Its own sampler, and the agents ready to go. The app,
mtplx startandmtplx serverun Inkling 2 Mini at temperature 1.0 over its whole distribution, as its generation settings say, and a client that s...
MTPLX 2.12.3
MTPLX 2.12.3
MTPLX 2.12.3 is a bug-fix release. Its main fix brings back the prompt cache for Flash-Next in OpenCode and in plain API clients. In 2.12.2 those clients read their whole conversation again on every request, so each turn waited longer for its first token than the one before.
It also fixes an HTTP 500 that stopped Flash-Next turns after a compaction, a restore from the SSD cache that could build an answer on another conversation's saved state, four more SSD cache bugs, a server that stopped answering after about two days on an Ultra, and a set of problems in Claude Code, Codex and OpenCode sessions.
Highlights
| What you do | 2.12.2 | 2.12.3 |
|---|---|---|
| Start an OpenCode 2.2.5 session on Flash-Next Optimized Speed (its first 21 requests) | 2 refused with "already in flight". All 18 follow-ups read their whole prompt again (21,452 to 36,643 tokens each), so no prompt token came from the cache | None refused. No follow-up read its prompt again. 97.2% of prompt tokens came from the cache, and the median first token took 0.28 s |
| Keep a plain chat going with the SSD cache off, from a client that drops reasoning (#291, with the reporter's flags) | Turns 2 to 5 read their whole prompt again, with 0 tokens from the cache | From turn 4, each turn resumes where the previous prompt ended (888 of 1,615, 1,615 of 1,955 and 1,955 of 2,006 tokens from the cache) |
| Run a five-turn OpenCode 1.19.5 session on Flash-Next | 0 of 19 requests after the first reused the cache. The first token took 3.0 to 9.9 s and grew with the conversation (median 6.3 s in tool loops) | 30 of 30 reused it, for 98.4% of all prompt tokens. The first token took 0.15 to 0.98 s (median 0.18 s in tool loops and 0.17 s at each new turn) |
| Run a five-turn Pi 1.4.0 session on Flash-Next | 97.8% of prompt tokens from the cache, 34 of 34 requests | 96.7%, 24 of 24. Pi was never affected by this bug |
| Run plain API chat, OpenCode chat, an OpenCode tool loop and a new chat about the same document, on a small Flash-Next test model | 0 of 16 follow-up turns reused the cache | 16 of 16, with the SSD cache on and off, and 12 of 12 with a 17,000-token first message |
| Continue a Flash-Next conversation after a compaction, with the SSD cache on (#592, #605) | HTTP 500 "QSA pooled hold N rows; resizing to M would cut them" | Served (a replay of #605, in tests) |
| Resume a Flash-Next conversation from the SSD cache when a longer saved conversation starts the same way (#635) | 25 of 64 new tokens got a different attention output, taken from the other conversation (in a replay) | The same tokens and final logits as reading the conversation from scratch (in tests) |
| Resume a 62,000-token Qwen 3.8 27B conversation from the SSD cache on an M5 Pro with 64 GB (#668) | 124.7 s to the first token, decode 15.0 tok/s | 23.4 s, decode 23.7 tok/s |
| Send a message from Codex desktop 26.1016 (#658) | Refused with a 400 | Served (the report's request, in tests) |
| Run several Claude Code subagents at once | 409 "already in flight", then retries | Each subagent runs in its own session (Claude Code's captured headers, in tests) |
| Keep a Flash-Next server running for two days on an Ultra (#640) | Every request failed at Metal's 499,000-buffer limit until a restart | Idle conversations release their saved state and the next request runs (in tests) |
How these were measured:
-
The OpenCode 2.2.5 and #291 rows ran on November 4 on an M5 Max with 128 GB, through
mtplx serveon Qwen 3.8 Flash-Next Optimized Speed with fans at maximum, 2.12.2 and 2.12.3 one after the other. The SSD cache was on, except in the #291 row. -
OpenCode ran as the command-line client inside OpenCode Desktop 2.2.5, with MTPLX's own OpenCode setup. The 2.12.2 OpenCode run started after an hour of continuous work at heavy thermal pressure, so its first-token times are not compared. Refusals, re-reads and cache shares do not depend on heat.
-
The #291 row uses the reporter's flags (
--profile turbo --context-window 131072, SSD cache off). Its turns 2 and 3 share fewer than 512 tokens with the turn before, which is below the size a saved prefix is restored from. -
The OpenCode 1.19.5 and Pi 1.4.0 rows ran on October 30 on the same Mac, through
mtplx serveon Qwen 3.8 Flash-Next Bare Speed with the SSD cache on and fans at maximum. Each client ran alone, with the same five prompts in a fresh project and a fresh home folder, 2.12.2 and 2.12.3 one after the other. The answers differ between runs (temperature 1.0), so the sessions do not grow to the same length. -
Times to the first token are the server's own, from its request log.
-
The test-model row uses a 0.2 GB model with Flash-Next's structure, served by the real server on the same compiled path. It shows cache reuse, not speed.
-
The #668 row is the contributor's measurement. Rows marked "in tests" come from tests built from the reporters' requests, or from a replay of the reported failure.
What changed
Prompt cache
-
Flash-Next follow-up turns reuse the conversation again (#591, #616, #649). In 2.12.2, when MTPLX kept no live copy of a Flash-Next conversation, it saved the conversation without the draft head's history. That is the case for OpenCode's tool turns, for API clients that send no session id, and for a turn saved after it ended. The next turn found the saved conversation but could not resume from it, so it read the whole prompt again, and the request log called it a new session. Saved conversations now keep that history, as they did before 2.12.2. The conversation that stays live is still not copied. A turn that finds a conversation saved by 2.12.2 without its history now says
no_snapshot_coverageinstead ofnew_session. -
A new conversation about the same document resumes inside the earlier prompt (#649, #637 by @jvmenen). When the memory guard skipped the separate save of a prompt read from scratch, the restore points recorded while it was read were dropped. The turn's final save now keeps them. A new conversation that shares the system prompt, the tools or a long document now resumes at the nearest of those points instead of reading everything again.
-
Plain Flash-Next chat with the SSD cache off resumes at the previous turn (#291). Some clients send the answer back without its reasoning, so the history changes where the assistant's turn starts. The next turn then resumes from a point saved at the end of the previous prompt. Without the SSD cache, that point was saved only for requests with tools, so every plain chat follow-up resumed at the first turn's prompt and read one more answer again than the turn before. Flash-Next now saves it for plain chat too, without copying the conversation.
-
A retry or regenerate resumes from the saved prompt (#661 by @a3rosol). Sending the same prompt again read it from the start: 23.5 s on a 16,000-token prompt on an M1 Ultra in the report. The saved answer now keeps the prompt's last logits, about 1 MB, so a retry starts answering at once.
-
Long sessions without a session id keep their cache (#624). Some clients send no session id on
/v1/chat/completions. When MTPLX rendered one of their earlier answers back slightly differently from how it generated it, the session was lost once the conversation grew past about four times the point of that difference. The next turn then restored only an old part of the conversation: 35,440 of 163,242 tokens, and 95.6 s to the first token, in the report. A difference anywhere inside an answer MTPLX generated now keeps the session at any length. A difference inside a message you wrote still starts a new session. -
MTPLX_MTP_HISTORY_POLICY=cyclekeeps the prompt cache (#400, #422). On M1 and M2 Macs the default draft history can make each verify step slow (4 to 5 tok/s on an M2 Max in #400), andcycleis the setting that brings the speed back. With it, every turn read the whole conversation again: 166 s to the first token at 76,000 tokens and 292 s at 108,000 on an M2 Ultra, from #422. The server saved each turn under a different label from the one the next turn looked for. Saved conversations now restore undercycleas they do by default. Nothing changes if you do not set it. -
Plain decoding resumes each conversation from the previous turn. With
--generation-mode ar,--no-mtp,--stock-aror--no-load-mtpon a Qwen model, a follow-up turn resumed from the last turn that added at least 1,024 tokens, so it could read up to about 1,000 tokens of the conversation again. Plain decoding now saves each prompt before it answers, as speculative decoding does, and the next turn resumes there. This matters most on M1 and M2 Macs that switch Flash-Next to plain decoding (#400).
Flash-Next and the SSD cache
-
No more HTTP 500 before the first token after a compaction (#592, #605). A turn failed with
QSA pooled hold N rows; resizing to M would cut them, and instant retries failed the same way. It happened when a turn resumed from the start of a longer saved conversation: after a compaction, after an edited message, or in a new conversation with the same system prompt and tools. The attention index carried the longer conversation's block count into the restored turn. The count now comes from the restored conversation itself (#650 by @goodbadwolf), and a resize keeps only the blocks the conversation covers (adapted from #657 by @transcendence-x). In a replay of #605, the turn that raised the error now resizes 122,880 bytes of index buffers and continues on the compiled verifier. -
No more answers built on another conversation's blocks (#635). The same inherited count made a restored turn pick attention blocks from the longer saved conversation, and every later turn inherited them. In a replay, 25 of 64 new tokens got a different attention output. A restored turn now produces the same tokens and final logits as reading the conversation from scratch.
-
**Flash-N...
MTPLX 2.12.2
MTPLX 2.12.2
MTPLX 2.12.2 fixes a regression in 2.12.1 that refused ordinary prompts on Macs with 8, 16 and 32 GB of memory. The memory guard in 2.12.1 charged every model as if it were the 27B and counted the engine's normal memory as a leak, so the model the app picks for those Macs answered many prompts with a 507 "insufficient memory" error. 2.12.2 prices each prompt at what it was measured to use, runs a prompt in smaller chunks before refusing it, and stops charging a small Mac for memory a healthy engine always holds. Macs with 64 GB or more, Flash-Next and the context windows are unchanged.
Highlights
| What you do | 2.12.1 | 2.12.2 |
|---|---|---|
| Send a one-line request to Qwen 3.5 4B on GitHub's 7 GB M1 test machine | Refused with a 507, twice | Served |
| Send an 18-token prompt to Qwen 3.5 4B on an 8 GB Mac with 3 GiB free | Refused with a 507 | Served |
| Send 2,500 and 10,000-token prompts to the 4B on an 8 GB Mac with 3 GiB free | Both refused | Both served |
| Run a five-turn agent session (2,532 to 7,589 tokens) on the 4B, 8 GB Mac, 3 GiB free | Not run | All five turns served, each reusing the previous turn |
| Send 2,600, 6,800 and 7,800-token prompts to Ternary Bonsai 2 27B on a 16 GB Mac | All three refused | All three served |
| Start an agent session on Bonsai 2 27B on a 16 GB Mac | The first turn (2,570 tokens) was refused | Four turns served, 2,580 to 6,467 tokens |
| Send 6,800 and 7,800-token prompts to Qwen 3.8 27B Optimized Speed on a 32 GB Mac | Both refused | Both served |
| Run an agent session on the 27B on a 32 GB Mac | The third turn (about 5,100 tokens) was refused | Four turns served, 2,584 to 6,385 tokens, and also with only 4 GiB free |
| Continue the 99,355-token 27B turn from #499 on a 48 GB Mac | Refused before its prompt was read | Runs in 1,024-token chunks, priced at 34.87 GiB against the 36 GiB limit (tests with the reporter's numbers) |
The first row ran on GitHub's macOS 14 test machine, an M1 with 7 GB, on October 2 (2.12.1) and October 3 (the 2.12.2 code). The other rows come from runs on October 3 on an M5 Max with 128 GB, set up as each smaller Mac: the engine's memory limit for that Mac (8, 12 and 24 GiB), its free-memory floors, a fixed reading of free memory (8 GiB on the 16 and 32 GB rows unless stated), and the model the app picks for that Mac, one model at a time, with 64-token answers. 2.12.1 and 2.12.2 ran the same requests, except the 8 GB agent session. 2.12.0, run on the same requests, served the 16 and 32 GB rows and the 18 and 2,500-token prompts on the 8 GB Mac, and refused the 10,000-token one.
What changed
-
Each prompt is priced at what it really uses. 2.12.1 charged every model the 27B's figure of 3 GiB for each 2,048-token chunk of a prompt, and about 2 GiB even for a one-line prompt. Measured through
mtplx serveon October 2 and 3, a chunk of the 4B uses 0.19 GiB for a 59-token prompt and 1.55 to 1.65 GiB at 2,048 tokens, a chunk of Bonsai 2 27B uses 0.45 GiB for a 98-token prompt, and Bonsai and the 27B use 2.5 to 2.7 GiB at 2,048 tokens. The 4B, the 27B and Bonsai are now charged those amounts plus a margin of 0.09 to 0.25 GiB, and the 9B models by the same rule. Models with routed experts (Qwen 3.6 35B-A3B), Flash-Next and Gemma 4 keep the prices they had in 2.12.1. -
A prompt that does not fit runs in smaller chunks. Before refusing a prompt, the engine now tries 1,024-token chunks and, for prompts up to about 8,000 tokens, 512-token chunks. A 1,024-token chunk uses about 1 GiB less than a 2,048-token one on the 27B models, and the saving holds as the conversation grows (measured to 8,000 tokens on the 27B models and 49,000 on the 4B). A 512-token chunk uses less again on short prompts, but more as the conversation grows, so the engine only picks it where it is cheaper. Smaller chunks are a little slower: in single runs, not a controlled speed test, a 7,000-token prompt on Bonsai took 9.5 s in 2,048-token chunks, 9.6 s in 1,024 and 9.7 s in 512. The engine uses a smaller chunk only when the prompt would not fit otherwise and the smaller chunk saves at least 128 MiB.
-
Memory the engine holds outside the GPU allocator is charged only past 4 GiB on Macs under 64 GB. 2.12.1 charged everything past a sixteenth of RAM, which is 1 GiB on a 16 GB Mac and 2 GiB on a 32 GB Mac. A healthy engine holds 2.1 to 2.9 GiB there with Bonsai and 2.3 to 4.0 GiB with the 27B, so normal use was counted as a leak. Memory past 4 GiB is still charged, so a leak like #546 is still caught. Macs with 64 GB or more keep a sixteenth of RAM, up to 8 GiB.
-
Dependencies. urllib3 is now 2.8.0 (#582).
Validated
| Check | Result |
|---|---|
| Prompt memory of the 4B, Bonsai 2 27B and the 27B, in chunks of 512, 1,024 and 2,048 tokens, prompts from 60 to 49,468 tokens | 43 requests through mtplx serve, the source of every price above |
| Before and after on 8, 16 and 32 GB settings, as in the table | 2.12.1, 2.12.0 and 2.12.2 on the same requests |
| GitHub's 7 GB M1 test machine: download the 4B, start the server, answer a one-line prompt | Passed on the 2.12.2 code; failed with a 507 on 2.12.1 |
| Test suites on the release commit | pytest 11,284 passed (13 new tests for these cases), Swift 1,104 passed, M1 to M4 rehearsal 763 passed, 0 failures |
| The release wheel, installed fresh, on the 8, 16 and 32 GB settings | Same results as the table above |
Known issues
- No 8, 16 or 32 GB Mac has run this release with a full desktop. Apart from GitHub's 7 GB M1 test machine, which runs nothing else, the rows above come from an M5 Max set up as each of those Macs. The limits, floors and prices are the same arithmetic a real Mac of that size uses, but the free memory on a real Mac moves while other apps run.
- With little memory free, longer prompts are still refused. The engine keeps at least 1 GiB free for macOS, as 2.12.0 and 2.12.1 did. With 2 GiB free on an 8 GB Mac, a 2,500-token prompt was refused 0.2 GiB short. With 3 GiB free on a 16 GB Mac, prompts up to 5,100 tokens were served and 6,300 and 6,800-token prompts were refused 0.1 to 0.2 GiB short. Closing other apps frees the memory these need.
- The known issues of 2.12.1 still apply, except two: the 8 GB pricing entry, which this release fixes, and the #499 refusal on 48 GB Macs, which now runs in smaller chunks in the tests. See the 2.12.1 release notes.
Upgrading
Run brew upgrade mtplx or pip install -U mtplx, or use the app's update check. You don't need to change any settings.
Contributors
- urllib3 2.8.0, by @dependabot in #582
Full changelog: v2.12.1...v2.12.2
MTPLX 2.12.1
MTPLX 2.12.1
MTPLX 2.12.1 is a stability release for long coding sessions. It rewrites the memory guard that decides whether a request may run: every request is now priced before its prompt is read, idle conversations are released before anything is refused, and a refusal says what holds the memory and when a retry can work. On 128 GB Macs the engine now leaves more room for your other apps, a Pi compaction no longer waits behind the idle conversation it summarizes, and Flash-Next keeps its saved conversation through screenshots and its compiled verifier past 140K tokens.
On October 2, on an M5 Max with 128 GB, a Pi session on Flash-Next Optimized Speed grew to 204,981 tokens with 12 screenshots, with no errors and no memory stops. 86 of its 87 turns restored from RAM, and all 50,769 verify steps ran compiled. The one turn that read the conversation again hit a defect in that build, which is fixed in this release. A real Pi compaction of that session was served with no refusal and with swap flat. The release also fixes the leak behind "Failed to create Metal shared event" (#544), JSON schema output that looped on whitespace (#547), NaN output with 4-bit and 8-bit KV cache (#526), an app badge stuck on Degraded (#528) and mtplx start downloading a model you had already picked (#573). Every real-model check ran on that one Mac, and Known issues lists what is untested or still open.
Highlights
| What you do | 2.12.0 | 2.12.1 |
|---|---|---|
| Let Pi compact a long Flash-Next session on a 128 GB Mac (#567) | The summary request was refused with a 507 13 times in a row while the idle conversation kept its memory, until a restart | Pi's two summary requests (138,774 and 21,597 tokens) were served with no refusal, and swap stayed flat (October 2) |
| Keep working right after that compaction | In one report, a memory abort repeated on every resume until a restart | The next turn (33,608 tokens and a screenshot) was served, and the turn after it reused 33,752 tokens from RAM (October 2) |
| Work in Pi with screenshots in the conversation | A turn that changed anything after a screenshot resumed at best before the first screenshot, and could read the whole conversation again | 86 of 87 turns restored from RAM and 99.2% of all prompt tokens were reused, with 12 screenshots, up to 204,981 tokens (October 2) |
| Send a screenshot after a tool call from a streaming client, as OpenCode does (#581) | 3 of 5 streaming requests failed with "vision requests must not use the session bank without content-keyed ids" | 5 of 5 were served (October 2) |
| Keep a Flash-Next conversation going past 140K tokens | The compiled verifier first copied the attention cache into a padded buffer, 4.2 GB at 147,396 tokens, and verified eagerly when memory could not fund the copy | The cache grows in place, one layer at a time (0.36 to 0.57 GB at that size), and 50,769 of 50,769 verify steps ran compiled (October 2) |
| Run long non-streaming jobs on Flash-Next (#544) | About 2,900 Metal events were held during one 4,096-token answer, and the server failed after 141K to 263K generated tokens | 1 to 9 events through three 4,096-token answers (October 2). A run past 140K generated tokens has not been repeated |
| Run at a 90 GiB memory limit on a 128 GB Mac | Memory outside the GPU allocator was forgiven up to 22 GiB, so the process could still reach 112 GiB | Forgiven up to 8 GiB, so the guard holds the process to 98 GiB (October 2) |
| Ask Flash-Next for strict JSON (#547) | 7 of 153 requests wrote whitespace or carriage returns until max_tokens, with the keys in alphabetical order |
16 of 16 replayed requests were valid and in the schema's order, with at most 3 whitespace characters in a row (September 27) |
| Use 8-bit or 4-bit KV cache on the 27B with a long answer (#526) | Every logit came back as NaN, and the request failed with HTTP 500 | An 18,893-token answer that counts to 4,000 finished correctly at both settings (September 27) |
| Continue a long 27B agent session on a 48 GB Mac (#499) | A 99,355-token turn produced nothing in 1,224 s before OpenCode gave up | Refused before its prompt is read, with a 507 that says why (tests with the reporter's numbers) |
| Send a 24,026-token prompt to Gemma 4 31B | 92.08 GiB peak, 173.5 s to the first token | 31.1 GiB peak, 45.1 s, and a 33,026-token prompt fits in 37.75 GiB (September 27) |
| Use OpenCode with a context window under 64K tokens | Every answer was capped at OpenCode's reply reserve: 16,384 tokens on a 32,768-token window | Answers are no longer capped by the reserve (tests) |
Pick a model folder in mtplx start (#573) |
The next start offered a 20.7 GB download of the default instead | The folder loads on every start (tests) |
Rows dated October 2 come from a build of this release running in the app on an M5 Max with 128 GB, with Flash-Next Optimized Speed at the default 90 GiB limit and Pi. The compaction ran on a copy of that session while the Mac was busy with other work, so its times are not quoted here. The #581 row comes from the reporter's script against mtplx serve with Qwen 3.8 27B Optimized Speed on the same Mac, five runs on each version. Rows dated September 27 come from builds of the same fixes on the same Mac, and rows marked tests come from the tests of each fix. The 2.12.0 column comes from bug reports, from 2.12.0's code and from runs on the same Mac; the Gemma 4 row's first column was measured on a September 27 build whose Gemma prompt processing was still 2.12.0's.
Memory: the guard, rewritten
These changes apply to every model and every Mac. They were measured on an M5 Max with 128 GB. The limits below scale with each Mac's memory, but no Mac with 8 to 64 GB has run this release.
-
Every request is priced before its prompt is read. 2.12.0 checked only requests with 4,096 or more uncached tokens, and it charged those tokens once plus a flat 3 GiB, so a short turn on a long conversation was never checked. Now every request is priced at its largest moment: the end of prompt processing (including the copy a restore makes), the move to paged memory, and the start of the answer. On a 48 GB Mac with the 27B, the turn from #499 is priced at 39.47 GiB and refused before its prompt is read, where 2.12.0 admitted it and reached 38.5 GiB against a 36 GiB limit. On a 64 GB Mac with 4-bit KV cache (#525), a 250K-token prompt was projected at 7.6 GiB and needed 20.1 GiB; the price now covers the full-width rows that exist while the 4-bit pages are filled.
-
Idle conversations go before anything is refused. When memory is short, the engine first gives back what it holds for itself: its buffer pool, then the RAM copies of conversations that are not generating, oldest first and those already saved to SSD first. A conversation that is generating is never touched, and a request that arrives for a conversation being released waits for it instead of getting a 409. A new request, a compaction included, no longer waits behind an idle conversation's memory. A 507 that remains names what holds the memory and when a retry can work.
-
The engine reads what macOS can actually hand out. 2.12.0 read macOS's memory level, which counts memory that macOS can free only by compressing other apps as available. The engine now reads free, purgeable and file-backed pages, checks them before every chunk of a prompt, and stops a prompt with a 507 instead of pushing the Mac into compression. The stop floor is the largest of 1 GiB, 2.5 percent of RAM and a sixteenth of the memory macOS has wired, and the shed floor is twice that: 6.2 to 6.4 GB and 12.4 to 12.8 GB in the October 2 session. A prompt also stops when macOS has compressed another eighth of RAM during a run of requests (16 GiB on a 128 GB Mac), or holds a quarter of RAM compressed while it is still losing ground. The early compression that macOS 27 does on a healthy Mac does not count. On September 29, 2.12.0's 130,048-token cold Flash-Next prompt drove 27 GB into compressed memory until the test's watchdog stopped it, and a build of this release (0e0bb014) served the same prompt with no swap and 15 MB of compressor growth. That prompt has not been run again on the final build.
-
Memory outside the GPU allocator now counts. 2.12.0 forgave up to the larger of 8 GiB and RAM minus the system reserve minus the limit, so a lower limit raised the allowance by the same amount and the ceiling never moved: 112 GiB on a 128 GB Mac at a 96, 90 or 88 GiB limit. The allowance is now a sixteenth of RAM, between 1 and 8 GiB (8 GiB from 128 GB up), memory past it is charged, and an explicit limit caps it at a twelfth of the limit. A lower limit now lowers the whole ceiling, and on October 2 the process ceiling was 98 GiB at the 90 GiB default.
-
The buffer pool goes back to macOS. MLX keeps freed GPU buffers for reuse, up to 8 GiB on a 128 GB Mac, and 2.12.0 kept them through the client's whole think-and-tool time: 0.53 GiB at the median and 3.5 GiB at p90 over 4,104 logged requests. The pool now goes back after every completed request and after a second with no work. While work runs it keeps its full size, because a 2 GiB bound cost 6 to 10 percent of the prompt speed at 16K and 64K tokens.
MTPLX_CLEAR_CACHE_AFTER_REQUEST=offkeeps the pool. -
The prompt chunk narrows before anyone's memory is taken. When the Mac is short, the engine first clears its own buffer pool, then runs Flash-Next's prompt in 2,048-token chunks instead of 4,096, and only then releases conversations. The chunk width is chosen again after memory is freed, so a prompt that fits once idle state is released keeps its 4,096-token chunks.
-
The price covers what each model really allocates. That includes a quantized KV snapshot at full width (a 250K-token 27B snapshot is 15.3 GiB, not the 4.9 GiB of its 4-bit pages), the routed experts of MoE layers, the draft head's history (4,096 bytes a token on the 27B) and Gemma 4's own prompt...
MTPLX 2.12.0
MTPLX 2.12.0
MTPLX 2.12.0 adds three models and makes Flash-Next much faster at reading long prompts. Ternary Bonsai 2 27B from Prism ML brings a 27B-class model with image input to Macs with 16 GB of memory. MiMo V2.6 Qwen 9B is Xiaomi's coding model built on Qwen 3.5 9B, and Flash-Next Optimized Quality is an 8-bit Flash-Next for Macs with 256 GB or more.
Flash-Next now reads a 4,061-token prompt 85 percent faster than 2.11.3, and its first token after a 65,502-token prompt arrives 25 seconds sooner. The release also fixes thinking that leaked into answers, conversations that were processed again after Stop or in long sessions, a memory guard that could not see all of the memory in use, and a repetition stop that cut real code.
Highlights
| Flash-Next | 2.11.3 | 2.12.0 |
|---|---|---|
| Time to the first token, 4,061-token prompt | 5.26 s | 2.88 s |
| Prompt processing, 4,061-token prompt | 786 tok/s | 1,453 tok/s (+85%) |
| Decode after a 4,061-token prompt | 74.4 tok/s | 74.1 tok/s (the same) |
| Time to the first token, 65,502-token prompt | 85.5 s | 60.1 s |
| Prompt processing, 65,502-token prompt | 768 tok/s | 1,094 tok/s (+42%) |
| Decode after a 65,502-token prompt | 56.1 tok/s | 63.5 tok/s (+13%) |
These pairs were measured on September 22 on an M5 Max with 128 GB. Both versions used the same Python runtime and were booted in the order 2.11.3, 2.12.0, 2.12.0, 2.11.3, with one model loaded at a time and the fans at maximum. Thinking was off, each answer was 512 tokens, sampling used the model's own settings with seed 1731, and the GPU memory limit was raised to 120 GiB (iogpu.wired_limit_mb=122880; the default is about 96 GiB). The prompt kernels described under Speed were added after this run. In their own paired run they added another 16 percent to prompt processing at 16K tokens and 9 percent at 64K, and with them 2.12.0 read a 65,529-token prompt at 1,548 tok/s, so the release is faster than this table shows.
| What you do | 2.11.3 | 2.12.0 |
|---|---|---|
| Press Stop in the app, then send again | A new session: 26,294 tokens processed again, 24.5 s to the first token | The same session: 10,918 of 10,928 prompt tokens reused |
Paste a traceback that contains </parameter> |
The rest of the thinking shows up in the answer | The thinking stays in the reasoning pane (10 of 10 test requests) |
| Stream a Gemma 4 reply without tools | Fails with AttributeError after the reply is generated |
Finishes normally |
| Continue a 149,649-token session that is over its cache allowance (#499) | The whole prompt is processed again every turn, 570 s to the first token | The next turn restores from RAM or SSD |
| Keep a long session going past its cache allowance (#456) | Memory grows by 3.7 GiB per turn | One saved state per session, freed when it is replaced |
| Send a request while a session is being saved to SSD (#505) | The request waits more than 500 s, then times out at 300 s | The save pauses for it in under 200 ms |
| Send an image to Flash-Next | Eager verification for the whole conversation | Compiled verification, 101.6 tok/s instead of 97.2 |
| Run Flash-Next on a Mac with 160 GB or more | The 29.8 GiB n-gram table is also kept in GPU memory | The table streams from SSD and the memory is free |
| Ask for a Tetris board, or a patch that makes the same edit in 15 places | The repetition stop cuts the repeated rows and ends the reply | Written in full, because the repetition stop is now off by default |
The rows in this second table come from bug reports and from the tests of each fix.
New models
Ternary Bonsai 2 27B (#515)
Prism ML's Ternary Bonsai 2 27B is Qwen3.8-27B rebuilt with ternary weights, and it reads images. The pack Youssofal/Ternary-Bonsai-2-27B-MTPLX-Optimized-Speed is 8.85 GB. It carries Prism ML's language model and vision tower unchanged (8.60 GB) and adds the Qwen3.8-27B draft head (0.24 GB). The served id is mtplx-bonsai-2-27b-optimized-speed. Full credit for the model goes to Prism ML, and the pack carries their license and notice.
| Prompt | Bonsai before the new kernels | Bonsai, 2.12.0 | Qwen 3.8 27B Optimized Speed | Peak memory, Bonsai and 27B |
|---|---|---|---|---|
| 4,061 tokens | 50.4 tok/s | 64.4 tok/s (+28%) | 52.6 tok/s | 11.4 and 23.9 GB |
| 16,350 tokens | 45.2 tok/s | 57.1 tok/s (+26%) | 51.0 tok/s | 14.6 and 27.0 GB |
Measured on the same M5 Max, alternating boots of 2.12.0 without and with the kernels, one model loaded at a time, temperature 1.0, top-p 0.95 and top-k 20, thinking off, 512-token answers. The 27B ran in the same session. Bonsai is now faster than the 4-bit 27B at both lengths, in half the memory.
-
Two GPU kernels written for this pack. One applies Prism ML's Hadamard rotation in a single step and returns the same bits as the four operations it replaces. The other runs the ternary matrix multiply for decoding. It is as close to Prism ML's own float32 reference as the stock kernel (mean KL 2.92e-6 against 3.02e-6 over 1,630 positions of code, prose and reasoning), and greedy output is identical with the kernels on and off. Together they also make Bonsai read prompts 7 to 8 percent faster.
-
Every Bonsai load checks the kernels first. Both kernels are ordinary GPU code and run on every Mac from M1 to M5. On each load they are tested on that Mac's GPU against the stock operations. A kernel that fails is switched off until the engine restarts, the stock path takes over, and
/healthsays so. Only the M5 Max has measured their speed. -
Compiled verification. Bonsai now uses the compiled verifier. It matched eager verification in all 613 rounds checked.
-
Draft depth 1. The draft head is on by default at depth 1. With the new kernels, depth 3 was 14 percent slower than depth 1 over a 3,000-token answer. The head comes from Qwen3.8-27B and accepts 75 percent of its drafts on Bonsai.
-
Medium reasoning by default. Bonsai supports two reasoning efforts,
mediumandxhigh, andmediumis the default in the app, the CLI and every connected client. Prism ML states thatlowis not supported. On a stopwatch coding task,xhighspent 577 s and 21,848 reasoning tokens without reaching an answer, whilemediumfinished the task and a follow-up correction. -
It runs on 16 GB Macs. The memory planner refused any model that could not also fund a warm cache in RAM, which ruled out Bonsai on 16 GB. It now admits Bonsai there with an 8,192-token window (see Recommendations and memory). Measured by limiting a 128 GB M5 Max to each class's memory budget, with the draft head and the vision tower loaded:
| Mac memory | Engine budget | Context window | Peak with prompts up to 8K | Peak with a 16K prompt |
|---|---|---|---|---|
| 16 GB | 12.0 GiB | 8,192 tokens, no warm cache in RAM | 11.55 to 11.80 GiB | 12.11 GiB, over the budget |
| 18 GB | 13.5 GiB | 20,480 tokens (36,864 with 8-bit KV) | 11.55 to 11.78 GiB | 12.28 GiB |
| 24 GB | 18.0 GiB | 94,208 tokens (167,936 with 8-bit KV) | 11.55 to 11.78 GiB | 12.28 GiB |
With the draft head active under the 16 GB budget, a 7,006-token prompt and a 1,024-token answer peaked at 11.54 GiB of GPU memory and 12.79 GiB for the whole process, with no swap growth. In every run the peak sat about 3.1 GiB above the weights and the KV cache, which is what the planner sets aside.
MTPLX applies Prism ML's Hadamard rotation while it runs the model, and it refuses a pack whose rotation metadata or vision tower is missing.
MiMo V2.6 Qwen 9B
Xiaomi's MiMo-V2.6-Distill-Qwen-9B is Qwen3.5-9B fine-tuned for coding and agent work. It is in the catalog as MiMo V2.6 Qwen 9B Optimized Speed. The pack Youssofal/MiMo-V2.6-Qwen-9B-MTPLX-Optimized-Speed is 8.70 GB: the model at 6 bits with group size 64, the same recipe as Qwen 3.5 9B Optimized Speed, with Xiaomi's vision tower in BF16. Xiaomi's checkpoint has no draft head, so the pack uses the Qwen3.5-9B one. The served id is mtplx-mimo-v26-qwen-9b-optimized-speed. Full credit for the model goes to Xiaomi MiMo, and it is MIT licensed.
Xiaomi's model card reports it well ahead of the Qwen3.5-9B it started from:
| Benchmark (Xiaomi's model card) | Qwen3.5-9B | MiMo-V2.6-Distill-Qwen-9B |
|---|---|---|
| SWE Pro | 32.0 | 44.6 |
| Terminal Bench 2.1 | 27.0 | 37.1 |
| Toolathlon-Verified | 25.9 | 35.2 |
| SWE Verified | 60.0 | 61.1 |
-
Close to the original. Against Xiaomi's BF16 checkpoint over 19,265 tokens of code and prose, the 6-bit pack has a KL divergence of 0.0054 and picks the same top token 97.3 percent of the time. That is ten times closer than a mixed 4-bit build of the same model.
-
Draft head. The head was trained on Qwen3.5-9B, so it accepts fewer drafts on MiMo: 78.5 percent at the first position and 56.5 percent at the second, on a long game prompt with thinking on. Depth 2 is the default, as on the Qwen 9B.
-
Memory. It plans the same windows as Qwen 3.5 9B Optimized Speed: 20,480 tokens on 16 GB, 45,056 on 18 GB and 192,512 on 24 GB. The measured peak was 8.70 GiB at a 15K-token context.
-
Where it is suggested. On M3, M4 and M5 Macs with 16 GB or more, the app and the CLI list it right before Qwen 3.5 9B. On 16 to 31 GB Macs that makes it the second suggestion, after Bonsai 2. M1 and M2 keep the FP16 9B.
-
Speed. Not measured yet. Each forward pass does the same work as on Qwen 3.5 9B Optimized Speed, which has the same architecture and size, but the draft head accepts fewer tokens, as noted above.
Flash-Next Optimized Quality
An 8-bit build of Qwen 3.8 Flash-Next for Macs with 256 GB or more. The main model and the draft head are at 8 bits with group size 64, the structural weights stay in BF16, and the n-gram table is at 4 bits with group size 32. The download is 169.96 GB at Youssofal/Qwen3.8-Flash-Next-MTPLX-Optimized-Quality, and with the n-gram table on SSD the weights need about 128.5 GiB of memory. All 2,860 tensors were checked, and sampled values in...
MTPLX 2.11.3
MTPLX 2.11.3
This release fixes correctness first and gains speed along the way. Three separate audits of the decode path were run after two kinds of report, one that the 8-bit Quality pack loops and one that the answers are worse than the competition. Every defect the audits agreed on is fixed here, and each fix has a test. Speculative decoding on both flagship models is now measured exact by token id, at temperature 0 and at the native sampler, and warm agent turns restore the state they were saved with. None of this costs speed. On the same Mac, runtime and prompt, Flash-Next decodes up to 27 percent faster than 2.11.2. The release also brings 261k-token prompts on Flash-Next, a working draft head on 32 GB Macs, an SSD session cache that cleans itself, deep sessions on 64 GB Macs, Gemma 4 warm turns, ordered model folders, and a set of app and agent-harness repairs. Two repairs from the final day are measured the same way. A 19k-token app conversation with web search used to prefill from the start on every turn; its follow-ups now answer in 0.6 s instead of 15. A 109k-token OpenCode turn decodes at 61.8 tok/s instead of 48.8. Both were measured against the same build without the repair.
Measured on an M5 Max with 128 GB, 2.11.2 against 2.11.3 on the same Mac and the same Python runtime, alternating boots, fans at maximum:
| 2.11.2 | 2.11.3 | |
|---|---|---|
| Flash-Next decode, 9k-token code prompt, 1,500-token answer, thinking off | 62.5 tok/s | 79.3 tok/s (+27%) |
| Flash-Next decode, 8,848-token code prompt, September 8 measurement | 82.1 tok/s | 91.7 tok/s (+12%) |
| Flash-Next decode, 88-character Flappy Bird prompt at effort xhigh, 45k to 56k generated tokens | 66.5 and 62.6 tok/s | 66.8 tok/s (tie) |
| OpenCode and Pi agent sessions, mean decode per step over ten steps | 63.6 tok/s | 65.4 tok/s (+3%) |
| Draft acceptance by depth on the 9k-token prompt | 0.808 / 0.663 / 0.515 | 0.875 / 0.713 / 0.586 |
| Flash-Next at 261,120 tokens of context, first speculative verify step | out of GPU memory | decodes |
| Draft head on a 32 GB Mac | zeroed head, MTP acceptance under 1 percent | bit-identical head, built in row chunks |
| Hindi sentence, tokens produced (Thai, Arabic) | 32 (17, 45) | 20 (9, 31) |
| Hermes turn after a token that is not the standard encoding of its text, the next request | 29,842 tokens re-prefilled, 41 s to the first token | the saved token ids are reused, no re-prefill |
| OpenCode on an 8K window, reply budget advertised | the whole window (48 summaries in 98 turns) | half the window |
| SSD session store after three weeks of uptime, reporter's machine | 394,155 orphan files, 44.1 GB | reconciled at every open |
The first four rows are pairs measured on the same runtime on September 8 and September 16. Each speed section below says what was measured and how. The remaining rows are before-and-after states from the reports and the fixes. Every number is either measured here or quoted from a report, and the text says which.
Exactness: eight defects, each with a test
The reports pointed at the 8-bit weights. The weights are fine. The problems were in the code around them, and each one was reproduced on a small case before it was fixed.
| Defect | What it did | Fix | |
|---|---|---|---|
| 1 | Block verification at depth 3 was not distribution-exact | On a small vocabulary the acceptance rule is exact at depths 1 and 2 and off by up to 4e-2 total variation at depth 3, in the cases where the last depth's acceptance probability had been clipped to 1 | The rule now limits each depth's budget to what the earlier depths actually left it, passes that budget down, and corrects a rejection by the shortfall. A test enumerates the emitted distribution against the target for both rules at depths 1 to 4, exact to 1e-12 |
| 2 | A warm agent turn restored the wrong recurrent state on the hybrid models | A near-prefix restore whose gap to the banked turn was 1 to 8 tokens, the shape of a re-rendered agent turn, trimmed the attention cache but kept the recurrent state of the longer sequence, then ran one token on it. The whole turn decoded on a state the new prompt never produced, later turns inherited it, and the 8-bit Quality pack was affected exactly like the 4-bit ones | Every partial restore of a recurrent entry now lands on a stored recurrent boundary at or below the match point |
| 3 | The banked state after a speculative turn was one token short | The final token of a response (a deferred greedy correction, a fresh sample, or any max_tokens exit) was committed but never run through the model, so the next warm turn decoded as if the closing token never existed. Temperature-0 clients such as Cline hit it every turn | The final token is run through the model before the state is saved |
| 4 | Non-finite logits became token 0 | Token 0 is ! in the Qwen vocabulary: the thousands of exclamation marks of #311 |
The request ends with finish_reason: error and code non_finite_logits, with the NaN and inf counts in the message; the session's cached state is dropped and the daemon stays up. A row that constrained decoding masks to -inf with a finite winner is legitimate and passes the guard |
| 5 | The pipelined Flash-Next AR sampler measured top-p on the top-k slice | It kept one to five fewer of the top-20 tokens than the other sampling paths at 1.0 / 0.95 / 20 | The nucleus is measured on the full-vocabulary softmax, like the CPU reference |
| 6 | The Qwen3 pre-tokenizer regex had been replaced by the Qwen2 one | transformers' Qwen2Tokenizer split combining marks off their letters: Hindi 32 tokens instead of 20, Thai 17 instead of 9, Arabic 45 instead of 31 on the same sentences. Latin, code and Chinese were unchanged | The loader restores the Qwen3 regex on every Qwen3-family pack. The six 27B packs on the Hub keep the old regex in their tokenizer.json until they are re-pushed; the loader repair covers them either way |
| 7 | A copied block at the verify cache's growth edge lost its rows | On Metal the functional slice update silently drops the rows past the end of the buffer while the offset still advances over them, so the rest of the turn attended over missing rows. Present since 2.10.0, when the context-copy path and the fixed verify buffers were first combined | Both copy-block routes reserve their rows before the forward, the write grows the buffer as a last guard, and the request log counts the growths under context_copy_capacity_growths |
| 8 | Reasoning substitution served an old tool body | The check that decides whether a tool call was already served compared calls by their command or path only, so a write to the same file with new content counted as already served and the prompt carried the old body |
The check now compares the complete argument set, in both tool-call formats |
Defect 1 never ran on a shipped daemon, because the block-verify path was never switched on (see the serving settings below). The fix is what makes that path safe to switch on. Defect 7 is the biggest of the eight for a user: it is behind the mid-code cuts and the files written twice on 2.10.0 through 2.11.2.
The growth-edge defect in detail
The context-copy path proposes a block of up to 24 tokens copied verbatim from the prompt and verifies it in one forward pass. That pass writes its key and value rows into the fixed-capacity buffers the compiled verify installs, on both model families. The 27B's buffers grow in 512-token steps. A Flash-Next entry restored from the warm cache has only its rounding slack until the cache grants it more room, and the first rounds after a restore are often copy rounds. A copy block that straddled a growth edge was written with the functional slice update, and its rows past the edge were lost.
Reproduced with a six-turn coding session on the Optimized Quality pack. 2.11.2's fourth answer matches the fixed engine's for 3,001 characters and then ends the turn in the middle of parser.add_argument(, where the fixed engine goes on to write the option and the subcommands. With reasoning on, the same turn from the same restored point and seed diverges from the fixed engine inside the imports copied from context, then writes the complete cli.py twice, verbatim, up to the token cap. The fixed engine writes it once and stops.
Warm reuse: three more repairs
-
A long agent turn stays warm across the model's own token boundaries. The tokens a model samples are not always the standard encoding of their own text. In a Hermes session at effort xhigh the 27B wrote
"Nothingas a single token, 8,498 tokens into a write_file call, where the tokenizer encodes"and thenNothing. The bytes were identical and the ids were not, and everything downstream treated that as an edit. The re-tokenized history could never match the saved stream, the end-of-turn snapshot was refused, the fallback re-prefill did not finish before Hermes' next request arrived, and that request re-prefilled the whole 29,842-token turn, 41 seconds to the first token. Wherever the resent prompt and the session's saved ids decode to the same text, the saved ids are now used, both when a request is matched to its session and when a finished turn is stored. A real edit still ends the match where it happens. The request log records the splice undercommitted_reasoning_canonicalization.token_splice, andMTPLX_COMMITTED_TOKEN_SPLICE=0turns it off. -
A reply's own whitespace no longer breaks its warm restore. A turn cut by the token budget right after a newline used to come back with the end-of-turn marker where the newline was, and the exactness rule then re-prefilled the whole turn on the next request. The same splice puts back the whitespace a reply's visible content is served without, and it runs whether or not thinking is on.
-
A mid-conversation system message no longer rewrites message 0 (#477). Claude Code's per-turn
<system-reminder>notes arrive as late system messag...
MTPLX 2.11.2
MTPLX 2.11.2
A correctness release for every Mac that is not an M5, seven session-bank and memory fixes for long agent sessions, native vision for Flash-Next in Hermes, OpenCode and Pi, a verifier-depth fix that restores Flash-Next's compiled verify route in agent turns, and a set of app and CLI repairs. If you saw Qwen 3.8 27B produce unrelated text, loops or another language on 2.11.1 once a conversation passed a few thousand tokens, this release is for you.
27B on M1-M4: the flash-decoding verify route is now gated by hardware (#459, #464, #467, #461)
2.11 turned on a flash-decoding verify route for the 27B models in the turbo profile. It uses the tensor units of the M5 GPU, and it shipped without a hardware gate. It engages once a conversation's KV buffer reaches 8,192 tokens, which on a Mac without those units means wrong attention from that point on: reasoning about a different codebase, imaginary tasks, mixed languages, tool calls that never happen. On macOS 15 the same kernel failed to build and the request failed with a Metal library error. Reporters on an M1 Max, an M1 Ultra, an M3 Ultra, an M4 and an M4 Max hit it through OpenCode, Pi, Hermes and the app's own chat; one of them bisected it to the route with MTPLX_NAX_FLASH_ROUTE=0.
The route now runs only on an M5-class GPU on macOS 26.2 or newer. Everywhere else the verify path is the packed-GQA kernel 2.10.2 shipped, validated at startup by the kernel self-check. /health says which one you have: degradation.nax.available is false and nax_flash_bail_counts.gpu_family_or_os counts the refusals on an M1-M4 Mac; on an M5, degradation.nax.flash_dispatch_counters counts the route's dispatches.
Rehearsed here on an M5 Max with the reporters' shape (a 14,000-token and a 32,000-token git diff followed by "summarize the changes in three bullet points", Optimized-Speed pack, temperature 0, fans at maximum): with the GPU family forced to the M1-M4 path both answers are correct summaries of the diff, the NAX lanes show as skipped in the self-check and the packed kernel as ok; with the native route both answers are the same summaries and the route counts 66 dispatches with no bails.
The M5 decode gain from this route is unchanged. On M1-M4 the verify path is the same packed kernel 2.10.2 shipped; this build has not been measured on an M1-M4 Mac, so no speed figure is claimed for those chips here, and the 2.11 release notes' 88k row is an M5 number and is now labelled as such. Item 3 of #455 (incoherent output with MTP on, through Pi on an M3 Ultra) matches this route's engagement point, since Pi's system prompt and tools put every request past 8,192 tokens, but it has not been confirmed from that machine; item 1 of #455, AR decode at 15-23 tok/s where 2.10 gave more, is not explained by this change and stays open. An M1-M4 receipt on #459 or #455 is wanted and welcome.
AR-only sessions restore again: Hermes and Pi with --no-load-mtp (#465)
A target-only AR runtime (--no-load-mtp) banked each turn's prefix under one history policy while every lookup asked for another, so the bank refused its own entries with policy_mismatch and the whole prompt re-prefilled on every top-level turn: 14,500 tokens, about two minutes per turn on the reporter's M1 Max. One policy per runtime is now derived in one place and used by every store, lookup and the cache fingerprint. MTP runtimes are unchanged. The "90 to 116 s stall after idle" in #455 runs the same configuration on an M3 Ultra and is the same mechanism on paper; it is not yet confirmed from that machine.
Memory on 128 GB: refuse before prefill instead of swapping (#450, #447)
The pre-prefill memory guard admitted a 136k-token prompt whose projection stayed 2.3 GB over the engine's limit after clearing the allocator cache; nothing downstream stops such a request safely, and the reporter's Mac kernel-panicked four times before any error could be returned. The guard now re-projects after every reclamation step (allocator cache, superseded and idle session snapshots, sibling chain snapshots from #447) and, if the projection still crosses the hard limit, answers with a structured 507 before prefill that names the projection, the limit and the uncached token count. The engine stays up with every resident session. Between the 0.97 warning line and the limit nothing changes, and --allow-swap keeps the operator's explicit choice.
Also from the #447 work already on main: the guard asks the live sessions and the bank for the reusable prefix the restore will actually achieve before projecting, walks the bank's chain snapshots before giving up, and reclaims allocator storage before evicting useful snapshots.
Session bank
- A deep conversation keeps its session at its turn boundaries (#446). A live session's committed stream carries the reasoning it streamed, and clients resend the history without it, so from the second turn on every request's raw shared prefix with its session ends where the first turn started generating. The resolver accepted that match only as a fraction of the new prompt, with a floor of 25 %: 22,437 shared tokens passed at 89k and failed at 112k, the request minted a new anonymous session and block-restored 2,048 tokens of the first turn's snapshot, and a turn that had taken 24 s took 105 s. That is the reporter's 14,336 and 18,432-token remnants at turn 4 or 5 in five chains of five, and the same line crossed one chain in three on 2.10.x. Sessions now record the prompt length of every turn they generated from, and a shared prefix on one of those boundaries keeps the session whatever fraction of the prompt it is; edited histories keep the fraction rule. The request log's prefix diagnostic names the rule that kept it (
reuse_rule: turn_boundary). - Later conversations are admitted again (#454). After a restart only the first conversation was banked; every later distinct conversation re-prefilled at 0 % cache on each turn, about nine times slower. The background-task heuristic (a short-answer request with a different system prompt) classified every conversation-continuing short turn as a title job and served it sessionless. Only the task shape (a system prompt and a single user turn) infers a background task now. Reproduced with the reporter's script on the 27B Quality pack: sessions two to four went from 0 % to 100 % cached on their third turn.
- SSD prefix restore reads only the needed prefix and slices the committed MTP history to it (PR #444 by @softpudding).
- Fixed verifier capacity is renewed for adaptive depths and copy windows, shared verifier programs are released when a model unloads, and completed request banks are released while the shared programs stay.
Flash-Next: your agent's screenshots reach the model, and images keep sparse attention
- Hermes, OpenCode and Pi now advertise image input when the installed pack has a vision tower. All three registrations said text-only, so Hermes sent every screenshot through its Analyze Image tool as a separate request to the same MTPLX model (the auxiliary description path: the main conversation never saw the pixels, and a cancelled analysis kept generating for 35 s), and OpenCode and Pi could not attach an image at all. The app and
mtplxread the pack'sconfig.jsonand weight index (vision_configplus avision_tower.ormodel.visual.weight), never the model name, and writesupports_visioninto the Hermes profile,modalities.input: ["text", "image"]into OpenCode's provider entry andinput: ["text", "image"]into Pi's models file, upgrading an existing text-only entry./v1/modelscarriessupports_visionandmodalitiestoo. The 27B packs have no tower and stay text-only. - Multimodal requests keep QSA sparse attention. The engine ran every image-bearing request through dense causal attention, on the belief that the reference implementation serves multimodal that way. It does not: Qwen's reference applies the sparse indexer to multimodal input and rotates the indexer's queries and its pooled block-start keys with the image-aware M-RoPE positions. The engine now does the same, checked against an independent NumPy position oracle. On this M5 Max an image-bearing Hermes conversation at 54,000 tokens ran at about 19 tok/s on the dense path with a 128 GiB allocator peak; the corrected path completes turns with up to fifteen screenshots at 43,000-74,000 tokens with a 92 GiB peak under the 96 GiB ceiling. Vision cache entries written by the dense path carry a different policy identity and are not reused.
MTPLX_QWEN4_VISION_QSA=0restores the dense path for diagnosis only. - Known limit: image-bearing turns decode on the eager verifier. The compiled fixed-M4 verify route is not yet used while images are in the context (its indexer graph has no proof for the image-aware positions), so those turns ran at 33-50 tok/s here against 54-61 tok/s for the text-only turns of the same session. That route is the next Flash-Next item.
- A warm image turn is admitted as warm. The pre-prefill memory guard compared raw image-pad tokens against snapshots keyed by image content, so a warm turn after the first screenshot projected as a full miss, shed the snapshot it needed and could refuse with a 507. Admission now asks the same content-keyed question as restore, an anonymous image turn rejoins the session that owns the matching image snapshot (
session_source: vision_bank_prefix), and different pixels can never adopt an older image's state.
Long agent sessions on Flash-Next: three more re-prefill causes
Found by rehearsing a Hermes Desktop coding session (a Pygame Flappy Bird, 16,000-token system prompt, screenshots of the running game) on the 2011010 candidate: the tool turn after the game was written reused 2,048 of 32,955 tokens although the bank held an exact 15,688-token prefix, and decode sat at 41-47 tok/s.
- **A longer bank entry no longer erases a shorter exact...