[GH-ISSUE #5169] The 96 GB streaming-MTP threshold looks too conservative on Apple Silicon: +38% chat with MTP on a 71 GB model #3074

Open
opened 2026-11-07 14:37:51 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Flo5k5 on GitHub (Nov 4, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5169

Observation

On a MacBook Pro M5 Pro (20-core GPU, 64 GB unified memory) running Gyro-M streamed from the internal SSD, the setup drops the MTP draft layer with the message:

the experts will stream from the SSD: no MTP draft layer (one token per step is faster there); ./setup.sh --setup on a Mac with more memory adds it

The model needs ~71 GB, under the STREAM_MTP_FROM_GB = 96 rule in strata_control/mac_fit.py. Preparing the MTP layer by hand (tools/mtp_fetch.py, mtp_pack.py --experts q2_0, mtp_rt.py) and adding --mtp mtp/rt on top of the setup's own config gives the opposite outcome:

Same machine, same suite (tools/strata_bench.py, 3 runs, medians) setup's choice (suffix drafter only) with the MTP layer, --spec 2
chat decode 25.7 tok/s 35.5 tok/s (+38%)
agent session decode (6 turns) 22.5 tok/s 28.6 tok/s (+27%)
prompt 4K / 16K 743 / 699 tok/s 702 / 672 tok/s (-5%)
re-read tokens per agent session 5.0 3.0

Full runs with ranges: the three reports in #5168 (bench/results/2026-11-04-community-apple-m5-pro-*).

Why it likely pays below the threshold

In streaming, a generated token costs full expert reads from the SSD when its experts are not resident. An accepted MTP draft skips those passes entirely, so the slower the base decode (the situation the threshold was written for), the more a draft is worth - the trade seems inverted for streamed MoE. The -5% prompt cost is the only regression we measured, and the agent turns' time-to-first-token is unchanged (5.81 s vs 5.86 s median).

Suggestion

Either lower the rule, or make the streaming-MTP choice a first-class setup option (for example --drafting mtp honored on a small Mac too), or measure the break-even on one Mac per memory tier. Happy to run more configurations on this machine if that helps.

(Build context: v0.2.6 source build + #5167, --mmap-experts, context 32768, thinking off, 0 failed request on every run.)

Originally created by @Flo5k5 on GitHub (Nov 4, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5169 ## Observation On a MacBook Pro M5 Pro (20-core GPU, 64 GB unified memory) running Gyro-M streamed from the internal SSD, the setup drops the MTP draft layer with the message: > the experts will stream from the SSD: no MTP draft layer (one token per step is faster there); ./setup.sh --setup on a Mac with more memory adds it The model needs ~71 GB, under the `STREAM_MTP_FROM_GB = 96` rule in `strata_control/mac_fit.py`. Preparing the MTP layer by hand (`tools/mtp_fetch.py`, `mtp_pack.py --experts q2_0`, `mtp_rt.py`) and adding `--mtp mtp/rt` on top of the setup's own config gives the opposite outcome: | Same machine, same suite (`tools/strata_bench.py`, 3 runs, medians) | setup's choice (suffix drafter only) | with the MTP layer, `--spec 2` | | --- | ---: | ---: | | chat decode | 25.7 tok/s | **35.5 tok/s (+38%)** | | agent session decode (6 turns) | 22.5 tok/s | **28.6 tok/s (+27%)** | | prompt 4K / 16K | 743 / 699 tok/s | 702 / 672 tok/s (-5%) | | re-read tokens per agent session | 5.0 | 3.0 | Full runs with ranges: the three reports in #5168 (`bench/results/2026-11-04-community-apple-m5-pro-*`). ## Why it likely pays below the threshold In streaming, a generated token costs full expert reads from the SSD when its experts are not resident. An accepted MTP draft skips those passes entirely, so the slower the base decode (the situation the threshold was written for), the more a draft is worth - the trade seems inverted for streamed MoE. The -5% prompt cost is the only regression we measured, and the agent turns' time-to-first-token is unchanged (5.81 s vs 5.86 s median). ## Suggestion Either lower the rule, or make the streaming-MTP choice a first-class setup option (for example `--drafting mtp` honored on a small Mac too), or measure the break-even on one Mac per memory tier. Happy to run more configurations on this machine if that helps. (Build context: v0.2.6 source build + #5167, `--mmap-experts`, context 32768, thinking off, 0 failed request on every run.)
Author
Owner

@github-actions[bot] commented on GitHub (Nov 4, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6619459415 --> @github-actions[bot] commented on GitHub (Nov 4, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3074
No description provided.