Skip to content

[Metal] Fix JIT template arguments for attention_nax_dsplit - #4903

Merged
zcbenz merged 1 commit into
ml-explore:mainfrom
kainosnoema:fix-jit-attention-nax-dsplit
Nov 22, 2026
Merged

zcbenz merged 1 commit into
ml-explore:mainfrom
kainosnoema:fix-jit-attention-nax-dsplit

Conversation

@kainosnoema

Copy link
Copy Markdown
Contributor

Fixes #4832

attention_nax_dsplit has no BV template parameter, but get_steel_attention_nax_kernel passed bv to both NAX attention kernels. In JIT builds the split-D kernel got one argument too many and failed to compile on NAX GPUs for head dim 256 or 512 and 1024+ query tokens.

  • ☑️ I understand it is strictly prohibited to use AI to write PR description
  • AI usage disclosure:

I used and agent to help me find the crash and verify the fix, but I reviewed the final solution.

xocialize added a commit to xocialize/mlx-engine-swift that referenced this pull request Nov 19, 2026
Upstream mlx-swift 0.33.0 (MLX v0.32.4) aborts on M5 for head-256
masked prefills of 1024+ tokens (ml-explore/mlx#4832), and the pending
JIT fix (ml-explore/mlx#4903) gives wrong attention for LTX-2's Gemma 3
encoder (mean cosine 0.925 vs 0.99987; AB-R-1009). xocialize/mlx-swift
0.33.1 is upstream 0.33.0 with the head-dim-split SDPA routes disabled
in the vendored MLX and nothing else (AB-D-0264). Contract unchanged
(1.66.0).

swift test (swiftbuild) green on 0.33.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
xocialize added a commit to xocialize/ltx-2-mlx-swift that referenced this pull request Nov 19, 2026
mlx-swift-lm 3.33.0 requires mlx-swift 0.33. Upstream 0.33.0 aborts on
M5 in both Gemma encoders (head-256 masked prefill of 1024 tokens,
ml-explore/mlx#4832), and its pending fix (ml-explore/mlx#4903) gives
the Gemma-3 tap a mean cosine of 0.925. So this package declares
xocialize/mlx-swift 0.33.1 (upstream 0.33.0 with the head-dim-split
SDPA routes off, AB-D-0264) and floors engine 0.82.1, exact-conv 0.1.2
and block-stream 0.5.2.

Gated on 3.33.0 + 0.33.1, M5 Max: the 2.5 board (19 gates) is green,
--gemma-gate mean 0.999866 (identical to 3.32.3), --gemma4-gate 0.999988;
--e2e25 448x320x9 finite, mean -0.1234 std 0.4239 vs -0.1312 / 0.4218
on a 3.32.3 build of the same HEAD (trajectory drift, not gated).
2.3 real-weight gates are retired on this station (AB-T-0494).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
xocialize added a commit to xocialize-code/gaea-plugin-demo that referenced this pull request Nov 19, 2026
…ift fork 0.33.1 (Gaea AB-D-0264)

mlx-swift 0.33.1 (xocialize/mlx-swift) is upstream 0.33.0 with the vendored MLX's head-dim-split SDPA routes off: on
M5 they abort, or with ml-explore/mlx#4903 give wrong attention, for head-256 masked prefills of 1024+ tokens
(AB-R-1009). It replaces the 0.32.4 leak-fix fork (AB-D-0208), whose fix upstream 0.33.0 carries. Nothing a host sees
changes: the manifest differs from 0.6.0's only in the engine (0.80.0 to 0.82.1, contract 1.65.0 to 1.66.0, which adds
only imageLocate) and the order of demo-part's characterPart features. scripts/check-plugin.sh passes on the M5 Max.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
xocialize added a commit to xocialize-code/gaea-plugin-sensenova that referenced this pull request Nov 19, 2026
…lx-swift fork 0.33.1 (Gaea AB-D-0264)

mlx-swift 0.33.1 (xocialize/mlx-swift) is upstream 0.33.0 with the vendored MLX's head-dim-split SDPA routes off: on
M5 they abort, or with ml-explore/mlx#4903 give wrong attention, for head-256 masked prefills of 1024+ tokens
(AB-R-1009). It replaces the 0.32.4 leak-fix fork (AB-D-0208), whose fix upstream 0.33.0 carries. sensenova-u1-swift
stays at 0.7.0 (it takes mlx-swift from: 0.32.3). GaeaPluginKit's floor rises to 0.14.1 (resolved 0.16.0): 0.14.0
hard-coded the engine version, so the manifest would still have named 0.79.0.

The manifest differs from 0.2.0's only in the engine (0.79.0 to 0.82.1, contract 1.64.0 to 1.66.0, which adds only
imageLocate). On the M5 Max: scripts/check-plugin.sh passes, scripts/golden.sh 11/11 (fast, TailSteer and a two-edit
chain byte for byte against sensenova-inproc).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
xocialize added a commit to xocialize-code/gaea-plugin-z-image that referenced this pull request Nov 19, 2026
…-swift fork 0.33.1 (Gaea AB-D-0264)

mlx-swift 0.33.1 (xocialize/mlx-swift) is upstream 0.33.0 with the vendored MLX's head-dim-split SDPA routes off: on
M5 they abort, or with ml-explore/mlx#4903 give wrong attention, for head-256 masked prefills of 1024+ tokens
(AB-R-1009). It replaces the 0.32.4 leak-fix fork (AB-D-0208), whose fix upstream 0.33.0 carries. z-image-swift stays
at 0.7.1 and resolves mlx-swift-lm 3.33.0. GaeaPluginKit's floor rises to 0.14.1 (resolved 0.16.0): 0.12.0 hard-coded
the engine version, so the manifest would still have named 0.74.1.

The manifest differs from 0.2.1's only in the engine (0.74.1 to 0.82.1, contract 1.59.0 to 1.66.0) and an empty
requirements.processEnvironment on each model, which earlier engines' decoders skip, so min_gaea stays 1.1.1. On the
M5 Max: scripts/check-plugin.sh passes, scripts/golden.sh 10/10 (NitroFusion2 int4/bf16 at 1, 2 and 4 steps and
Turbo, byte for byte against zimage-inproc).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
xocialize added a commit to xocialize-code/gaea-plugin-fibo2 that referenced this pull request Nov 19, 2026
…wift fork 0.33.1 (Gaea AB-D-0264)

mlx-swift 0.33.1 (xocialize/mlx-swift) is upstream 0.33.0 with the vendored MLX's head-dim-split SDPA routes off: on
M5 they abort, or with ml-explore/mlx#4903 give wrong attention, for head-256 masked prefills of 1024+ tokens
(AB-R-1009). It replaces the 0.32.4 leak-fix fork (AB-D-0208), whose fix upstream 0.33.0 carries. fibo2-swift stays at
0.2.0 (mlx-swift from: 0.32.3) and resolves mlx-swift-lm 3.33.0; fibo2-swift names ml-explore's URL, and this root line
wins.

The manifest differs from 0.2.1's only in the engine (0.80.0 to 0.82.1, contract 1.65.0 to 1.66.0, which adds only
imageLocate). scripts/check-plugin.sh passes on the M5 Max (fibo-2-dev, int8, 512², 8 steps).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
xocialize added a commit to xocialize-code/gaea-plugin-locate that referenced this pull request Nov 19, 2026
… 0.82.1, on the fleet's mlx-swift fork 0.33.1 (Gaea AB-D-0264)

mlx-swift 0.33.1 (xocialize/mlx-swift) is upstream 0.33.0 with the vendored MLX's head-dim-split SDPA routes off: on
M5 they abort, or with ml-explore/mlx#4903 give wrong attention, for head-256 masked prefills of 1024+ tokens
(AB-R-1009). It replaces the 0.32.4 leak-fix fork (AB-D-0208), whose fix upstream 0.33.0 carries. mlx-locate-swift
0.2.0 is 0.1.0 on mlx-swift-lm 3.33 and the same fork; mlx-image re-ran its yardstick on it (head crop 12/12).

The manifest differs from 0.1.0's only in the engine (0.80.0 to 0.82.1, contract 1.65.0 to 1.66.0; the package still
answers imageAnalysis, so the new imageLocate capability isn't declared). On the M5 Max: scripts/check-plugin.sh
passes, scripts/golden.sh 8/8 (the fox on int8 and int4, the ears, nothing there; boxes number for number against
locate-inproc).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
xocialize added a commit to xocialize-code/gaea-plugin-trellis2 that referenced this pull request Nov 19, 2026
…x-swift fork 0.33.1 (Gaea AB-D-0264)

mlx-swift 0.33.1 (xocialize/mlx-swift) is upstream 0.33.0 with the vendored MLX's head-dim-split SDPA routes off: on
M5 they abort, or with ml-explore/mlx#4903 give wrong attention, for head-256 masked prefills of 1024+ tokens
(AB-R-1009). It replaces the 0.32.4 leak-fix fork (AB-D-0208), whose fix upstream 0.33.0 carries. mlx-trellis2-swift
stays at 0.17.0 (mlx-swift from: 0.32.4) and mlx-birefnet-swift at 0.4.x. GaeaPluginKit's floor rises to 0.14.1
(resolved 0.16.0): 0.14.0 hard-coded the engine version, so the manifest would still have named 0.79.0.

The manifest differs from 0.2.0's only in the engine (0.79.0 to 0.82.1, contract 1.64.0 to 1.66.0, which adds only
imageLocate) and the order of Pixal3D's imageTo3D features. On the M5 Max: scripts/check-plugin.sh passes;
scripts/golden.sh 19/20, and the one miss (the in-process side of "remove" hit a Metal GPU timeout while another job
held the GPU) re-run alone gives the bundle's GLB byte for byte (sha256 395856e4…).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
xocialize added a commit to xocialize-code/gaea-plugin-ltx that referenced this pull request Nov 20, 2026
…82.1, on the fleet's mlx-swift fork 0.33.1 (Gaea AB-D-0264)

mlx-swift 0.33.1 (xocialize/mlx-swift) is upstream 0.33.0 with the vendored MLX's head-dim-split SDPA routes off: on
M5 they abort, or with ml-explore/mlx#4903 give wrong attention, for head-256 masked prefills of 1024+ tokens; LTX's
Gemma-3 tap was the case that showed it (AB-R-1009). It replaces the 0.32.4 leak-fix fork (AB-D-0208), whose fix
upstream 0.33.0 carries. The root still declares the fork (from: 0.33.1): a root line naming ml-explore's URL would win.

- ltx-2-mlx-swift 0.20.0 to 0.23.0: mlx-swift-lm 3.33, feed-forward chunking at 65,536+ tokens, capped VAE paths.
- GaeaPluginKit's floor rises from 0.9.1 to 0.14.1 (resolved 0.16.0). Kits before 0.14.1 hard-code the engine version:
  0.1.3's manifest says engine 0.72.0 though it linked 0.74.1 (AB-L-0366).
- ltx-2-mlx-swift 0.21+ declares typed adapters (a LoRA or an IC adapter) on its surface, and the kit would offer them to
  Gaea as adapter_support on video.generate. `call` doesn't put a run's adapters on the T2VRequest, so an admitted
  adapter would be dropped without a word. `withoutAdapters` takes the declaration and the surface's adapters
  parameter off each model's manifest until the plugin carries them; the kit then refuses a run that sends one.
- ltx-inproc's LoadProbe: mlx-swift-lm 3.33 made sanitize(weights:metadata:) throwing.

On the M5 Max: scripts/check-plugin.sh passes. scripts/golden.sh: standard64, compact24-first and compact24-extend
byte for byte; compact24 and balanced32 within 42 dB, standard64-last 51 dB and compact24-retake 29 dB (int8,
deterministic: false); max128 (bf16) byte for byte in 6 of 7 runs. The first max128 run after a reboot gave other
frames (3cc91cde…, 50 dB from in-process); the 4 bundle runs after it, one at a time, all gave ad8c9c74…, in-process's.
tools/acceptance-ltx.sh through Gaea 1.9.2 (stand-in): 22/22.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
xocialize added a commit to xocialize-code/gaea-plugin-kokoro that referenced this pull request Nov 20, 2026
…swift fork 0.33.1 (Gaea AB-D-0264)

0.1.1's root named ml-explore's mlx-swift URL `from: "0.33.0"`, which won over the engine's fork (both URLs are one
package identity) and built unpatched upstream 0.33.0 (MLX v0.32.4). The root now names xocialize/mlx-swift
`from: "0.33.1"`: upstream 0.33.0 with the vendored MLX's head-dim-split SDPA routes off, which abort on M5 or, with
ml-explore/mlx#4903, give wrong attention for head-256 masked prefills of 1024+ tokens (AB-R-1009). Kokoro never
reached that route: it makes no fused SDPA call (ALBERT and the G2P fallback's BART attend by matmul and softmax).

Engine floor 0.73.1 -> 0.82.1 (contract 1.66.0). GaeaPluginKit floor 0.7.1 -> 0.14.1 (resolves 0.16.0): kits before
0.14.1 hard-code the engine version, so 0.1.1's manifest said engine 0.72.0 though it linked 0.73.1 (AB-L-0366).
mlx-kokoro-tts-swift stays 0.5.0 (kokoro-mlx-swift 0.1.1). The manifest differs from 0.1.1's only in the engine
version and contract.

On the M5 Max: check-plugin.sh passes; golden.sh 8/8, and its four WAVs are byte for byte 0.1.0's golden
(sha256 9455e297…, b7c74e42…, 4f76fcd6…, bae66210…); acceptance-kokoro.sh through Gaea 1.9.2 (stand-in) 34/34.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
xocialize added a commit to xocialize-code/gaea-plugin-qwen3-tts that referenced this pull request Nov 20, 2026
…lx-swift fork 0.33.1 (Gaea AB-D-0264)

0.2.1's root named ml-explore's mlx-swift URL `from: "0.33.0"`, which won over the engine's fork (both URLs are one
package identity) and built unpatched upstream 0.33.0 (MLX v0.32.4). The root now names xocialize/mlx-swift
`from: "0.33.1"`: upstream 0.33.0 with the vendored MLX's head-dim-split SDPA routes off, which abort on M5 or, with
ml-explore/mlx#4903, give wrong attention for head-256 masked prefills of 1024+ tokens (AB-R-1009). Qwen3-TTS never
reached that route: its fused SDPA runs at head dim 128 (talker, code predictor) and 64 (the codec's decoder), and the
route is only for head dims 256 and 512.

Engine floor 0.73.1 -> 0.82.1 (contract 1.66.0). GaeaPluginKit floor 0.8.0 -> 0.14.1 (resolves 0.16.0): kits before
0.14.1 hard-code the engine version, so 0.2.1's manifest said engine 0.72.0 though it linked 0.73.1 (AB-L-0366).
mlx-qwen3-tts-swift stays 0.7.0 (qwen3-tts-mlx-swift 0.2.0). The manifest differs from 0.2.1's only in the engine
version and contract.

On the M5 Max: check-plugin.sh passes; golden.sh 15/15, and its eight WAVs are byte for byte 0.2.0's golden;
acceptance-qwen3-tts.sh through Gaea 1.9.2 (stand-in) 39/39.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
xocialize added a commit to xocialize-code/gaea-plugin-auk that referenced this pull request Nov 20, 2026
…ft fork 0.33.1 (Gaea AB-D-0264)

The root moves from xocialize/mlx-swift `from: "0.32.4"` to `from: "0.33.1"`. The old floor also admitted the fork's
mirrored upstream tag 0.33.0 (7ede4fd), and 0.1.1's Package.resolved pinned exactly that: the released build ran
unpatched upstream 0.33.0, not the 0.32.4 leak-fix fork the comment named. 0.33.1 is upstream 0.33.0 with the vendored
MLX's head-dim-split SDPA routes off, which abort on M5 or, with ml-explore/mlx#4903, give wrong attention for head-256
masked prefills of 1024+ tokens (AB-R-1009). AuK's attention runs at head dim 64 (DiT) and 128 (the Qwen-Omni
thinker), so it never reached that route. Upstream 0.33.0 carries the _updateInternal leak fix (AB-D-0208) that staged
encoder reloads needed.

Engine floor 0.74.1 -> 0.82.1 (contract 1.66.0). GaeaPluginKit floor 0.11.1 -> 0.14.1 (resolves 0.16.0; AB-L-0366).
mlx-auk-swift stays 0.3.0. The manifest differs from 0.1.1's only in the engine version and contract.

On the M5 Max: check-plugin.sh passes; golden.sh 31/31; acceptance-auk.sh through Gaea 1.9.2 (stand-in) 50/50.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
xocialize added a commit to xocialize-code/gaea-plugin-flux2-klein that referenced this pull request Nov 20, 2026
… mlx-swift fork 0.33.1 (Gaea AB-D-0264)

