Skip to content

ci: fix downstream integration - add submodules:recursive and pre-install metallib before build#4

Closed
solderzzc wants to merge 21 commits intomainfrom
fix/downstream-integration-submodules
Closed

ci: fix downstream integration - add submodules:recursive and pre-install metallib before build#4
solderzzc wants to merge 21 commits intomainfrom
fix/downstream-integration-submodules

Conversation

@solderzzc
Copy link
Copy Markdown
Member

Fixes two issues in downstream_integration.yml:

  1. Added submodules: recursive to SwiftLM checkout so mlx-swift-lm/Package.swift is initialized
  2. Moved Metal library install before build (pre-export via MLX_METAL_LIB env var) so the server process finds it at runtime

davidkoski and others added 21 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
Copy link
Copy Markdown
Member Author

Consolidated into PR #3 (sync/upstream-latest) — all fixes applied directly to that branch.

@solderzzc solderzzc closed this Apr 15, 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.

5 participants