Manuel Villanueva 
							
						 
					 
					
						
						
							
						
						9cbb1b0148 
					 
					
						
						
							
							Modified sort behavior when running CPU or Metal to match NumPy/JAX ( #2667 )  
						
						 
						
						... 
						
						
						
						* Modified sort behavior when running CPU or Metal to match NumPy/JAX sorting behavior.
* Modified sort behavior when running CPU or Metal to match NumPy/JAX
* nits
---------
Co-authored-by: Awni Hannun <awni@apple.com > 
						
						
					 
					
						2025-10-13 14:36:45 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						630350ad3e 
					 
					
						
						
							
							Precise sigmoid ( #2659 )  
						
						 
						
						... 
						
						
						
						* bump patch
* Sigmoid matches PyTorch and is more precise on tails 
						
						
					 
					
						2025-10-10 10:05:23 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						50cc09887f 
					 
					
						
						
							
							expose depends ( #2606 )  
						
						 
						
						
						
						
					 
					
						2025-09-18 10:06:15 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						7ef8a6f2d5 
					 
					
						
						
							
							[CUDA] fix sort ( #2550 )  
						
						 
						
						... 
						
						
						
						* [CUDA] fix sort
* fix test 
						
						
					 
					
						2025-08-27 19:48:43 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						e843c4d8d5 
					 
					
						
						
							
							fix power ( #2523 )  
						
						 
						
						
						
						
					 
					
						2025-08-21 06:46:01 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						ef631d63af 
					 
					
						
						
							
							faster rms norm ( #2433 )  
						
						 
						
						
						
						
					 
					
						2025-07-29 13:12:00 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						49114f28ab 
					 
					
						
						
							
							fix flaky test ( #2371 )  
						
						 
						
						
						
						
					 
					
						2025-07-14 17:16:18 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						c552ff2451 
					 
					
						
						
							
							[CUDA] Fix back-end bugs and enable corresponding tests ( #2296 )  
						
						 
						
						... 
						
						
						
						* Fix some cuda back-end bugs and enable corresponding tests
* more fixes
* enable more tests
* format 
						
						
					 
					
						2025-06-16 08:45:40 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						4fda5fbdf9 
					 
					
						
						
							
							add python testing for cuda with ability to skip list of tests ( #2295 )  
						
						 
						
						
						
						
					 
					
						2025-06-15 10:56:48 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						8402a2acf4 
					 
					
						
						
							
							Fix complex power and print ( #2286 )  
						
						 
						
						... 
						
						
						
						* fix complex power and print
* fix complex matmul shape 
						
						
					 
					
						2025-06-13 11:13:00 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Angelos Katharopoulos 
							
						 
					 
					
						
						
							
						
						3aa9cf3f9e 
					 
					
						
						
							
							Fix put_along_axis for empty arrays ( #2181 )  
						
						 
						
						
						
						
					 
					
						2025-05-13 14:27:53 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						8f3d208dce 
					 
					
						
						
							
							Close a couple edge case bugs: hadamard and addmm on empty inputs ( #2177 )  
						
						 
						
						... 
						
						
						
						* handle hadamard and addmm on empty inputs
* fix 
						
						
					 
					
						2025-05-12 10:48:57 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Angelos Katharopoulos 
							
						 
					 
					
						
						
							
						
						481349495b 
					 
					
						
						
							
							GPU Hadamard for large N ( #1879 )  
						
						 
						
						
						
						
					 
					
						2025-05-01 17:19:17 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Aashiq Dheeraj 
							
						 
					 
					
						
						
							
						
						bb6565ef14 
					 
					
						
						
							
							add fftshift and ifftshift fft helpers ( #2135 )  
						
						 
						
						... 
						
						
						
						* add fftshift and ifftshift fft helpers
* address comments
* axes have to be iterable
* fix fp error in roll + add test
---------
Co-authored-by: Aashiq Dheeraj <aashiq@aashiq-mbp-m4.local > 
						
						
					 
					
						2025-04-29 22:13:45 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Hyunsung Lee 
							
						 
					 
					
						
						
							
						
						3836445241 
					 
					
						
						
							
							Add broadcast_shapes in python API ( #2091 )  
						
						 
						
						
						
						
					 
					
						2025-04-22 18:57:39 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Yury Popov 
							
						 
					 
					
						
						
							
						
						1d2c9d6a07 
					 
					
						
						
							
							Complex scan ( #2094 )  
						
						 
						
						
						
						
					 
					
						2025-04-22 18:56:28 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						fdadc4f22c 
					 
					
						
						
							
							Add more complex unary ops ( #2101 )  
						
						 
						
						
						
						
					 
					
						2025-04-21 13:04:54 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Yury Popov 
							
						 
					 
					
						
						
							
						
						e9e268336b 
					 
					
						
						
							
							LogCumSumExp ( #2069 )  
						
						 
						
						
						
						
					 
					
						2025-04-13 01:27:29 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						de5f38fd48 
					 
					
						
						
							
							Custom logsumexp ( #2028 )  
						
						 
						
						... 
						
						
						
						* initial custom logsumexp
* more tests
* comments + fix 
						
						
					 
					
						2025-03-31 07:36:55 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						28f39e9038 
					 
					
						
						
							
							Log for complex numbers in Metal ( #2025 )  
						
						 
						
						... 
						
						
						
						* Log for complex numbers in Metal
* fix log2 
						
						
					 
					
						2025-03-30 17:04:38 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						2a980a76ce 
					 
					
						
						
							
							Add stats and limit to common allocator and enable tests ( #1988 )  
						
						 
						
						... 
						
						
						
						* add stats to common allocator and enable tests
* linux memory and default
* fix 
						
						
					 
					
						2025-03-21 12:28:36 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						4e1994e9d7 
					 
					
						
						
							
							move memory APIs into top level mlx.core ( #1982 )  
						
						 
						
						
						
						
					 
					
						2025-03-21 07:25:12 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						6bcd6bcf70 
					 
					
						
						
							
							fix donation in scan ( #1917 )  
						
						 
						
						
						
						
					 
					
						2025-03-03 11:30:59 -08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						4e7cd31d12 
					 
					
						
						
							
							Fix slice data size ( #1913 )  
						
						 
						
						... 
						
						
						
						* fix slice data size
* add test 
						
						
					 
					
						2025-03-02 21:50:42 -08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						2d0f384b6f 
					 
					
						
						
							
							fix simd erf_inv ( #1896 )  
						
						 
						
						
						
						
					 
					
						2025-02-24 13:57:47 -08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Angelos Katharopoulos 
							
						 
					 
					
						
						
							
						
						1a2cb72030 
					 
					
						
						
							
							Ensure linspace always contains start and stop ( #1883 )  
						
						 
						
						
						
						
					 
					
						2025-02-19 13:53:20 -08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Alex Barron 
							
						 
					 
					
						
						
							
						
						5cd97f7ffe 
					 
					
						
						
							
							Bitwise Inverse ( #1862 )  
						
						 
						
						... 
						
						
						
						* add bitwise inverse
* add vmap + fix nojit
* inverse -> invert
* add to compile + remove unused 
						
						
					 
					
						2025-02-13 08:44:14 -08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						af1b725fda 
					 
					
						
						
							
							Fix a couple of slicing bugs ( #1827 )  
						
						 
						
						... 
						
						
						
						* fix a few bugs
* fix conv grad
* speedup test
* comment 
						
						
					 
					
						2025-02-05 19:50:08 -08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						9174606d4c 
					 
					
						
						
							
							fix sort ( #1835 )  
						
						 
						
						
						
						
					 
					
						2025-02-05 17:16:27 -08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						b7c9f1d38f 
					 
					
						
						
							
							scatter axis + gather axis primitives ( #1813 )  
						
						 
						
						... 
						
						
						
						* scatter axis + gather axis primitives
* add transforms
* comment 
						
						
					 
					
						2025-01-31 20:48:08 -08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						4758c8baa1 
					 
					
						
						
							
							Start to cleanup/unify accelerate and common back-ends (Part 1/N) ( #1777 )  
						
						 
						
						... 
						
						
						
						* start to cleanup/unify accelerate and common back-ends
* more progress
* simplify
* add half type and allow infs in simd exp
* unify softmax + quantized, more dispatches to simd quantized mm
* add sin/cos, use simd in vector-scalar ops
* faster CPU vectorize quant
* faster erf/erfinv 
						
						
					 
					
						2025-01-29 14:34:49 -08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						1ccaf80575 
					 
					
						
						
							
							Dynamic broadcasting for shapeless compile/export ( #1722 )  
						
						 
						
						... 
						
						
						
						* working towards dynamic broadcast
* shapeless broadcast
* fix build + nits
* use broadcast arrays in quantize matmul
* some cleanup / consistency
* mend
* some comments
* add vjp, jvp for broadcast axes 
						
						
					 
					
						2025-01-09 11:04:24 -08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						516ded618b 
					 
					
						
						
							
							Dynamic slicing ( #1741 )  
						
						 
						
						... 
						
						
						
						* dynamic slice and slice update
* python bindings + tests + fix set item
* fix compile issue
* comment
* fix jit 
						
						
					 
					
						2025-01-07 14:02:16 -08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						259025100e 
					 
					
						
						
							
							Fix nd ternary on GPU ( #1746 )  
						
						 
						
						
						
						
					 
					
						2025-01-03 11:52:17 -08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Venkata Naga Aditya Datta Chivukula 
							
						 
					 
					
						
						
							
						
						491fa95b1f 
					 
					
						
						
							
							Added Kronecker Product ( #1728 )  
						
						 
						
						
						
						
					 
					
						2025-01-02 16:00:34 -08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						0308e9af71 
					 
					
						
						
							
							Allow offset to be an mx.array for mx.fast.rope ( #1724 )  
						
						 
						
						... 
						
						
						
						* allow offset for rope
* comment 
						
						
					 
					
						2024-12-19 15:51:44 -08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						9111999af3 
					 
					
						
						
							
							Fix small sort with metal validation ( #1695 )  
						
						 
						
						
						
						
					 
					
						2024-12-12 09:21:45 -08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						6bd28d246e 
					 
					
						
						
							
							Allow no copy negative strides in as_strided and slice ( #1688 )  
						
						 
						
						... 
						
						
						
						* allow no copy negative strides in as_strided and slice
* fix jit
* fix jit 
						
						
					 
					
						2024-12-12 08:59:45 -08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						29a620cab2 
					 
					
						
						
							
							No reshapes in quantized embedding ( #1682 )  
						
						 
						
						... 
						
						
						
						* no reshapes in quantized embedding
* fix inadvertant cast
* add tol 
						
						
					 
					
						2024-12-09 18:57:38 -08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						61d787726a 
					 
					
						
						
							
							Fix view scalar bug segfault ( #1603 )  
						
						 
						
						... 
						
						
						
						* fix view scalar bug
* fix view scalar bug
* one more fix 
						
						
					 
					
						2024-11-19 10:54:05 -08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						4f72c66911 
					 
					
						
						
							
							improvements to scatter / gather ( #1541 )  
						
						 
						
						
						
						
					 
					
						2024-10-30 19:30:54 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Angelos Katharopoulos 
							
						 
					 
					
						
						
							
						
						c9b41d460f 
					 
					
						
						
							
							Working 64-bit scans ( #1506 )  
						
						 
						
						
						
						
					 
					
						2024-10-24 11:05:46 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						3f86399922 
					 
					
						
						
							
							Real and Imag ( #1490 )  
						
						 
						
						... 
						
						
						
						* real and imag
* fix
* fix 
						
						
					 
					
						2024-10-15 16:23:15 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						1fa0d20a30 
					 
					
						
						
							
							consistently handle all -inf in softmax ( #1470 )  
						
						 
						
						
						
						
					 
					
						2024-10-08 09:54:02 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Angelos Katharopoulos 
							
						 
					 
					
						
						
							
						
						9b12093739 
					 
					
						
						
							
							Add the roll op ( #1455 )  
						
						 
						
						
						
						
					 
					
						2024-10-07 17:21:42 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						1bdc038bf9 
					 
					
						
						
							
							fix argpartition + faster {arg} sorts / partitions ( #1453 )  
						
						 
						
						
						
						
					 
					
						2024-10-03 14:21:25 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						718aea3f1d 
					 
					
						
						
							
							allow take to work with integer index ( #1440 )  
						
						 
						
						
						
						
					 
					
						2024-09-26 15:58:03 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						195b429d99 
					 
					
						
						
							
							Put along axis + fixe for partition grad ( #1430 )  
						
						 
						
						... 
						
						
						
						* put along axis, fixes for partition grad
* zeros for arg reduce 
						
						
					 
					
						2024-09-23 10:03:38 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						d6492b0163 
					 
					
						
						
							
							fix clip ( #1415 )  
						
						 
						
						
						
						
					 
					
						2024-09-14 16:09:09 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						98b6ce3460 
					 
					
						
						
							
							Refactor reductions and fix scatter atomics for large sizes ( #1300 )  
						
						 
						
						... 
						
						
						
						Co-authored-by: Angelos Katharopoulos <a_katharopoulos@apple.com > 
						
						
					 
					
						2024-08-22 16:03:31 -07:00