Skip to content

Merge upstream MLX-C and retain Swift binding compatibility - #6

Closed
glg2672 wants to merge 3 commits into
Layr-Labs:mainfrom
glg2672:codex/merge/mlx-upstream
Closed

glg2672 wants to merge 3 commits into
Layr-Labs:mainfrom
glg2672:codex/merge/mlx-upstream

Conversation

@glg2672

@glg2672 glg2672 commented Aug 26, 2026

Copy link
Copy Markdown

Merge upstream MLX-C and retain Swift binding compatibility

Summary

This merges the current canonical mlx-c history into the fork while retaining
the fused-attention option forwarding required by the downstream Swift binding.
The merge was resolved explicitly; no fork-side compatibility behavior was
dropped.

The signed PR head is 862f8ba1e1fdedf8b1dae49f1b8a2c1a3c06f30a.

What changed

  • Merged canonical ml-explore/mlx-c main into the fork.
  • Preserved fused-attention flag forwarding across the updated C API surface.
  • Validated the result against the merged MLX dependency.

Before

flowchart LR
  A[MLX-Swift Cmlx] --> B[Fork mlx-c binding]
  B --> C[Older MLX API]
Loading

After

flowchart LR
  A[MLX-Swift Cmlx] --> B[Merged mlx-c binding]
  B --> C[Fused-attention option forwarding]
  C --> D[Merged MLX API]
Loading

Validation

  • MLX-C CMake build completed successfully.
  • Confirmed this checkout defines no CTest test cases.
  • Changed C++ sources pass clang-format --dry-run --Werror.
  • git diff --check passes.

Landing order

Land after the MLX PR and before the mlx-swift PR, which repins Cmlx to this
signed revision.


Local-only draft. Please review and edit before publishing.

@davidtai

Copy link
Copy Markdown

Closed on David's decision (2026-10-23): superseded by the 2026-10-22 upstream sync in #17, which merges upstream ml-explore main as of 2026-10-22.

@davidtai davidtai closed this Oct 23, 2026
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