mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3137] [CLOSED] mac: setup offers Swift 1.5 #4472
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#4472
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/3137
Author: @WillkTech
Created: 10/19/2026
Status: ❌ Closed
Base:
main← Head:main📝 Commits (10+)
2205e5eAdd Metal stubs for new CUDA kernels and compat shimse905e47Add Mac setup notes and Jules optimization plan1ee7e5dOptimize Strata for Mac: wire RoPE YaRN on Metal & memory guardf073385Merge pull request #1 from WillkTech/optimize-strata-m5-max-metal-rope-scaling-337861934914325792608b4955Optimize Strata for Mac: wire RoPE YaRN on Metal & memory guardadaf83cMerge pull request #2 from WillkTech/optimize-strata-m5-max-metal-rope-scaling-3378619349143257926b5a44feRefactor Metal RoPE table and add interleaved layout99fcba6Add Swift 1.5 support to Mac setup2fed380Fix Vision shutdown race and pipe cleanup7fb4a7bAdd interactive model switcher for Apple Silicon📊 Changes
19 files changed (+1355 additions, -86 deletions)
View changed files
📝
README.md(+1 -1)📝
docs/MAC.md(+5 -2)📝
docs/MODELS.md(+3 -0)➕
mac_readme.md(+173 -0)📝
metal/CMakeLists.txt(+1 -0)📝
metal/include/metal_compat/cuda_runtime.h(+28 -1)📝
metal/setup_mac.py(+82 -35)➕
metal/src/engine/rope_table.h(+85 -0)📝
metal/src/engine/setup_host.cpp(+5 -31)📝
metal/src/engine/stubs.cpp(+23 -5)📝
metal/src/engine/window.cpp(+11 -7)➕
metal/tests/rope_parity.cpp(+128 -0)➕
monitor.py(+443 -0)📝
serve/server.py(+24 -4)📝
src/core/conversation_memory.cpp(+20 -0)📝
src/core/conversation_memory_test.cpp(+8 -0)📝
src/program/generate.cpp(+9 -0)➕
switch.sh(+223 -0)📝
tools/test_setup_mac.py(+83 -0)📄 Description
mac: setup offers Swift 1.5 (--family swift) at IQ2_XS, IQ3_XXS and IQ3_S
The Mac's size table is keyed by size with the family as an attribute, and
Swift's three sizes share names with the original's, so the family is resolved
before the size. model_shard_names takes the family instead of hardcoding qwen,
and model_shard1_gb prices a Swift pack for the resident-versus-streaming
decision.
Swift's shards cut through layers, so it is repacked into one file for the GPU
like Unsloth's, and its file names carry the abliterated segment the Hub uses.
Q2_0 stays refused for Swift: the pack tool cannot prepare it yet (#171).
--rope-scaling and --rope-scale accepted and derived through resolve_rope;
CONTEXTS extended to 262,144 and 524,288; Swift's projector pinned by SHA-256.
Left alone: setup.py, the engine, the kernels, the CUDA, HIP and SYCL builds.
The default qwen and unsloth menus, the recommended sizes and the engine
arguments are unchanged; Swift is reachable only by asking for it.
Checked on an M5 Max, 128 GB: setup --family swift --model IQ3_S --no-start
writes the config this Mac already runs; tools.test_setup_mac 25/25,
test_setup_menu 24/24, test_setup_rope 19/19. Decode and prompt speed for
Swift on a Mac are not measured yet, and the docs say so.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.