mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3915] [Bug]: macOS 15 + streaming Mac (M1 Max 32 GB): prebuilt engine exits on MetalPerformancePrimitives; needs STRATA_METAL_PROMPT_GEMM=0 too #1674
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#1674
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 @proskilzz on GitHub (Oct 24, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3915
What happened
docs/MAC.mdsays macOS 15 or newer, but on macOS 15 the prebuilt Metal engine exits at start on a Mac that streams the experts (32 GB). Each attempt dies inContext::compile():strata launchkeeps retrying until it times out with "The model did not finish loading in time".Setup: MacBook Pro M1 Max 32 GB, macOS 15.7.5, Terminal 0.1.49, engine 0.1.48 macos-arm64-metal (prebuilt, from
install.sh),strata launch --model q2_0 --context 32k --vision off --mtp off --tune skip.Why
STRATA_METAL_PROMPT=windowisn't enough when streamingSetting
STRATA_METAL_PROMPT=windowalone gives the same crash. When streaming,Window::stream_arena()callsprompt_gemm_init()right after the arena is built (metal/src/engine/window.cpp, theif (pg_on && !prompt_gemm_init(err))line). That compilesdense_mm.metal/moe_mm.metal/prompt.metalno matter whatSTRATA_METAL_PROMPTis set to. OnlySTRATA_METAL_PROMPT_GEMM=0skips it. On the 96 GB macOS 15.8 Mac in #2323 / #2388 the model is resident, so that path was never reached there.Workaround that works
The engine starts, with no compile errors. Q2_0, streamed from the SSD: 8.1 tok/s decode (300-token story, 2 runs,
timings.predicted_per_second), 12.8 tok/s on a 77-token prompt. Answers are correct.Suggestion
docs/MAC.mdshould say macOS 26 for the default paths and list these three variables for macOS 15, or the engine should pick them itself (the__has_include+ GPU-family probe idea from #2388 / #2987). For a streaming Mac, the probe also needs to gateprompt_gemm_init()instream_arena().Related: #2323, #2388, #2987.
@github-actions[bot] commented on GitHub (Oct 24, 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:
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
@github-actions[bot] commented on GitHub (Oct 29, 2026):
Closing this issue because it still did not follow the format after 5 days. That is housekeeping, not a rejection.
To bring it back: fix the title (area prefix) and the missing parts, then comment
/reopen. A check runs and reopens it, or tells you what is still missing. See CONTRIBUTING.md.