Skip to content

ci: build arm64 macOS slice on macos-26 SDK (keep minos 14.0) - #2

Merged
oobabooga merged 1 commit into
oobabooga:unsloth-buildfrom
unslothai:macos-arm64-sdk26
Jun 9, 2026
Merged

oobabooga merged 1 commit into
oobabooga:unsloth-buildfrom
unslothai:macos-arm64-sdk26

Conversation

@danielhanchen

Copy link
Copy Markdown

What

Build the arm64 macOS slice on the macos-26 runner instead of macos-14, keeping deploy_target=14.0. One line in the resolve matrix plus a comment. No second slice, no installer changes.

Why

The arm64 slice is built on macos-14. On M5/A19 hardware that binary logs error compiling source while loading the Metal library, then falls back to the standard Metal path and runs fine. It is cosmetic, but the error looks alarming on the newest Apple Silicon.

Building on macos-26 (the newest Metal SDK, the same runner ggml-org uses for its arm64 release) compiles cleanly on M5. The explicit -DCMAKE_OSX_DEPLOYMENT_TARGET=14.0 still pins minos=14.0, so the bundle keeps loading on macOS 14+. The SDK and the deployment floor are decoupled, so we get the newer toolchain without raising the floor.

Why not a separate macOS-26 slice

I checked whether the Metal 4 tensor API (which only turns on at deploy target 26 on M5/A19) is worth a second slice. A/B on an M5 Max, Llama-3.1-8B Q4_K_M, best of 3:

build deploy target prompt-processing (tok/s) gen (tok/s)
floor 14 (this PR) 14.0 2566.2 99.1
floor 26 (tensor API) 26.0 2568.7 99.9

Delta is +0.1%, inside run-to-run noise. The tensor API gives no measurable gain for GGUF inference at this llama.cpp version, so a macOS-26-only slice is not worth the extra bundle and selection logic. This PR is only the SDK bump on the existing single slice.

Validation

minos 14.0 confirmed via otool -l. The macos-26-SDK / floor-14 build was run on M5 Max, M3 Max, M2 Pro and the macos-14 CI runner: loads, runs with full Metal offload, no error compiling source, throughput identical to the macos-14-SDK build.

The arm64 slice was built on the macos-14 runner. On M5/A19 hardware that
binary logs 'error compiling source' for the Metal library (it falls back
to the standard path and still runs, but the error is alarming). Building
on macos-26 (the newest Metal SDK, same runner upstream uses for arm64)
compiles cleanly on M5 while the explicit deploy_target=14.0 keeps minos
at 14.0, so the bundle still loads on macOS 14+. Verified on M5 Max,
M3 Max, M2 Pro and the macos-14 CI runner: minos 14.0, no compile error,
identical throughput.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants