Skip to content

Pin mlx-swift eedca444 (mlx ff4bb35b: #40, #43) - #358

Merged
davidtai merged 2 commits into
mainfrom
pin/mlx-swift-8d927e6d
Oct 24, 2026
Merged

davidtai merged 2 commits into
mainfrom
pin/mlx-swift-8d927e6d

Conversation

@davidtai

@davidtai davidtai commented Oct 24, 2026 •

Copy link
Copy Markdown

What changes

Commits: 7f5387c0 pinned mlx-swift 8d927e6d (mlx c51f9f32) while #43 was in CI. 3590ee11 moves to mlx-swift eedca444 (mlx ff4bb35b).

Pin chain

PR Pin
Layr-Labs/mlx#43 (head ff4bb35b)
Layr-Labs/mlx-c#19 mlx ff4bb35b
Layr-Labs/mlx-swift#63 Source/Cmlx/mlx = ff4bb35b, Source/Cmlx/mlx-c = 004c735f
this PR (mlx-swift-lm) mlx-swift = eedca444

Merge order

Layr-Labs/mlx#43 -> Layr-Labs/mlx-c#19 -> Layr-Labs/mlx-swift#63 -> mlx-swift-lm (this PR).

Use "Create a merge commit" for every PR in the chain. Do not squash. A squash makes the pinned SHAs unreachable from main.

🤖 Generated with Claude Code

davidtai and others added 2 commits October 24, 2026 10:54
The Layr-Labs/mlx-swift revision moves from 6c31f9f1 (the #62 head; same
tree as mlx-swift main ca35ce89) to 8d927e6d. That commit pins mlx
c51f9f32 (Layr-Labs/mlx main with #40, float16 and bfloat16 floor
divide in float32) and mlx-c f1a489c9, and has the regenerated JIT
sources. The repo tracks no Package.resolved.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The Layr-Labs/mlx-swift revision moves from 8d927e6d to eedca444, the
new mlx-swift#63 head. It pins mlx ff4bb35b (Layr-Labs/mlx#43, a freed
compiled closure is erased from every thread compile cache, on top of
main with #40) and mlx-c 004c735f.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@davidtai davidtai changed the title Pin mlx-swift 8d927e6d (mlx c51f9f32 with #40) Pin mlx-swift eedca444 (mlx ff4bb35b: #40, #43) Oct 24, 2026
@davidtai
davidtai merged commit 476cb7c into main Oct 24, 2026
22 checks passed
@davidtai
davidtai deleted the pin/mlx-swift-8d927e6d branch October 24, 2026 17:35
jonathan308 added a commit that referenced this pull request Oct 24, 2026
SDK main gained #358: Package.swift pins Layr-Labs/mlx-swift eedca444
(was 6c31f9f1), which pins mlx ff4bb35b (Layr-Labs/mlx #43: a freed
compiled closure is erased from every thread compile cache; #40: float16
and bfloat16 floor divide in float32) and mlx-c 004c735f. Clean merge.
jonathan308 added a commit that referenced this pull request Oct 24, 2026
…to feat/decode-steps-projection-on-0.10.2
jonathan308 added a commit that referenced this pull request Oct 26, 2026
Merges origin/main aee6ebb into darkbloom/tp-engine 8411247. Main is 377
commits past the merge base 889fe3c: the upstream sync to ml-explore
d02948b (#339), the mlx-swift pin eedca444 (#358), the provider 0.10.2 set
(#356, #357, #359, #360), GLM long-context decode (#362), balanced
checkpoints for GLM-5.3-Flash and Nemotron Super (#363), GLM video at the
track's average rate (#340) and the Flint decode work (#336-#338).

Package.swift keeps the cluster's mlx-swift pin 9fe34405; everything else
is main's (swift-tools 6.2, the swift-syntax 602 floor, the new targets).

Conflicts:
- GLM5NextMoEDecodeKernel.swift: the cluster's file (the dense-MLP
  two-launch path, the non-private header) in main's swift-format layout,
  with main's two changes: GLM5NextNVFP4Linear.weightScale2 (renamed
  because MLXNN QuantizedLinear now declares globalScale) and the copied
  MLX sigmoid with metal::precise::exp (main 1ba5e73).
- PagedSegmentAttention.swift: main's first-bucket scratch allocation and
  seqinfo cache, plus the cluster's multi-query verification kernel and
  the non-private merge kernel it uses.
- GatedDelta.swift: main moved it to MLXLMCommon and added useKernel. The
  cluster's fuseQwen35Gates stays; its compiled gates move beside
  gatedDeltaUpdate (qwen35GatedDeltaGates, package) because MLXLMCommon
  cannot reach MLXLLM's Qwen35DecodeFusions, which now forwards to it. The
  traced ops are the cluster's (sigmoid(b) to float32, then
  exp(-exp(float32(A_log)) * softplus(a + dt_bias))), so the decode gates
  keep their bits. Qwen35DecodeFusionsTests compares against the separate
  ops, since main made computeGatedDeltaG itself a compiled closure.
- GLM5NextProcessor.swift: main's image.source switch with the cluster's
  GLM5NextRGBDecoder; main's variable-frame-rate decoding auto-merged.
- Package.swift: see above.

Merged without textual conflict but adjusted:
- PagedLayerCache.writePromptKVWithoutAttention (main, Flint) advances
  the offsets through advancePositionOffsets, so the cluster's
  hostPositionOffsets stay in step with the device offsets.
- PagedAttentionKVTests: main's newCache throws.

Numerics: main changed every copied MLX sigmoid to metal::precise::exp
(1ba5e73, 3794edf) to follow MLX #4461: the GLM hyper-connection
coefficients, the GLM MoE decode and prefill clamped GLU, Nemotron Super
and MiMo. They follow the merged MLX core. The cluster core pinned here
still has metal::exp, so GLM on the pair changes bits when it runs with
these kernels; see the merge record.

Tests: swift build --build-tests against main's mlx-swift eedca444 with
two compile-only stand-ins for the cluster mlx-swift API
(MLXArray.sharingArray, metalKernel fencedInputs): complete. The CPU unit
group (^MLXLMTests.UnitTests/, no Metal library): 437 tests, one failure,
the pre-existing GLM5NextProcessorMediaTests Metal dependency. The tree
does not build at its own pin 9fe34405 (main needs mlx-swift API such as
MLXArray.maskFill); it builds once the pin moves to the merged mlx-swift.

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.

2 participants