mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3114] [CLOSED] Optimize strata m5 max metal rope scaling 3378619349143257926 #4461
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#4461
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/3114
Author: @WillkTech
Created: 10/19/2026
Status: ❌ Closed
Base:
main← Head:optimize-strata-m5-max-metal-rope-scaling-3378619349143257926📝 Commits (4)
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 guard08b4955Optimize Strata for Mac: wire RoPE YaRN on Metal & memory guard📊 Changes
15 files changed (+5397 additions, -48 deletions)
View changed files
➕
Jules_plan.md(+4962 -0)📝
docs/MAC.md(+1 -1)➕
mac_readme.md(+146 -0)📝
metal/CMakeLists.txt(+1 -0)📝
metal/include/metal_compat/cuda_runtime.h(+28 -1)📝
metal/setup_mac.py(+11 -5)➕
metal/src/engine/rope_table.h(+48 -0)📝
metal/src/engine/setup_host.cpp(+6 -31)📝
metal/src/engine/stubs.cpp(+23 -5)📝
metal/src/engine/window.cpp(+17 -5)➕
metal/tests/rope_parity.cpp(+110 -0)📝
src/core/conversation_memory.cpp(+20 -0)📝
src/core/conversation_memory_test.cpp(+8 -0)📝
src/program/generate.cpp(+9 -0)📝
tools/test_setup_mac.py(+7 -0)📄 Description
Optimizes Strata for Apple Silicon (M5 Max 128GB):
cs_) inmetal/src/engine/window.cppvia header-only helpermetal/src/engine/rope_table.h.<algorithm>include inmetal/tests/rope_parity.cpptesting unscaled, linear, and YaRN RoPE tables against float64 reference math.src/core/conversation_memory.cppusinghost_statistics64with page calculation matchingarena_budget.h.--kvformats (q4_0,k8v4) insrc/program/generate.cpp.metal/setup_mac.pycontext laddering (supporting 262144 and 524288) with automatic RoPE YaRN resolution.mac_readme.mdanddocs/MAC.mdconfiguration details.rope_parity,conversation_memory_test) and Python setup unit tests (test_setup_mac.py,test_setup_rope.py).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.