The root moves from xocialize/mlx-swift `from: "0.32.4"` (the retired leak-fix fork, which 0.3.0 resolved) to
`from: "0.33.1"`: upstream 0.33.0 with the vendored MLX's head-dim-split SDPA routes off, which abort on M5 or, with
ml-explore/mlx#4903, give wrong attention for head-256 masked prefills of 1024+ tokens (AB-R-1009). Klein's DiT and its
Qwen3 encoder attend at head dim 128, so they never reached that route. mlx-swift-lm resolves 3.33.0 and
mlx-exact-conv-swift 0.1.2; flux2-klein-swift stays 0.11.0.

Engine floor 0.74.1 -> 0.82.1 (contract 1.66.0). GaeaPluginKit floor 0.11.1 -> 0.14.1 (resolves 0.16.0; AB-L-0366).
The manifest differs from 0.3.0's only in the engine version and contract.

On the M5 Max: check-plugin.sh passes; golden.sh 19/19 (Gaea and klein-inproc byte for byte on the new stack).
Against 0.3.0 (installed from GitHub) the seeded Klein 4B 1024² image moved to 28.9 dB PSNR (int4 29.5 dB): same
picture, fur and snow texture differ. acceptance-klein.sh through Gaea 1.9.2 (stand-in): 11 pass, 5 fail, and
released 0.3.0 fails the same checks: Gaea 1.9.2 offers Klein's tiers as draft/standard, so the script's
`quality: "best"` job is refused at submit, and the two-reference edit (which uploads that job's image) and both
byte-for-byte comparisons fail with it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
xocialize added a commit to xocialize-code/gaea-plugin-flux3-klein that referenced this pull request Nov 20, 2026
… mlx-swift fork 0.33.1 (Gaea AB-D-0264)

The root moves from xocialize/mlx-swift `from: "0.32.4"` (the retired leak-fix fork, which 0.2.0 resolved) to
`from: "0.33.1"`: upstream 0.33.0 with the vendored MLX's head-dim-split SDPA routes off, which abort on M5 or, with
ml-explore/mlx#4903, give wrong attention for head-256 masked prefills of 1024+ tokens (AB-R-1009). FLUX 3 Klein's DiT
and its Qwen3-VL encoder attend at head dim 128, so they never reached that route. mlx-swift-lm resolves 3.33.0 and
mlx-exact-conv-swift 0.1.2; flux3-klein-swift stays 0.7.0.

Engine floor 0.74.1 -> 0.82.1 (contract 1.66.0). GaeaPluginKit floor 0.11.1 -> 0.14.1 (resolves 0.16.0; AB-L-0366).
The manifest differs from 0.2.0's only in the engine version and contract.

On the M5 Max: check-plugin.sh passes; golden.sh 13/13 (Gaea and flux3-inproc byte for byte on the new stack; every
seeded hash moved from 0.2.0's golden); acceptance-klein-upscale.sh through Gaea 1.9.2 (stand-in, with flux2-klein
0.3.1) 24/24.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
xocialize added a commit to xocialize-code/gaea-plugin-indextts that referenced this pull request Nov 20, 2026
…x-swift fork 0.33.1 (Gaea AB-D-0264)

The root moves from xocialize/mlx-swift `from: "0.32.4"` to `from: "0.33.1"`. The old floor also admitted the fork's
mirrored upstream tag 0.33.0 (7ede4fd), and 0.1.1's Package.resolved pinned exactly that: the released build ran
unpatched upstream 0.33.0, not the 0.32.4 leak-fix fork the comment named. 0.33.1 is upstream 0.33.0 with the vendored
MLX's head-dim-split SDPA routes off, which abort on M5 or, with ml-explore/mlx#4903, give wrong attention for head-256
masked prefills of 1024+ tokens (AB-R-1009). IndexTTS 2.5 never reached that route: it makes no fused SDPA call.

Engine floor 0.74.1 -> 0.82.1 (contract 1.66.0). GaeaPluginKit floor 0.10.0 -> 0.14.1 (resolves 0.16.0): kits before
0.14.1 hard-code the engine version, so 0.1.1's manifest said engine 0.72.0 though it linked 0.74.1 (AB-L-0366).
mlx-indextts2-swift stays 0.6.0. The manifest differs from 0.1.1's only in the engine version and contract.

On the M5 Max: check-plugin.sh passes; golden.sh 16/16; acceptance-indextts.sh through Gaea 1.9.2 (stand-in) 44/44.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
xocialize added a commit to xocialize-code/gaea-plugin-step-audio-editx that referenced this pull request Nov 20, 2026
…eet's mlx-swift fork 0.33.1 (Gaea AB-D-0264)

The root moves from xocialize/mlx-swift `from: "0.32.4"` to `from: "0.33.1"`. The old floor also admitted the fork's
mirrored upstream tag 0.33.0 (7ede4fd), and 0.1.2's Package.resolved pinned exactly that: the released build ran
unpatched upstream 0.33.0. 0.33.1 is upstream 0.33.0 with the vendored MLX's head-dim-split SDPA routes off, which
abort on M5 or, with ml-explore/mlx#4903, give wrong attention for head-256 masked prefills of 1024+ tokens
(AB-R-1009). Step-Audio-EditX never reached that route: it makes no fused SDPA call.

Engine floor 0.74.1 -> 0.82.1 (contract 1.66.0). GaeaPluginKit floor 0.11.0 -> 0.14.1 (resolves 0.16.0; AB-L-0366).
mlx-step-audio-editx-swift stays 0.2.1. The manifest differs from 0.1.2's only in the engine version and contract.

On the M5 Max: check-plugin.sh passes; golden.sh 21/21, and its nine WAVs are byte for byte 0.1.0's golden;
acceptance-step-audio-editx.sh through Gaea 1.9.2 (stand-in) 31/31.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
xocialize added a commit to xocialize-code/gaea-plugin-sam-audio that referenced this pull request Nov 20, 2026
…lx-swift fork 0.33.1 (Gaea AB-D-0264)

The root moves from xocialize/mlx-swift `from: "0.32.4"` to `from: "0.33.1"`. The old floor also admitted the fork's
mirrored upstream tag 0.33.0 (7ede4fd), and 0.1.0's Package.resolved pinned exactly that: the released build ran
unpatched upstream 0.33.0. 0.33.1 is upstream 0.33.0 with the vendored MLX's head-dim-split SDPA routes off, which
abort on M5 or, with ml-explore/mlx#4903, give wrong attention for head-256 masked prefills of 1024+ tokens
(AB-R-1009). SAM-Audio never reached that route: its DiT and T5 encoder attend by matmul and softmax, with no fused
SDPA call.

Engine floor 0.77.0 -> 0.82.1 (contract 1.66.0). GaeaPluginKit floor 0.12.0 -> 0.14.1 (resolves 0.16.0): kits before
0.14.1 hard-code the engine version, so 0.1.0's manifest said engine 0.74.1 though it linked 0.77.0 (AB-L-0366).
mlx-sam-audio-swift stays 0.2.1. The manifest differs from 0.1.0's only in the engine version and contract.

On the M5 Max: check-plugin.sh passes; golden.sh 5/5; acceptance-sam-audio.sh through Gaea 1.9.2 (stand-in) 32/32.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
xocialize added a commit to xocialize-code/gaea-plugin-voxcpm2 that referenced this pull request Nov 20, 2026
…-swift fork 0.33.1 (Gaea AB-D-0264)

The root moves from xocialize/mlx-swift `from: "0.32.4"` to `from: "0.33.1"`. The old floor also admitted the fork's
mirrored upstream tag 0.33.0 (7ede4fd), and 0.1.0's Package.resolved pinned exactly that: the released build ran
unpatched upstream 0.33.0. 0.33.1 is upstream 0.33.0 with the vendored MLX's head-dim-split SDPA routes off, which
abort on M5 or, with ml-explore/mlx#4903, give wrong attention for head-256 masked prefills of 1024+ tokens
(AB-R-1009). VoxCPM2 attends at head dim 128 (LM, encoder and DiT), so it never reached that route.

Engine floor 0.74.1 -> 0.82.1 (contract 1.66.0). GaeaPluginKit floor 0.10.0 -> 0.14.1 (resolves 0.16.0): kits before
0.14.1 hard-code the engine version, so 0.1.0's manifest said engine 0.72.0 though it linked 0.74.1 (AB-L-0366).
mlx-voxcpm2-tts-swift stays 0.6.0 (0.7.0 only moves its own dependencies to the fork, which this root already names).
The manifest differs from 0.1.0's only in the engine version and contract.

On the M5 Max: check-plugin.sh passes; golden.sh 17/17; acceptance-voxcpm2.sh through Gaea 1.9.2 (stand-in) 44/44.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
xocialize added a commit to xocialize-code/gaea-plugin-forge that referenced this pull request Nov 20, 2026
…wift fork 0.33.1 (Gaea AB-D-0264)

0.2.1's root named ml-explore's mlx-swift URL `from: "0.32.3"`, which won over the engine's fork (one package
identity) and built upstream 0.32.3, without even the 0.32.4 leak fix (AB-D-0208). The root now names
xocialize/mlx-swift `from: "0.33.1"`: upstream 0.33.0 with the vendored MLX's head-dim-split SDPA routes off, which
abort on M5 or, with ml-explore/mlx#4903, give wrong attention for head-256 masked prefills of 1024+ tokens
(AB-R-1009). mlx-swift-lm resolves 3.33.0, mlx-exact-conv-swift 0.1.2 and mlx-seedvr2-swift 0.10.3.

