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