MLX 0.32.5 release notes
MLX 0.32.5 was released on November 25, 2026. It is the latest version.
Release notes
What's Changed
- docs: Publishing a New Release by @zcbenz in https://github.com/ml-explore/mlx/pull/4691
- Run update_bypass_list on push instead of pull_request by @zcbenz in https://github.com/ml-explore/mlx/pull/4671
- Run the vector SDPA kernels at head_dim 256 on CUDA by @yanghaojin in https://github.com/ml-explore/mlx/pull/4698
- [CUDA] Fix grouped gemm with large data by @yanghaojin in https://github.com/ml-explore/mlx/pull/4696
- Fix conv2d OOB reads for partial output-channel tiles by @navthings in https://github.com/ml-explore/mlx/pull/4653
- Document MetalLibrary in custom extension guide by @XXXXRT666 in https://github.com/ml-explore/mlx/pull/4701
- [Metal] Fix SDPA f16/f32 d512 max threadgroup for M1/M2 generation by @dhiltgen in https://github.com/ml-explore/mlx/pull/4708
- Add float16 head_dim 256 TK=1 SDPA vector kernel for M1/M2 by @jmmarkiewicz in https://github.com/ml-explore/mlx/pull/4719
- Allow configuring the CPU JIT cache directory by @cerisier in https://github.com/ml-explore/mlx/pull/4714
- Make
broadcast_arraysreturn a tuple by @prady0t in https://github.com/ml-explore/mlx/pull/4713 - Fix unaligned scalar reads and oversized contiguous buffer views by @aleroot in https://github.com/ml-explore/mlx/pull/4721
- [Metal] Add staged affine_qmm_t_nax kernels with split-k by @wyanzhao in https://github.com/ml-explore/mlx/pull/4682
- [Metal] Add fast route for dequantizing fp4 to half in fp_qmm_t by @dhiltgen in https://github.com/ml-explore/mlx/pull/4709
- [Metal] Add qmv_mma/qmv_nax kernels for 6-16 rows with large N/K by @dhiltgen in https://github.com/ml-explore/mlx/pull/4712
- Fix
mx.take's negative indices by @michalk8 in https://github.com/ml-explore/mlx/pull/4729 - Fix normal loc scale shape by @michalk8 in https://github.com/ml-explore/mlx/pull/4730
- Fix zero-copy numpy arrays dtype mismatch by @michalk8 in https://github.com/ml-explore/mlx/pull/4731
- Widen affine qmv_wide row tiles to 8 by @Ambisphaeric in https://github.com/ml-explore/mlx/pull/4728
- Fix/padding jvp vjp by @michalk8 in https://github.com/ml-explore/mlx/pull/4736
- Fix data race in distributed ring on pending send/recv lists by @Shakhtar-Sankur in https://github.com/ml-explore/mlx/pull/4737
- Use data_size for gather/scatter large-offset checks by @begcdn in https://github.com/ml-explore/mlx/pull/4724
- [CUDA] Fix gather_qmm for experts past 2^32 weight elements by @IamCooller in https://github.com/ml-explore/mlx/pull/4738
- Fix GPU pad for outputs larger than 2^31 elements by @tivris in https://github.com/ml-explore/mlx/pull/4744
- Adding sliding window attention by @jagrit06 in https://github.com/ml-explore/mlx/pull/4734
- Fix FFT read/write past buffer end in partial threadgroups by @kinetrix in https://github.com/ml-explore/mlx/pull/4740
- [CUDA] Avoid multi-root graphs on DGX/RTX spark by @dhiltgen in https://github.com/ml-explore/mlx/pull/4745
- Fix C++ op implementations missing stream arg by @Satchitananda in https://github.com/ml-explore/mlx/pull/4746
- Fix any/all for int8 and uint8 on Metal by @MarcosAsh in https://github.com/ml-explore/mlx/pull/4755
- Fix vmap of tri_inv ignoring the triangular flags by @mahimn01 in https://github.com/ml-explore/mlx/pull/4748
- [Metal] Add sdpa_split kernels for mid rows for speculative decoding by @dhiltgen in https://github.com/ml-explore/mlx/pull/4723
- Fix flipped bounds check in the Metal large-filter convolution loader by @ssmall256 in https://github.com/ml-explore/mlx/pull/4750
- Fix Metal grid truncation in softmax/logsumexp/rms_norm/layer_norm past 2^27 rows by @ArupKantiDas in https://github.com/ml-explore/mlx/pull/4717
- Keep
gandbetain float32 ingated_delta_updateby @jvmenen in https://github.com/ml-explore/mlx/pull/4760 - Fix Windows CUDA 13 DLL loading by @luciusacarr in https://github.com/ml-explore/mlx/pull/4706
- Cleanup metal quantized kernel instantiations by @zcbenz in https://github.com/ml-explore/mlx/pull/4741
- Simplify docs generation by ditching doxygen by @zcbenz in https://github.com/ml-explore/mlx/pull/4690
- Fix strided_scan reading/writing out-of-bounds by @zcbenz in https://github.com/ml-explore/mlx/pull/4430
- Add "config" module by @zcbenz in https://github.com/ml-explore/mlx/pull/4647
- Debug time graph verification by @zcbenz in https://github.com/ml-explore/mlx/pull/4711
- Fix fftn size one axis aliasing a temporary by @StockerMC in https://github.com/ml-explore/mlx/pull/4705
- Fix fast.cross_entropy VJP on non-contiguous Metal inputs by @StockerMC in https://github.com/ml-explore/mlx/pull/4702
- [CUDA] Expose compilation targets via cuda.get_arch_list by @dhiltgen in https://github.com/ml-explore/mlx/pull/4761
- Use pytest to run CPU tests in parallel by @zcbenz in https://github.com/ml-explore/mlx/pull/4774
- Fix GPU concatenate for outputs larger than 2^31 elements by @tivris in https://github.com/ml-explore/mlx/pull/4758
- Fix Metal and CUDA affine quantization for all-negative groups by @lgyStoic in https://github.com/ml-explore/mlx/pull/4775
- Fix FP8 NaN preservation in to_fp8 and E8M0 scale dequantization by @FaizPalwala in https://github.com/ml-explore/mlx/pull/4756
- Fix gguf tensor to f16 size overflow by @turingH in https://github.com/ml-explore/mlx/pull/4764
- Fix wrong results in left_shift/right_shift on overflow by @aaishwarymishra in https://github.com/ml-explore/mlx/pull/4694
- [Metal] Fix precision loss in addmm by @tetsuo in https://github.com/ml-explore/mlx/pull/4769
- Fix SliceUpdate vmap with unbatched update by @mahimn01 in https://github.com/ml-explore/mlx/pull/4770
- Add optional source IP binding for ring connections by @ronaldmannak in https://github.com/ml-explore/mlx/pull/4757
- Keep the existing file when save, save_safetensors or save_gguf fails by @aleroot in https://github.com/ml-explore/mlx/pull/4773
- Fix 4D per-channel gate indexing in Metal gated_delta_update by @arian262785-cell in https://github.com/ml-explore/mlx/pull/4791
- Fix complex power VJP conjugation by @devYRPauli in https://github.com/ml-explore/mlx/pull/4778
- use self-hosted macos runners by @madrob in https://github.com/ml-explore/mlx/pull/4795
- Build and test for macOS 27 by @zcbenz in https://github.com/ml-explore/mlx/pull/4786
- [jaccl] Detect dead RDMA links instead of crashing by @ipazarbasi in https://github.com/ml-explore/mlx/pull/4767
- Fix negative padding with input_dilation > 1 in conv_general by @MarcosAsh in https://github.com/ml-explore/mlx/pull/4688
- [Metal] Fix fill loop in
layer_normby @luciusacarr in https://github.com/ml-explore/mlx/pull/4772 - Launch fast.cross_entropy in slices past the Metal grid limit by @ArupKantiDas in https://github.com/ml-explore/mlx/pull/4776
- Cache generated source code and hash in custom kernels by @STRML in https://github.com/ml-explore/mlx/pull/4568
- Fix Metal expm1 argument reduction accuracy by @arcusbuilds in https://github.com/ml-explore/mlx/pull/4780
- Fix sharded-to-all bias and integer split positions on quantized layers by @ronaldmannak in https://github.com/ml-explore/mlx/pull/4715
- Fix custom_function vmap and jvp traversal with opaque bodies by @axiom-of-choice in https://github.com/ml-explore/mlx/pull/4612
- [Metal] Add staged fp_qmm_t_nax with splitk and affine_qmv_nax kernels by @XXXXRT666 in https://github.com/ml-explore/mlx/pull/4781
- Add freqs and partial_rotary_factor support to RoPE by @shadyuwugurl in https://github.com/ml-explore/mlx/pull/4732
- Check output size for 64-bit indexing in GPU SliceUpdate by @arian262785-cell in https://github.com/ml-explore/mlx/pull/4794
- Keep double precision in CPU exp, sin, cos, erf by @mycomputercrashsalot in https://github.com/ml-explore/mlx/pull/4789
- [CUDA] top left mask for sdpa backward by @nastya236 in https://github.com/ml-explore/mlx/pull/4820
- [CUDA] Fix
gather_mmwith sorted_indices=True by @luciusacarr in https://github.com/ml-explore/mlx/pull/4771 - Validate trace input ids match trace inputs in import_function by @turingH in https://github.com/ml-explore/mlx/pull/4790
- [Metal] Add affine qmv_mma for 3-16 rows by @ahuzmeza in https://github.com/ml-explore/mlx/pull/4787
- [CUDA] Sequential kernel for gated_delta_update by @zcbenz in https://github.com/ml-explore/mlx/pull/4783
- Respect MLX_ENABLE_TF32 in gated_delta_update by @zcbenz in https://github.com/ml-explore/mlx/pull/4792
- [Metal] Route qqmm without global scales like quantized_matmul by @XXXXRT666 in https://github.com/ml-explore/mlx/pull/4796
- docs: random.normal is not bit-exact across GPU architectures by @electron-rare in https://github.com/ml-explore/mlx/pull/4810
- Fix row offsets and partition stride in GPU sort by @ArupKantiDas in https://github.com/ml-explore/mlx/pull/4807
- docs: Fix keyword-only parameters in op signatures by @Redempt1onzzZZ in https://github.com/ml-explore/mlx/pull/4816
- [CPU] Fix accumulation precision in affine quantized matmul by @erwinzhang7 in https://github.com/ml-explore/mlx/pull/4803
- [CUDA] Change gradient layout if second argument is transposed by @nastya236 in https://github.com/ml-explore/mlx/pull/4822
- [CUDA] Pass MLX_CUDA_ARCH_LIST as a single quoted macro by @dhiltgen in https://github.com/ml-explore/mlx/pull/4839
- [CUDA] CUDA graph comment about hang with older driver version by @nastya236 in https://github.com/ml-explore/mlx/pull/4821
- Fix: Respect dtype for array values in mx.full by @altale in https://github.com/ml-explore/mlx/pull/4901
- MetalAllocator::malloc(0) leads to undefined behavior by @ipazarbasi in https://github.com/ml-explore/mlx/pull/4881
- Fix JIT compilation error caused by metal::remove_addrspace_t by @aleroot in https://github.com/ml-explore/mlx/pull/4833
- Fix missing streams in l2_norm and scatter VJP by @Augustas11 in https://github.com/ml-explore/mlx/pull/4818
- Fix missing API documentation and incorrect docstrings by @XXXXRT666 in https://github.com/ml-explore/mlx/pull/4813
- Fixed the build of the ring backend on FreeBSD by @stemann in https://github.com/ml-explore/mlx/pull/4846
- docs: Correct the axis argument name in expand_dims by @Redempt1onzzZZ in https://github.com/ml-explore/mlx/pull/4830
- Do not wire user provided buffers by @aleroot in https://github.com/ml-explore/mlx/pull/4883
- Fixed misaligned stores in
RandomBitson the CPU by @ipazarbasi in https://github.com/ml-explore/mlx/pull/4886 - [CUDA] Avoid releasing DXGI adapters during DLL teardown by @strayberry in https://github.com/ml-explore/mlx/pull/4867
- Fix IndexError caused by a compiled function returning stop_gradient by @katamyra in https://github.com/ml-explore/mlx/pull/4880
- Add bool to Metal sort kernel instantiations by @utsav1033 in https://github.com/ml-explore/mlx/pull/4861
- Add lock file for GitHub Actions by @madrob in https://github.com/ml-explore/mlx/pull/4801
- Fix flaky "make array from user buffer" test under heavy load by @ipazarbasi in https://github.com/ml-explore/mlx/pull/4918
- [CUDA] Looped row reductions across blocks by @pierreablin in https://github.com/ml-explore/mlx/pull/4916
- Fixed linking psapi with MinGW by @stemann in https://github.com/ml-explore/mlx/pull/4919
- Correct gradients and batching for DivMod by @mahimn01 in https://github.com/ml-explore/mlx/pull/4823
- docs: Add missing step default to arange signature by @lipefree in https://github.com/ml-explore/mlx/pull/4855
- Don't allocate inside
quantize_implby @michalk8 in https://github.com/ml-explore/mlx/pull/4930 - Fix float16 overflow in clip_grad_norm_sharded by @unaltolga in https://github.com/ml-explore/mlx/pull/4848
- Add validate_qqmm_mode by @michalk8 in https://github.com/ml-explore/mlx/pull/4931
- Make the scheduler's active task count atomic by @ipazarbasi in https://github.com/ml-explore/mlx/pull/4882
- [Metal] Add 2, 3, 5 and 6 bits to affine qmv_mma by @XXXXRT666 in https://github.com/ml-explore/mlx/pull/4860
- Fix conv weight gradient with empty batch by @OgShadoww in https://github.com/ml-explore/mlx/pull/4873
- Fixed BLA_VENDOR being ignored on Windows by @stemann in https://github.com/ml-explore/mlx/pull/4920
- Keep gelu_approx float16 gradients finite by @Lyxot in https://github.com/ml-explore/mlx/pull/4906
- [Metal] Use affine qmv_mma on M1 and M2 Ultra from 4 rows by @joshuaswarren in https://github.com/ml-explore/mlx/pull/4890
- Fixed the race on the Metal allocator's memory stats by @ipazarbasi in https://github.com/ml-explore/mlx/pull/4885
- Fixed cross-compiling the CPU preamble for Windows by @stemann in https://github.com/ml-explore/mlx/pull/4921
- fix empty output handling in many primitives by @nwh in https://github.com/ml-explore/mlx/pull/4929
- [Metal] Fix JIT template arguments for attention_nax_dsplit by @kainosnoema in https://github.com/ml-explore/mlx/pull/4903
- Fixed misaligned GGUF metadata access by @ipazarbasi in https://github.com/ml-explore/mlx/pull/4887
- Fix identical default random keys across threads by @Chr0mium24 in https://github.com/ml-explore/mlx/pull/4857
- Allow disabling Metal runtime compilation by @ipazarbasi in https://github.com/ml-explore/mlx/pull/4908
- Fixed finding MLX under a renamed library by @stemann in https://github.com/ml-explore/mlx/pull/4928
- Fix merged axes overflow in reduce op by @BhodiSea in https://github.com/ml-explore/mlx/pull/4888
- Use fused SDPA for causal head_dim 256 with 512 to 1023 query rows by @jvmenen in https://github.com/ml-explore/mlx/pull/4893
- [CPU] Fix accumulation precision in fp quantized matmul by @kadyrbekovhamit-cyber in https://github.com/ml-explore/mlx/pull/4879
- python: Add
__array_api_version__by @prady0t in https://github.com/ml-explore/mlx/pull/4937 - [CPU] Support float64 in to_fp8 and from_fp8 by @siddhantchaudhary036 in https://github.com/ml-explore/mlx/pull/4858
- [CUDA] faster window attention by @pierreablin in https://github.com/ml-explore/mlx/pull/4927
- docs: Fix optional metadata in save_gguf signature by @lipefree in https://github.com/ml-explore/mlx/pull/4942
- docs: keyword and positional arguments match runtime for
astype,roll,count_nonzeroandvecdotby @lipefree in https://github.com/ml-explore/mlx/pull/4944 - [Metal] Keep SDPA VJP scores in float32 for half precision inputs by @arhaamatiq in https://github.com/ml-explore/mlx/pull/4910
- Add
bitsattribute tofinfoandiinfoby @prady0t in https://github.com/ml-explore/mlx/pull/4945 - [CPU] exp has undefined behavior for inf, nan and large inputs by @ipazarbasi in https://github.com/ml-explore/mlx/pull/4932
- [CUDA] fix overflow issue in matmul with large output matrices by @pierreablin in https://github.com/ml-explore/mlx/pull/4938
- [CUDA] Add 128-row variant for qmm by @dhiltgen in https://github.com/ml-explore/mlx/pull/4851
- Added UBSan ignore list file by @ipazarbasi in https://github.com/ml-explore/mlx/pull/4948
- Enable ThreadSanitizer on macOS with a suppressions file by @ipazarbasi in https://github.com/ml-explore/mlx/pull/4949
- [Metal] Enable affine qmv_mma on M3 Ultra by @padwowen in https://github.com/ml-explore/mlx/pull/4827
- [CUDA] Faster and more memory efficient boolean masks in attention by @pierreablin in https://github.com/ml-explore/mlx/pull/4934
- Tune gemv_t tiles for long K and small N by @MarcosAsh in https://github.com/ml-explore/mlx/pull/4850
- Fix Metal command queue retention when a worker thread initializes MLX by @dcvz in https://github.com/ml-explore/mlx/pull/4936
- Fix contiguous flag after reshape and view by @MarcosAsh in https://github.com/ml-explore/mlx/pull/4915
- [CUDA] clear cuDNN handles and graph caches on clear_streams by @Brooooooklyn in https://github.com/ml-explore/mlx/pull/4892
- [CPU] Fix fp4 tie rounding by @eyupcanakman in https://github.com/ml-explore/mlx/pull/4845
- [Metal] Expose NAX kernel availability to Python by @m4zar in https://github.com/ml-explore/mlx/pull/4956
- Fix argmin/argmax on 0-d arrays with keepdims=True by @ankitgala007 in https://github.com/ml-explore/mlx/pull/4958
- Fix checkpoint backward scheduling for chunked recurrences by @adimalkar in https://github.com/ml-explore/mlx/pull/4907
- [CPU] Support global scale in qqmm/quantize/dequantize by @Yunt1 in https://github.com/ml-explore/mlx/pull/4923
- [CPU] Fix strided half-precision GEMM dimensions in BNNS and simd_gemm by @Yunt1 in https://github.com/ml-explore/mlx/pull/4947
- Fix NaN propagation in CPU cummax and cummin for float16 and bfloat16 by @luciusacarr in https://github.com/ml-explore/mlx/pull/4912
- [CUDA] Synchronize LayerNorm reduction scratch reuse by @strayberry in https://github.com/ml-explore/mlx/pull/4866
- Fix macOS 14 build by @zcbenz in https://github.com/ml-explore/mlx/pull/4960
New Contributors
- @yanghaojin made their first contribution in https://github.com/ml-explore/mlx/pull/4698
- @jmmarkiewicz made their first contribution in https://github.com/ml-explore/mlx/pull/4719
- @cerisier made their first contribution in https://github.com/ml-explore/mlx/pull/4714
- @Ambisphaeric made their first contribution in https://github.com/ml-explore/mlx/pull/4728
- @Shakhtar-Sankur made their first contribution in https://github.com/ml-explore/mlx/pull/4737
- @begcdn made their first contribution in https://github.com/ml-explore/mlx/pull/4724
- @IamCooller made their first contribution in https://github.com/ml-explore/mlx/pull/4738
- @tivris made their first contribution in https://github.com/ml-explore/mlx/pull/4744
- @kinetrix made their first contribution in https://github.com/ml-explore/mlx/pull/4740
- @Satchitananda made their first contribution in https://github.com/ml-explore/mlx/pull/4746
- @mahimn01 made their first contribution in https://github.com/ml-explore/mlx/pull/4748
- @ArupKantiDas made their first contribution in https://github.com/ml-explore/mlx/pull/4717
- @jvmenen made their first contribution in https://github.com/ml-explore/mlx/pull/4760
- @luciusacarr made their first contribution in https://github.com/ml-explore/mlx/pull/4706
- @StockerMC made their first contribution in https://github.com/ml-explore/mlx/pull/4705
- @lgyStoic made their first contribution in https://github.com/ml-explore/mlx/pull/4775
- @FaizPalwala made their first contribution in https://github.com/ml-explore/mlx/pull/4756
- @turingH made their first contribution in https://github.com/ml-explore/mlx/pull/4764
- @tetsuo made their first contribution in https://github.com/ml-explore/mlx/pull/4769
- @arian262785-cell made their first contribution in https://github.com/ml-explore/mlx/pull/4791
- @ipazarbasi made their first contribution in https://github.com/ml-explore/mlx/pull/4767
- @STRML made their first contribution in https://github.com/ml-explore/mlx/pull/4568
- @arcusbuilds made their first contribution in https://github.com/ml-explore/mlx/pull/4780
- @shadyuwugurl made their first contribution in https://github.com/ml-explore/mlx/pull/4732
- @mycomputercrashsalot made their first contribution in https://github.com/ml-explore/mlx/pull/4789
- @ahuzmeza made their first contribution in https://github.com/ml-explore/mlx/pull/4787
- @electron-rare made their first contribution in https://github.com/ml-explore/mlx/pull/4810
- @altale made their first contribution in https://github.com/ml-explore/mlx/pull/4901
- @Augustas11 made their first contribution in https://github.com/ml-explore/mlx/pull/4818
- @katamyra made their first contribution in https://github.com/ml-explore/mlx/pull/4880
- @utsav1033 made their first contribution in https://github.com/ml-explore/mlx/pull/4861
- @pierreablin made their first contribution in https://github.com/ml-explore/mlx/pull/4916
- @lipefree made their first contribution in https://github.com/ml-explore/mlx/pull/4855
- @unaltolga made their first contribution in https://github.com/ml-explore/mlx/pull/4848
- @OgShadoww made their first contribution in https://github.com/ml-explore/mlx/pull/4873
- @joshuaswarren made their first contribution in https://github.com/ml-explore/mlx/pull/4890
- @nwh made their first contribution in https://github.com/ml-explore/mlx/pull/4929
- @kainosnoema made their first contribution in https://github.com/ml-explore/mlx/pull/4903
- @Chr0mium24 made their first contribution in https://github.com/ml-explore/mlx/pull/4857
- @BhodiSea made their first contribution in https://github.com/ml-explore/mlx/pull/4888
- @kadyrbekovhamit-cyber made their first contribution in https://github.com/ml-explore/mlx/pull/4879
- @siddhantchaudhary036 made their first contribution in https://github.com/ml-explore/mlx/pull/4858
- @arhaamatiq made their first contribution in https://github.com/ml-explore/mlx/pull/4910
- @padwowen made their first contribution in https://github.com/ml-explore/mlx/pull/4827
- @dcvz made their first contribution in https://github.com/ml-explore/mlx/pull/4936
- @m4zar made their first contribution in https://github.com/ml-explore/mlx/pull/4956
- @ankitgala007 made their first contribution in https://github.com/ml-explore/mlx/pull/4958
- @adimalkar made their first contribution in https://github.com/ml-explore/mlx/pull/4907
- @Yunt1 made their first contribution in https://github.com/ml-explore/mlx/pull/4923
Full Changelog: https://github.com/ml-explore/mlx/compare/v0.32.4...v0.32.5
Source: GitHub release v0.32.5