mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2898] [Other] Swift 1.5 on a Mac (opt-in --family swift, IQ3_S) #1171
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#1171
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 @oceanio on GitHub (Oct 17, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2898
Area
[Other] (anything else, including setup and installation)
What do you want to do?
Run Swift 1.5 on a Mac. On 0.2.0-beta, docs/MAC.md still says "The Swift and Coder releases are not set up on Mac
yet", and
metal/setup_mac.pyonly takes--family qwen|unsloth.What blocks it. Swift's two shards cut through a layer: in IQ3_S, layer 14's gate is in shard 1, and its up and
down are in shard 2. Its shard 1 also holds the n-gram table. The Metal engine maps one file (
window.cppwrapsshard 1), so it cannot read Swift as it is.
What already works.
metal/tools/metal_repack.py(written for Unsloth's 4-6 shards) works on Swift's 2 shards as they are.tools/iq_pack.pyalready handles Swift's layout. It writes the 96 F32 routers as BF16, and all 96 are exact.attn_output,ssm_outandffn_down_shexp.What I propose (opt-in).
./setup.sh --family swiftsets up Swift 1.5 IQ3_S: setup repacks it like Unsloth'sfiles, and leaves images off. Without
--family swiftnothing changes, including the size menu, the original modeland Unsloth's files. Only IQ3_S is offered, because it is the only size I could measure. I have this on a branch:
https://github.com/oceanio/Strata/tree/feat/mac-swift
e88ee39d(0.2.0-beta):metal/setup_mac.py,strata_control/mac_fit.py(Swift's pack size,an optional
familyargument; the app, setup.py's Control mode andstrata launchsee no change),tools/test_setup_mac.py(30 tests, 6 new, all pass) anddocs/MAC.md.Measured on an M5 Max (128 GB, macOS 26.7.1) with SC117's abliterated Swift 1.5 IQ3_S
(
SC117/Swift-1.5-Qwen3.8-Flash-Next-GSQ-RCO-abliterated-GGUF, the same file layout as UkisAI's release). The modelwas resident, with
--spec 2and MTP. Engine 0.1.45 with the Mac build fix (the one 0.2.0 carries), installed by thebranch's setup end to end (
--gguf-dir).On 0.2.0-beta (an engine build with other Metal changes of mine on top, not part of this) Swift loads, answers 28-,
2,257- and 16,180-token prompts and finds the needles.
Not tested.
Questions.
prompts? I would then compare the Metal engine against them, the way docs/MAC.md does for the original model.
The branch is ready; I will open the PR once the scope is agreed here.
@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.
@oceanio commented on GitHub (Oct 20, 2026):
Re-tested on 0.2.0-beta. Swift 1.5 is still not set up on a Mac: docs/MAC.md says so and
metal/setup_mac.pytakes--family qwen|unslothonly.What changed since I opened this:
e88ee39d.strata_control/mac_fit.py, where 0.2.0 keeps the Mac sizes, with anoptional
familyargument. Existing callers (the app, setup.py's Control mode,strata launch) are unchanged.tools/test_setup_mac.py: 30 tests pass, 6 of them new.Metal changes of mine; this proposal changes no engine code).
The issue body is updated. The question is the same: would you take this as an opt-in setup change
(
./setup.sh --family swift, IQ3_S only, images off, nothing else changes)? If yes, I will open the PR.@oceanio commented on GitHub (Oct 20, 2026):
/reopen
@github-actions[bot] commented on GitHub (Oct 20, 2026):
Reopened, thank you. A maintainer will pick it up from here.
@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:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.