mlx-swift 0.33's compile(_:) gives back a @sendable closure only for a @sendable one, which broke the RealPLKSR and
NERVE playback tiers (Swift 6 mode). mlx-realplksr-swift and mlx-nerve-swift 0.2.2 fix them, and their floors here
rise to 0.2.2. ForgeCore stays 0.43.0.

Engine floor 0.73.1 -> 0.82.1 (contract 1.66.0). GaeaPluginKit floor 0.3.1 -> 0.14.1 (resolves 0.16.0): kits before
0.14.1 hard-code the engine version, so 0.2.1's manifest said engine 0.72.0 though it linked 0.73.1 (AB-L-0366). The
manifest differs from 0.2.1's only in the engine version and contract.

On the M5 Max: check-plugin.sh passes; golden.sh 25/25 (every model over GPP against ForgeCore in-process, byte for
byte). Of the 23 cases 0.2.0's golden also ran, 13 give the same bytes as then and 10 moved (BiRefNet, Nacre x2,
RealPLKSR, RestoreFormer++, Restormer x3, SCUNet, VOSR2).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
attention_nax_dsplit has no BV template parameter, but
get_steel_attention_nax_kernel passed bv to both NAX attention kernels.
In JIT builds the split-D kernel got one argument too many and failed to
compile on NAX GPUs for head dim 256 or 512 and 1024+ query tokens.

