[PR #5451] [Other] Mac app install: allow metal/tools so Unsloth sizes can be repacked #5431

Open
opened 2026-11-07 16:35:09 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • 8526a5b setup.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:

[X]  the desktop app's installer only runs its bundled preparation tools; …/python3 …/metal/tools/metal_repack.py is missing or out of date.

In Control mode, run() only allows scripts in tools/ and tools/dsv41/, but mac_repack() runs metal/tools/metal_repack.py. With this change, the repack runs and the model installs and starts.

None.

Approach

run() also allows mac_tools_dir() (metal/tools). The other checks are unchanged, and metal/setup_mac.py is still refused. Added a regression test, and updated the docs/MAC.md line 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.
  • End to end: applied this setup.py hunk to the installed bundle and removed the repacked file. strata launch --family unsloth --model ud-q4_k_xl --context 128k --no-tui --yes then ran the repack itself, wrote .done, and served (exit 0). The output is byte-identical to a hand-made repack.

Failed: 3 DeleteModelTests and 1 LocalGgufInstallTests in 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.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/5451 **Author:** [@messerli-wallace](https://github.com/messerli-wallace) **Created:** 11/7/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/mac-control-allow-metal-tools` --- ### 📝 Commits (1) - [`8526a5b`](https://github.com/Niko1221/Strata/commit/8526a5b5a24b9abfda43642e698fd5805dab01c8) setup.py: let the app's Mac installer run metal/tools/metal_repack.py ### 📊 Changes **3 files changed** (+15 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `docs/MAC.md` (+2 -2) 📝 `setup.py` (+2 -1) 📝 `tests/desktop/test_control_install.py` (+11 -0) </details> ### 📄 Description ## Problem and result On a Mac, `strata launch` (0.1.57) with an Unsloth size downloads everything, then always stops at Step 6: ``` [X] the desktop app's installer only runs its bundled preparation tools; …/python3 …/metal/tools/metal_repack.py is missing or out of date. ``` In Control mode, `run()` only allows scripts in `tools/` and `tools/dsv41/`, but `mac_repack()` runs `metal/tools/metal_repack.py`. With this change, the repack runs and the model installs and starts. ## Related discussion None. ## Approach `run()` also allows `mac_tools_dir()` (`metal/tools`). The other checks are unchanged, and `metal/setup_mac.py` is still refused. Added a regression test, and updated the `docs/MAC.md` line 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. - End to end: applied this `setup.py` hunk to the installed bundle and removed the repacked file. `strata launch --family unsloth --model ud-q4_k_xl --context 128k --no-tui --yes` then ran the repack itself, wrote `.done`, and served (exit 0). The output is byte-identical to a hand-made repack. **Failed:** 3 `DeleteModelTests` and 1 `LocalGgufInstallTests` in 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](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#5431
No description provided.