[GH-ISSUE #4025] [Engine] Mac: the decode kernels' tiles are tuned on the M4/M5; an M1 Max loses ~30% of decode #1736

Closed
opened 2026-11-04 01:53:35 +07:00 by bsakaguchi · 1 comment
Owner

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 --calibrate measures the tiles once and keeps them in the config only when they win. Opt-in; unset, the output is byte-identical to 7dd5cf18 (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; --calibrate is not ported to the Mac.

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 --calibrate` measures the tiles once and keeps them in the config only when they win. Opt-in; unset, the output is byte-identical to `7dd5cf18` (`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; `--calibrate` is not ported to the Mac.
Author
Owner

@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:

  1. Re-test on 0.2.11. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6659859540 --> @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: 1. Re-test on 0.2.11. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [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#1736
No description provided.