mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #5451] [Other] Mac app install: allow metal/tools so Unsloth sizes can be repacked #5431
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#5431
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/5451
Author: @messerli-wallace
Created: 11/7/2026
Status: 🔄 Open
Base:
main← Head:fix/mac-control-allow-metal-tools📝 Commits (1)
8526a5bsetup.py: let the app's Mac installer run metal/tools/metal_repack.py📊 Changes
3 files changed (+15 additions, -3 deletions)
View changed files
📝
docs/MAC.md(+2 -2)📝
setup.py(+2 -1)📝
tests/desktop/test_control_install.py(+11 -0)📄 Description
Problem and result
On a Mac,
strata launch(0.1.57) with an Unsloth size downloads everything, then always stops at Step 6:In Control mode,
run()only allows scripts intools/andtools/dsv41/, butmac_repack()runsmetal/tools/metal_repack.py. With this change, the repack runs and the model installs and starts.Related discussion
None.
Approach
run()also allowsmac_tools_dir()(metal/tools). The other checks are unchanged, andmetal/setup_mac.pyis still refused. Added a regression test, and updated thedocs/MAC.mdline that said Unsloth needs the source installer.Validation
M5 Max, 128 GB, macOS 26.4, 0.1.57 Terminal bundle.
Passed:
python3 -m unittest tests.desktop.test_control_install.ControlModeTests: 8 OK. The new test fails without the fix.setup.pyhunk to the installed bundle and removed the repacked file.strata launch --family unsloth --model ud-q4_k_xl --context 128k --no-tui --yesthen ran the repack itself, wrote.done, and served (exit 0). The output is byte-identical to a hand-made repack.Failed: 3
DeleteModelTestsand 1LocalGgufInstallTestsin the same file fail with and without this change (Python 3.9.6).Not run: the app's install button, UD-Q5/Q6_K_XL.
Limits
None known.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.