mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4025] [Engine] Mac: the decode kernels' tiles are tuned on the M4/M5; an M1 Max loses ~30% of decode #1736
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1736
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rasa04 on GitHub (Oct 24, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4025
Area
Engine
What do you want to do?
Run the Mac's decode kernels on tiles that fit the GPU they run on. The defaults are tuned on the M4 and M5. On an M1 Max (24-core GPU, 64 GB) the dense GEMVs of a Qwen3.8-Flash-Next Q2_0 decode window take 33.1 ms on them and 20.7 ms on each shape's best tile (
gemv_parity --one … --ntok 2).PR #4019 does this as the Mac's part of
--calibrate:./setup.sh --calibratemeasures the tiles once and keeps them in the config only when they win. Opt-in; unset, the output is byte-identical to7dd5cf18(quant_quality, 4995/4995 rows). On this M1 Max: decode +30-32% on short chats, +26% after a 6K-token prompt; perplexity 4.439 → 4.431.What do you do today instead?
The default tiles;
--calibrateis not ported to the Mac.@Niko1221 commented on GitHub (Nov 5, 2026):
Thanks for taking the time to report this.
Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.