Repository navigation
Raise swift-syntax floor to 602.0.0 for prebuilt artifact resolution - #340
Merged
davidkoski merged 1 commit intoJun 16, 2026
Merged
Conversation
roryford
marked this pull request as draft
June 11, 2026 11:58
roryford
force-pushed
the
macro-free-huggingface-bridges
branch
from
June 11, 2026 12:12
be4bba7 to
7694c4d
Compare
davidkoski
reviewed
Jun 11, 2026
Comment on lines
+43
to
+46
| // 602.0.0 floor: swift.org publishes signed prebuilt swift-syntax artifacts only for | ||
| // >= 602 tags on current toolchains; a 600.x/601.x resolution falls back to the full | ||
| // source compile of swift-syntax. | ||
| .package(url: "https://github.com/swiftlang/swift-syntax.git", "602.0.0" ..< "604.0.0"), |
davidkoski
reviewed
Jun 11, 2026
Comment on lines
+47
to
+48
| .package(url: "https://github.com/huggingface/swift-transformers", from: "1.3.0"), | ||
| .package(url: "https://github.com/huggingface/swift-huggingface", from: "0.9.0"), |
Member
There was a problem hiding this comment.
We can't do this -- see #118 . The package resolution can't be turned off and name collisions are not allowed. There is some aliasing capability, but it was unable to solve it.
This is how we ended up with the macros. Or you can use the external (to mlx-explore) implementations.
swift.org's signed prebuilt swift-syntax artifacts are keyed per swift-syntax tag and exact toolchain, and 600.x/601.x artifacts are no longer published for current toolchains. A package graph that resolves below 602 silently falls back to compiling swift-syntax from source (~200 build tasks). Raising the floor keeps consumers on the prebuilt path. See ml-explore#339 for measurements. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
roryford
force-pushed
the
macro-free-huggingface-bridges
branch
from
June 12, 2026 10:26
7694c4d to
d6924bf
Compare
roryford
marked this pull request as ready for review
June 12, 2026 10:34
dkgv
pushed a commit
to dkgv/mlx-swift-lm
that referenced
this pull request
Jul 30, 2026
…lore#340) swift.org's signed prebuilt swift-syntax artifacts are keyed per swift-syntax tag and exact toolchain, and 600.x/601.x artifacts are no longer published for current toolchains. A package graph that resolves below 602 silently falls back to compiling swift-syntax from source (~200 build tasks). Raising the floor keeps consumers on the prebuilt path. See ml-explore#339 for measurements.
div0-space
pushed a commit
to LibraxisAI/mlx-swift-lm
that referenced
this pull request
Nov 29, 2026
div0-space
pushed a commit
to LibraxisAI/mlx-swift-lm
that referenced
this pull request
Nov 29, 2026
One SDK commit carries GLM5-Next native-mode logprobs and variable-frame-rate video (ml-explore#340) and Super's speculation beside logprob rows, so the d-inference logprobs follow-up pins a single SDK.
div0-space
pushed a commit
to LibraxisAI/mlx-swift-lm
that referenced
this pull request
Nov 29, 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 (ml-explore#339), the mlx-swift pin eedca444 (ml-explore#358), the provider 0.10.2 set (ml-explore#356, ml-explore#357, ml-explore#359, ml-explore#360), GLM long-context decode (ml-explore#362), balanced checkpoints for GLM-5.3-Flash and Nemotron Super (ml-explore#363), GLM video at the track's average rate (ml-explore#340) and the Flint decode work (ml-explore#336-ml-explore#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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Narrowed from the original proposal. This PR is now only the swift-syntax floor bump, flagged as useful
Why: swift.org publishes signed prebuilt swift-syntax artifacts only for >= 602 tags on current toolchains. A 600.x/601.x resolution silently falls back to compiling swift-syntax from source. Measured on Swift 6.3.2 / Xcode 26.5: forcing source compile adds ~46 Swift-compile tasks / ~29s of compile CPU per cold build (SwiftCompile 24.1s → 53.2s) that the prebuilt skips entirely.