Fixes ml-explore#4832
@zcbenz
zcbenz force-pushed the fix-jit-attention-nax-dsplit branch from 537b955 to 29447c2 Compare November 21, 2026 23:35
@zcbenz
zcbenz merged commit 190cb65 into ml-explore:main Nov 22, 2026
24 checks passed
monaxuho pushed a commit to literal-labs/whittle-engine that referenced this pull request Nov 26, 2026
mlx_swift/ is the MLX folder's model for MLX Swift (mlx-swift-lm):
WhittleQwen35.swift, the counterpart of whittle_qwen3_5.py with the same
Metal kernels, registered over mlx-swift-lm's qwen3_5 loader for Whittle
folders only, and whittle-mlx-bench, which runs mlx-lm's stream_generate
loop in Swift. setup.sh --swift builds it; mlx_bench.py --runtime swift
runs the same parity check and measurements through it, prefilling in
mlx-swift-lm's 512-token steps, with settings ", MLX Swift" and
", MLX Swift stock".

mlx-swift 0.33.0 fails to build the head-dim-256 split attention kernel
at run time on GPUs with neural accelerators (ml-explore/mlx#4903): the
model runs causal attention over 1,024 or more queries in smaller query
chunks, which is exact.

Parity on the M5 MacBook Pro: argmax 83/84 against the engine, greedy
chat reply identical.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TaLhhNCr3qmtWd43gwv8ha
hkay-dev added a commit to hkay-dev/mlx-swift that referenced this pull request Nov 29, 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.

[BUG] JIT build: attention_nax_dsplit fails to compile (extra bv template argument)

2 participants