Skip to content

Support for 0.32.4 distributed functions - #512

Merged
davidkoski merged 1 commit into
ml-explore:mainfrom
ronaldmannak:distributed-0.32.4
Oct 27, 2026
Merged

davidkoski merged 1 commit into
ml-explore:mainfrom
ronaldmannak:distributed-0.32.4

Conversation

@ronaldmannak

@ronaldmannak ronaldmannak commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Proposed changes

This PR enables the distributed functions from mlx 0.32.4 and depends on merging ml-explore/mlx-c#141 and updating the version of mlx-c in mlx-swift.

There are two breaking changes in this PR. since distributed was added recently and wasn't complete yet, I assume it's not a dealbreaker. The breaking changes are that properties rank and size now throw. The underlying C++ functions throw, which would trigger a fatalError if the properties don't throw.

Checklist

  • I have read the CONTRIBUTING document
  • I have run pre-commit run --all-files to format my code / installed pre-commit prior to committing changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the necessary documentation (if needed)

@ronaldmannak

Copy link
Copy Markdown
Contributor Author

PR is now rebased on #508

@ronaldmannak
ronaldmannak marked this pull request as ready for review October 26, 2026 19:16
ronaldmannak added a commit to ronaldmannak/mlx-swift-lm that referenced this pull request Oct 26, 2026
Builds against PicoMLX/mlx-swift@pico/0.32.4-upstream (upstream mlx-swift main with ml-explore/mlx-swift#512, the ring's source-IP binding, and a fix that lets Module.update(parameters:) reach a child's override again) and adds the fork's Xcode Cloud post-clone scripts. Never part of an upstream PR.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
ronaldmannak added a commit to PicoMLX/chroma-swift that referenced this pull request Oct 26, 2026
mlx-swift-lm moves to 1b40ed0, which names mlx-swift
pico/0.32.4-upstream, and mlx-swift moves from pico/0.32.4-jaccl to
pico/0.32.4-upstream at 12f53de: upstream main with
ml-explore/mlx-swift#512 and #510, the ring's source-IP binding and the
MLX version report. No other pin changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@davidkoski

Copy link
Copy Markdown
Member

@ronaldmannak it needs a rebase to pick up #514 to fix the CI issue. Thanks!

@ronaldmannak

Copy link
Copy Markdown
Contributor Author

@davidkoski done!

@davidkoski davidkoski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good, thank you!

@davidkoski
davidkoski merged commit 5310622 into ml-explore:main Oct 27, 2026
7 checks passed
ronaldmannak added a commit to ronaldmannak/mlx-swift that referenced this pull request Nov 15, 2026
Brings in main through a557dd6 (upstream ml-explore#510, ml-explore#512, ml-explore#513, ml-explore#514, ml-explore#517,
ml-explore#518, ml-explore#519, ml-explore#523).

Conflicts:
- CMakeLists.txt: keep the PicoMLX/mlx-c pico/integration pin.
- Cmlx.xcconfig: keep MLX_VERSION 0.32.5 and add main's MLX_USE_JACCL=1.
- ModuleTests.swift, DistributedNNTests.swift: take main's Swift Testing
  versions. The integration side held this fork's copies of ml-explore#510 and ml-explore#512,
  whose code matches main's; main has since converted those files.

The Cmlx/mlx and Cmlx/mlx-c submodules stay on pico/integration, which
already contain the v0.32.4 and v0.8.0 commits main points at.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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