Repository navigation
mlx v0.32.4 - #508
Merged
Merged
mlx v0.32.4#508
Conversation
davidkoski
commented
Oct 21, 2026
| /// | ||
| /// - Parameter arrays: arrays to count | ||
| /// - Returns: size in bytes | ||
| public static func bufferSize(_ arrays: some Collection<MLXArray>) -> Int { |
Member
Author
Contributor
davidkoski
commented
Oct 22, 2026
| /// If it is larger, the output is padded with `fillValue`. | ||
| /// - stream: stream or device to evaluate on | ||
| /// - Returns: sorted unique elements | ||
| public func uniqued( |
Member
Author
There was a problem hiding this comment.
@louen your unique makes it to mlx-swift -- check out this function and the one below, let me know if you have thoughts on how it is ported!
davidkoski
force-pushed
the
mlx-0.32.4
branch
from
October 23, 2026 01:00
26091da to
7fd31b8
Compare
nwh
approved these changes
Oct 23, 2026
Contributor
|
@davidkoski is there any chance mlx-c can get updated with new distributed mlx code that's in mlx 0.32.4 as well? |
Member
Author
I will talk to Ronan -- if it doesn't make it this time we can get it in a patch. |
New API - MLXFast.gatedDeltaUpdate - Memory.bufferSize - matrixTransposed - uniqued Changed API - gatherQuantizedMM -- adds globalScale: MLXArray? = nil, biases now has a nil default
davidkoski
force-pushed
the
mlx-0.32.4
branch
from
October 26, 2026 16:48
7fd31b8 to
9cd7969
Compare
Member
Author
|
@ronaldmannak the mlx-c distributed change is included here. Just waiting for CI now |
4 tasks done
4 tasks done
2 of 4 tasks
tsnAnh
pushed a commit
to TitoniumLab/mlx-swift
that referenced
this pull request
Nov 7, 2026
Brings in upstream mlx-swift up to 392aa34 (9 commits past the 43c90af merge base), including the mlx v0.32.4 vendor update (ml-explore#508), optimizer state, CUDA build changes, crossEntropy/nllLoss, C++ warning fixes, concurrent safetensors loading (ml-explore#462), and update(parameters:) (ml-explore#510). Conflict resolution: - Source/Cmlx/mlx and Source/Cmlx/mlx-c: re-vendored from upstream (mlx 36969c09, mlx-c a26f2d58) with the carried fork patches re-applied, including the unsigned floor_divide shortcut in mlx/ops.cpp. - Source/Cmlx/mlx-generated: regenerated with tools/update-mlx.sh; moe_stream.metal (fork-only) copied from fork main; sdpa_vector.h keeps the TurboQuant changes. - Source/Cmlx/include-framework: regenerated with tools/update-mlx-xcodeproj.sh; fork headers (mlx-fast.h, mlx-threadpool.h, mlx-c-fast.h, mlx-io-load.h) retained. - Package.swift: fork version kept with upstream's cross_entropy.cpp and gated_delta_update.cpp sources and shorten-64-to-32 warning suppression; CUDA stubbing retained. - xcode/MLX.xcodeproj: upstream project plus moe_stream.metal. - Tests/MLXTests/FP8Tests.swift: upstream version taken; the fork's NaN-aware variant papered over pre-v0.32.4 decoding and is superseded. - Source/MLX/Transforms+Compile.swift: fork's scoped default device patch kept. - .github/*, .gitmodules, MAINTENANCE.md, fmt/test/*: fork-only, kept. Not compiled or tested locally; CI is the gate. Co-Authored-By: Claude Haiku 5.5 <[email protected]>
davidkoski
pushed a commit
that referenced
this pull request
Nov 9, 2026
The noMetalCmlxExcludes entry was spelled "mxl/mlx/backend/metal/cross_entropy.cpp",
so the file was not excluded on Linux and the SwiftPM build failed with:
mlx/backend/metal/device.h:5:10: fatal error: 'Metal/Metal.hpp' file not found
The typo was introduced in #508 and first shipped in 0.33.0
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.
Proposed changes
mlx v0.32.4
New API
Changed API
Checklist
Put an
xin the boxes that apply.pre-commit run --all-filesto format my code / installed pre-commit prior to committing changes