mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5390] [0.1.57] macOS model preparation fails: metal/tools missing from CONTROL-mode tool whitelist, and metal/setup_mac.py not shipped in the terminal bundle #3216
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#3216
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 @cwf75 on GitHub (Nov 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5390
[0.1.57] macOS model preparation fails:
metal/toolsmissing from CONTROL-mode tool whitelist, andmetal/setup_mac.pynot shipped in the terminal bundleEnvironment
unsloth/Qwen3.8-Flash-Next-GGUF, variantUD-IQ4_XS-v31)Summary
Preparing a model on macOS (Step 6, repacking the Unsloth shards into a single GPU GGUF with
metal/tools/metal_repack.py) fails in 0.1.57 in both execution modes, for two related reasons.metal/appears to have been added to the shipped bundle in 0.1.57, but two code paths were not updated for it.Bug 1 — CONTROL mode:
run()rejectsmetal/toolsstrata launch/ the desktop app runs setup withSTRATA_CONTROL_INSTALL=1. The in-file flow reaches Step 6 and calls:but the guard in
run()(setup.py, around line 1130) only allows tools whose parent directory isROOT/toolsorROOT/tools/dsv41:metal_repack.pylives inROOT/metal/tools, so the guard raises:The message is misleading: the file exists and is current — it is the whitelist that doesn't know about
metal/tools.Fix: include
(ROOT / "metal" / "tools").resolve()in the allowed parents.Bug 2 — non-CONTROL mode:
metal/setup_mac.pyis not in the bundleRunning
setup.pydirectly (noSTRATA_CONTROL_INSTALL) on macOS takes themac_setup()path (setup.py, around line 8167), which delegates everything tometal/setup_mac.py:but the shipped 0.1.57 terminal bundle (and
components/control/0.1.57) contains onlymetal/tools/— there is nometal/setup_mac.py, so this fails instantly with:(The same "run it from a full checkout" assumption that
sycl_setup()states explicitly seems to apply here, but for macOS there is no such hint, and the error message points the user at./setup.sh/./update.sh/strata install, none of which restore the file.)Steps to reproduce
strata launchor from the app).setup.pymanually fails earlier, on the missingmetal/setup_mac.py.Local workaround that got me running
Patch the
run()guard insetup.pyto also allow(ROOT / "metal" / "tools").resolve(), then run setup withSTRATA_CONTROL_INSTALL=1. The repack (--verify, all 1223 tensors hashed against the shards), the experts streaming copy, the MTP draft layer and the run script all completed successfully afterwards.Suggested fixes
metal/toolsto the CONTROL-mode whitelist (one line).metal/setup_mac.pyin the terminal/control bundles, or makemac_setup()fall back to the in-file flow (or print a clear "use a full checkout" message like the SYCL path does).@github-actions[bot] commented on GitHub (Nov 6, 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
@axitdn commented on GitHub (Nov 6, 2026):
Same error: The desktop app's installer only runs its bundled preparation tools; /Applications/Strata.app/Contents/Resources/control/python/bin/python3.12 /Applications/Strata.app/Contents/Resources/control/metal/tools/metal_repack.py is missing or out of date. Starting and serving never install or download anything. Run: ./setup.sh (first-time setup), ./update.sh (update) or
strata install@Niko1221 commented on GitHub (Nov 7, 2026):
Fixed: on a Mac, a fresh install of UD-Q4_K_XL or UD-IQ4_XS-v31 from the app or the Terminal stopped at "Preparing your model". The installer now runs the bundled Mac preparation tools in
metal/tools(146df3c46). On an M5 Max, a fresh Terminal install of UD-Q4_K_XL prepared the model, fetched the drafter and answered plain, two-turn and tool chats. Thanks for the report, cwf75.Released in Strata v0.2.12: https://github.com/Niko1221/Strata/releases/tag/v0.2.12