Skip to content

chore: bump mlx-swift for compile scoped-device fix (#176) - #177

Merged
solderzzc merged 1 commit into
mainfrom
chore/bump-mlx-swift-compile-device
Sep 24, 2026
Merged

solderzzc merged 1 commit into
mainfrom
chore/bump-mlx-swift-compile-device

Conversation

@solderzzc

Copy link
Copy Markdown
Member

Bumps mlx-swift from cbb6a09 to 384de38 to pick up SharpAI/mlx-swift#17.

That PR makes compiled functions run on the task-scoped default device. Before it, compiled MoE helpers (weightedExpertSum, the GELU/SiLU product) that were first traced in a GPU layer were reused inside CPU layers under --gpu-layers. The GPU command buffer then waited on the CPU GatherQMM past the Metal watchdog, and the server aborted with kIOGPUCommandBufferCallbackErrorTimeout. Details are in #176.

The other commits in the range are CI-only (SharpAI/mlx-swift#18, selecting Xcode 26 for the SwiftLM integration jobs) and the merge commit for SharpAI/mlx-swift#16.

Tested on M5 Pro

  • --model mlx-community/gemma-4-26b-a4b-it-4bit --gpu-layers 23: a 490-token request no longer crashes and returns a correct answer.
  • Full-GPU Qwen is unchanged.
  • SwiftLM unit tests: 306 executed, 0 failures.
  • mlx-swift regression test testCompileHonorsScopedDefaultDevice fails without the fix and passes with it.

CPU-resident MoE layers are still very slow (single-threaded, ~0.4 tok/s prefill). That is noted in #176 and the README.

Fixes #176

🤖 Generated with Claude Code

Picks up SharpAI/mlx-swift#17, which makes compiled functions run on the
task-scoped default device. Fixes the --gpu-layers Metal GPU timeout (#176).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@solderzzc
solderzzc merged commit 804616e into main Sep 24, 2026
14 checks passed
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.

--gpu-layers N crashes the server with a Metal GPU timeout on the first request

1 participant