Skip to content

bump numen-tech/mlx to c134ee26 (v0.32.4 + fork patches); fence.metal probe reverted (gemma4-qat#299-#302) - #13

Merged
jeethu merged 5 commits into
prismfrom
prism-v0.32.4-sync
Oct 15, 2026
Merged

jeethu merged 5 commits into
prismfrom
prism-v0.32.4-sync

Conversation

@jeethu

@jeethu jeethu commented Oct 15, 2026

Copy link
Copy Markdown
Member

Bumps Source/Cmlx/mlx to numen-tech/mlx c134ee26 (ml-explore/mlx v0.32.4 plus the fork patches) and regenerates the vendored sources. Core PR: numen-tech/mlx#12. Tracking: gemma4-qat ml-explore#299, ml-explore#300, ml-explore#301, ml-explore#302.

Commits

The net diff against prism is the 7dada83 bump plus the 26668c7 and f1cb75e submodule moves.

Regeneration check

  • 7dada83 touches 13 generated files (+88/-49). Every change traces to a core diff in 317df531..33ef381f:
    • conv: conv.cpp, steel_conv_general.cpp, metal/conv.metal, and the steel/conv kernel and loader headers;
    • quantized: quantized.cpp and metal/quantized.h, which carry the qmv_quad bounds predicate and the qmv_fast_impl simd_lid cast;
    • include-framework/mlx-ops.h (minmax) and mlx-backend-metal-device.h (end_encoding(bool wait_in_flight = false)).
  • No generated change lacks a core source.
  • f1cb75e regenerates only quantized.cpp and metal/quantized.h, both from the core comment change in quantized.h. The new cpu/spec_decode.cpp is compiled from the submodule, and xcrun swift build produces spec_decode.o with SpecDecodeVerify::eval_cpu defined.
  • Running update-mlx.sh a second time is byte-identical except for one line: the Autogenerated from commit <sha> stamp in include-framework/Metal.hpp. metal-cpp's MakeSingleHeader writes the current mlx-swift HEAD into that line, so it changes after every commit. The stamp is kept at the parent commit (50f13c08), as in earlier bumps.
  • mlx-c is unchanged at cfc471f4, and the C bindings build without changes.

Fence probe (ml-explore#301)

gemma4-qat was pinned to 98ee695, the guarded fence.metal. Then the Private LLM 2 app shell was built twice, once for macOS (Debug) and once for generic/platform=iOS (Release). Each shipped mlx-swift_Cmlx.bundle/default.metallib was then searched with strings -a:

metallib fence_wait input_coherent rms control rms(float32|float16|bfloat16) exact any fence
macOS app, Debug 0 0 524 6 0
iOS app, Release-iphoneos 0 0 524 6 0

The products-dir copies of both bundles give the same counts.

Xcode compiles every .metal file in the package at the package's deployment floor: metal -c -target air64-apple-macos14.0 for macOS and air64-apple-ios17.0 for iOS. That is Metal 3.1. The guard therefore turns fence.metal into an empty unit in consumer app builds as well as in this package's own test build, where FenceFastSynchTests failed with Unable to load kernel fence_update under MLX_METAL_FAST_SYNCH=1. The consumer's deployment target (iOS 26 / macOS 26) doesn't reach the package's metal compile.

Decision: revert. SwiftPM compiles the package metallib at its floor, so fence.metal can't ship until the package floor reaches Metal 3.2 or the kernel is built some other way. The fence item in gemma4-qat#301 stays open. MLX_METAL_FAST_SYNCH defaults to 0, so the default path never asks for the missing kernels.

Tests

  • This repo at f1cb75e: xcodebuild test -scheme mlx-swift-Package -destination 'platform=macOS' -skipPackagePluginValidation -parallel-testing-enabled NO gave TEST SUCCEEDED: 391 tests, 2 skipped, 0 failures. At 98ee695 the same command gave 392 tests, 3 skipped, 0 failures; the extra skip was the fence test, which skips without the env var.
  • gemma4-qat pinned to f1cb75e:
    • xcrun swift build --disable-automatic-resolution gave Build complete!.
    • NumenCoreTests ForwardParityTests, Gemma4AttentionTests, Gemma4PrimitivesTests and Gemma4RoPETests gave TEST SUCCEEDED: 29 tests, 0 skipped, 0 failures.
    • The full gemma4-qat correctness gate and the Mac and device A/B runs follow in the gemma4-qat PR.

Codex round: the review of 50f13c08..26668c7 found one P2. MLX_METAL_FAST_SYNCH=1 asks for fence kernels this package doesn't ship. That's the item gemma4-qat#301 keeps open; the default path never asks for those kernels. It found nothing else. The f1cb75e bump to c134ee26 had a task review and a symbol check (each SpecDecodeVerify method is defined exactly once in the Apple build), not a Codex pass.

…FAST_SYNCH test (gemma4-qat#301)"

This reverts commit 98ee695.

The fence probe (gemma4-qat#301) found no fence_wait / input_coherent
in the shipped app metallib: Xcode compiles the package's default.metallib
at the package floor (`metal -c -target air64-apple-macos14.0`), i.e.
Metal 3.1, so the `__METAL_VERSION__ >= 320` guard empties fence.metal in
every consumer build, not only in this package's own test build. The kernel
can't ship from a SwiftPM package with a macOS 14 / iOS 17 floor, so the
vendored file and its test are dropped; ml-explore#301's fence item stays open.
…e_verify primitive for every K and on CPU; qdot comment)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 15, 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-15T09:53:05.481038Z f1cb75e PR opened
ℹ️ 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.

@jeethu
jeethu merged commit 6ecdc61 into prism Oct 15, 2026
@jeethu
jeethu deleted the prism-v0.32.4-sync branch October 15, 2026 09:54
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