Skip to content

🔄 Auto-Sync: Upstream changes from ml-explore/mlx-swift#3

Merged
solderzzc merged 25 commits intomainfrom
sync/upstream-latest
Apr 16, 2026
Merged

🔄 Auto-Sync: Upstream changes from ml-explore/mlx-swift#3
solderzzc merged 25 commits intomainfrom
sync/upstream-latest

Conversation

@solderzzc
Copy link
Copy Markdown
Member

Automated PR to sync the latest changes from upstream ml-explore/mlx-swift's main branch. Please review against custom integrations.

davidkoski and others added 22 commits March 23, 2026 14:35
* update for mlx 0.31.1

- clean up some build settings (c++ version, warnings)
- set mlx version (see ml-explore#370 and ml-explore#373)
- fixes xcode 26.4 build issue
- fixes ml-explore#375
* Implement L2 normalization extension for MLXArray

Adds an extension method to MLXArray for L2 normalization.
- fix ml-explore#378
- save functions call eval internally and must be run under evalLock
* Add doc comment verification script and CI step
* Fix doc comments
* Discover doc verification targets dynamically and report all failures
…xplore#384)

QuantizedLinear.init(weight:...) called MLX.quantized() without
forwarding the mode parameter, so weights were always quantized
as affine regardless of the specified mode. This produced spurious
biases for non-affine modes like mxfp4.

Fix: pass mode: mode to MLX.quantized(), matching QuantizedEmbedding
which already does this correctly.

Note: no updateMissing() override is needed — when biases is nil,
Module.build(value:) wraps it as .value(.other(...)), and the
(.value(.other(_)), .none) case in update() already breaks silently.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
ml-explore#394)

- this should cover _most_ cases
- there is still ([MLXArray]) -> [MLXArray] as a fallback
* add missing functions

- eig - eigenvalues and eigenvectors
- eigh - eigenvalues/eigenvectors of symmetric/Hermitian matrix
- eigvals - eigenvalues only
- eigvalsh - eigenvalues of symmetric/Hermitian matrix
- pinv - pseudo-inverse

* add remaining functions:

- logcumsumexp
- segmentedMm (segmented_mm)
- permutation
- fftshift
- ifftshift
@solderzzc solderzzc merged commit e9a7b5b into main Apr 16, 2026
7 checks passed
@solderzzc solderzzc deleted the sync/upstream-latest branch April 16, 2026 02:44
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.

5 participants