Skip to content

MLX v0.32.4 with JACCL (separate from the 0.32.3 pin) - #9

Open
ronaldmannak wants to merge 5 commits into
pico/0.32.3-jacclfrom
pico/0.32.4-jaccl
Open

ronaldmannak wants to merge 5 commits into
pico/0.32.3-jacclfrom
pico/0.32.4-jaccl

Conversation

@ronaldmannak

@ronaldmannak ronaldmannak commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner

Stacked on #8

MLX v0.32.4 on its own branch, so pico/0.32.3-jaccl (#8) stays the known-good build that PicoCore and Pico Server pin. Nothing consumes this branch yet. Move to it once it has run the same PicoCore and two-Mac checks.

What changed

  • mlx submodule: PicoMLX/mlx pico/0.32.3 → ml-explore/mlx v0.32.4 (36969c0), and .gitmodules points mlx back at ml-explore. v0.32.4 already has everything the fork branch carried: the FloorDivide primitive (ml-explore/mlx#4642) and the stream fixes #4663 and #4687. It also brings:
    • the Metal fence deadlock fix (ml-explore/mlx#4689)
    • failed distributed initializations no longer cached (#4558)
    • the cooperative-tensor build on macOS 27 (#4594)
    • JACCL's second mesh cable (#4607)
    • SDPA and gated-delta VJPs
  • mlx-c stays at PicoMLX/mlx-c d7fbf0a. It compiles against v0.32.4 unchanged.
  • Regenerated mlx-generated and include-framework with tools/update-mlx.sh.
  • tools/fix-metal-includes.sh gains v0.32.4's two new always-built kernels, gated_delta_update_vjp and scaled_dot_product_attention_vjp.
  • The Xcode project's exception lists follow MLX's added, renamed and removed files: new Metal kernels and headers, floor_divide.cu, examples/extensions → examples/cmake_extension, examples/metal_extension, new Python test files, and CLAUDE.md gone. I generated the lists in Xcode's own order and quoting, so the diff only shows real changes.
  • CMake fetches ml-explore/mlx v0.32.4.
  • MLX_VERSION is 0.32.4 in Package.swift and Cmlx.xcconfig (a4dbf45). Before this, the branch reported "0.32.0". MLX v0.32.3 with JACCL for the Pico stack #8's VersionTests checks it against mlx/version.h.

Evidence

At a4dbf45: 389 SwiftPM tests pass, including VersionTests, and 389 Xcode-project tests pass. The iOS build succeeds. Before a4dbf45, VersionTests failed with ("0.32.3") is not equal to ("0.32.4"). The earlier results below are from 34293d5.

On this Mac (M5 Max, macOS 27.0.1, Xcode 27.0), at 34293d5:

  • xcodebuild test -scheme mlx-swift-Package -destination 'platform=macOS' -only-testing:MLXTests -skipPackagePluginValidation -skipMacroValidation → Executed 388 tests, with 2 tests skipped and 0 failures, ** TEST SUCCEEDED **. That includes DistributedTests, GatherMMTests, FP8Tests and MLX v0.32.3 with JACCL for the Pico stack #8's StreamTests.
  • xcodebuild build -scheme mlx-swift-Package -destination 'generic/platform=iOS' → ** BUILD SUCCEEDED **.
  • xcodebuild test -project xcode/MLX.xcodeproj -scheme MLX -destination 'platform=macOS' → 389 test cases passed, ** TEST SUCCEEDED **.
  • tools/update-mlx.sh (CMake configure of v0.32.4 in JIT mode) → exit 0.
  • Not run here: Linux/CUDA builds, PicoCore's suite against this branch, and two Macs over JACCL.

Test changes

None on this branch. #8's StreamTests (floor_divide, int32 gather indices, CPU layer_norm) pass against v0.32.4's own fixes.

Not done on purpose

  • PicoCore, mlx-swift-lm and Pico Server still pin pico/0.32.3-jaccl.
  • Not run on two Macs over JACCL.
  • New MLX ops (unique, the VJPs) aren't wrapped in Swift.

🤖 Generated with Claude Code

ronaldmannak and others added 2 commits October 16, 2026 00:51
- mlx submodule v0.32.3 (plus Pico's floor_divide fix) → v0.32.4, back
  on ml-explore/mlx. v0.32.4 replaces that floor_divide code with a
  FloorDivide primitive (ml-explore/mlx#4642), and it fixes the Metal
  fence deadlock (#4689), more missing streams (#4663, #4687), cached
  failed distributed initializations (#4558) and the cooperative-tensor
  build on macOS 27 (#4594).
- mlx-c stays at PicoMLX/mlx-c d7fbf0a. It compiles against v0.32.4
  unchanged.
- Regenerated mlx-generated and include-framework with
  tools/update-mlx.sh.
- tools/fix-metal-includes.sh gains v0.32.4's two new always-built
  kernels, gated_delta_update_vjp and scaled_dot_product_attention_vjp.
- The Xcode project's exception lists follow MLX's added, renamed and
  removed files: the new Metal kernels and headers, floor_divide.cu, the
  examples/extensions → cmake_extension rename, examples/metal_extension,
  the new Python test files, and CLAUDE.md gone.
- CMake fetches ml-explore/mlx v0.32.4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	CMakeLists.txt
#	Source/Cmlx/mlx
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-23T22:52:09.311139Z 375eb61 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

ronaldmannak and others added 2 commits October 19, 2026 13:12
The merge brought over the 0.32.3 branch's MLX_VERSION, and VersionTests
caught it: ("0.32.3") is not equal to ("0.32.4"). Package.swift and
Cmlx.xcconfig now say 0.32.4. That's what the version-sync lines in
tools/update-mlx.sh read from this branch's mlx/version.h.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ronaldmannak

Copy link
Copy Markdown
Owner Author

MLX version fix (97d6626 merges #8's a67e1aa; a4dbf45 sets the value for this branch)

mlx_version() reported "0.32.0" here, although this branch builds v0.32.4. #8's a67e1aa adds VersionTests and the version sync in tools/update-mlx.sh. After the merge the test failed with XCTAssertEqual failed: ("0.32.3") is not equal to ("0.32.4"). a4dbf45 sets MLX_VERSION to 0.32.4 in Package.swift and Cmlx.xcconfig, using the same lines update-mlx.sh runs, which read 0.32.4 from this branch's mlx/version.h.

Evidence (local, at a4dbf45):

  • xcodebuild test -scheme mlx-swift-Package -destination 'platform=macOS' -only-testing:MLXTests … → Executed 389 tests, with 2 tests skipped and 0 failures, including VersionTests.
  • xcodebuild build -scheme mlx-swift-Package -destination 'generic/platform=iOS' → ** BUILD SUCCEEDED **.
  • xcodebuild test -project xcode/MLX.xcodeproj -scheme MLX -destination 'platform=macOS' → exit 0, 389 test cases passed, including VersionTests.

The ring backend opens its outgoing connections without naming a source
address, so macOS picks the interface from its routing table. With two
Macs on a Thunderbolt Bridge, the general route for self-assigned
169.254 addresses can belong to Wi-Fi, and the connection to the other
Mac then leaves over Wi-Fi and never arrives.

The mlx submodule now points at PicoMLX/mlx pico/0.32.4: v0.32.4 plus
MLX_RING_SOURCE_IPS, a comma-separated list of IPs that the ring binds
its outgoing connections to, one for each address of the next rank,
with ports the OS picks. When it isn't set, the ring behaves as before.
A list that doesn't match the connections, or an empty one, fails
before anything connects. CMake fetches the same commit.

DistributedTests.testRingSourceIPsMustMatchTheConnections sets a list
that is too long, then an empty one, as rank 1, which connects first.
Without the check, both fail only once rank 1's connection attempts run
out, with "Couldn't connect" instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant