Diogo 
							
						 
					 
					
						
						
							
						
						e1bdf6a8d9 
					 
					
						
						
							
							discover doctests in cmake ( #703 )  
						
						
						
						
					 
					
						2024-02-19 07:03:56 -08:00 
						 
				 
			
				
					
						
							
							
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						1a4f4c5ea6 
					 
					
						
						
							
							Refactor CPU compile preamble ( #708 )  
						
						... 
						
						
						
						* refactor cpu preamble
* fix include order
* fix some issues'
* fixes for linux
* try to fix includes
* add back warning suppression
* more linux fixes 
						
						
					 
					
						2024-02-19 06:12:53 -08:00 
						 
				 
			
				
					
						
							
							
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						dc937b8ed3 
					 
					
						
						
							
							CPU compile ( #691 )  
						
						... 
						
						
						
						* build and load shared object for cpu compile
* nits
* cpu compile tests pass
* cpu compile tests pass
* fix preamble for g++
* donation
* fix gpu buffer donation
* reuse prebuilt libraries
* faster contiguity conditoins
* fix test
* rid compiler warning
* fast erf
* Fix float16 for compile and add more types to cpu compile
* Remove a forgotten comment
* use cached libs
* nits
---------
Co-authored-by: Angelos Katharopoulos <a_katharopoulos@apple.com > 
						
						
					 
					
						2024-02-17 06:54:32 -08:00 
						 
				 
			
				
					
						
							
							
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						1eb04aa23f 
					 
					
						
						
							
							Fix empty array construction in cpp ( #684 )  
						
						
						
						
					 
					
						2024-02-13 23:34:17 -08:00 
						 
				 
			
				
					
						
							
							
								Diogo 
							
						 
					 
					
						
						
							
						
						b57bd0488d 
					 
					
						
						
							
							Metadata support for safetensors ( #639 )  
						
						... 
						
						
						
						* metadata support for safetensors
* aliases making it alittle more readable
* addressing comments
* python binding tests 
						
						
					 
					
						2024-02-08 19:33:15 -08:00 
						 
				 
			
				
					
						
							
							
								Angelos Katharopoulos 
							
						 
					 
					
						
						
							
						
						28eac18571 
					 
					
						
						
							
							Kernel generation ( #614 )  
						
						... 
						
						
						
						Generate reusable element-wise kernels given a computation graph. 
						
						
					 
					
						2024-02-07 13:15:59 -08:00 
						 
				 
			
				
					
						
							
							
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						146bd69470 
					 
					
						
						
							
							Skip compile when transforming ( #635 )  
						
						... 
						
						
						
						* skip compile when transforming
* simplify message 
						
						
					 
					
						2024-02-05 21:28:37 -08:00 
						 
				 
			
				
					
						
							
							
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						d75ae52ecd 
					 
					
						
						
							
							Compile primitive ( #571 )  
						
						... 
						
						
						
						* Compiled primitive with basic binary, unary graph-level fusion 
						
						
					 
					
						2024-02-05 06:51:22 -08:00 
						 
				 
			
				
					
						
							
							
								Angelos Katharopoulos 
							
						 
					 
					
						
						
							
						
						0de5988f92 
					 
					
						
						
							
							Custom VJP and checkpointing ( #541 )  
						
						... 
						
						
						
						* Implement custom_vjp and checkpointing
* Add a dependency management primitive
* Change the eval order to deep branches first
* Add graph depth tracking to the array 
						
						
					 
					
						2024-01-30 16:04:45 -08:00 
						 
				 
			
				
					
						
							
							
								Jacket 
							
						 
					 
					
						
						
							
						
						3f7aba8498 
					 
					
						
						
							
							Implement diagonal operator ( #562 )  
						
						... 
						
						
						
						* Implement diagonal operator
This implements mx.diagonal in operator level, inspired by
@ManishAradwad.
* added `mx.diag` with tests
* corrected few things
* nits in bindings
* updates to diag
---------
Co-authored-by: ManishAradwad <manisharadwad@gmail.com >
Co-authored-by: Awni Hannun <awni@apple.com > 
						
						
					 
					
						2024-01-30 09:45:48 -08:00 
						 
				 
			
				
					
						
							
							
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						3c2f192345 
					 
					
						
						
							
							Propagate nans in binary ops ( #579 )  
						
						... 
						
						
						
						* propagate nans in binary ops
* handle empty matmul
* cpu minimum/maximum propagate nan
* benchmark maximum
* add min as well
* throw on negative indices with full
* verbose on linux
* fix matmul for zero K 
						
						
					 
					
						2024-01-29 11:19:38 -08:00 
						 
				 
			
				
					
						
							
							
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						8fa6b322b9 
					 
					
						
						
							
							Compile front-end  ( #476 )  
						
						... 
						
						
						
						* fix tests for linux
* make a move on compile
* basic compile scaffold works
* compile binding
* clean
* fix
* fix grad, more tests
* basic python tests
* fix segfault on python exit
* compile works with python closures
* fix test
* fix python globals bug, and erase
* simplify
* more cpp tests
* bug fix with move function and compile at exit
* simplify inputs also
* enable and disable compiler
* remove simplify
* simplify tests use compile now
* fix multi-output with compile
* clear output tree from cache when function goes out of scope
* ../python/src/transforms.cpp
* remove closure capture
* comments 
						
						
					 
					
						2024-01-26 13:45:30 -08:00 
						 
				 
			
				
					
						
							
							
								taher 
							
						 
					 
					
						
						
							
						
						077c1ee64a 
					 
					
						
						
							
							QR factorization ( #310 )  
						
						... 
						
						
						
						* add qr factorization
---------
Co-authored-by: Awni Hannun <awni@apple.com > 
						
						
					 
					
						2024-01-26 09:27:31 -08:00 
						 
				 
			
				
					
						
							
							
								Rifur13 
							
						 
					 
					
						
						
							
						
						2463496471 
					 
					
						
						
							
							[Fix] mx.allclose bug with infinite values ( #539 )  
						
						... 
						
						
						
						* Added isclose op and fixed comparison with inf values
* Added 'equal_nan' to match numpy
* format
* Add test
* Update python/src/ops.cpp
Co-authored-by: Awni Hannun <awni.hannun@gmail.com >
* Update python/src/ops.cpp
Co-authored-by: Awni Hannun <awni.hannun@gmail.com >
* Addressed CR comments
* Update python/src/ops.cpp
Co-authored-by: Awni Hannun <awni.hannun@gmail.com >
* nits
---------
Co-authored-by: Awni Hannun <awni.hannun@gmail.com >
Co-authored-by: Awni Hannun <awni@apple.com > 
						
						
					 
					
						2024-01-25 20:47:06 -08:00 
						 
				 
			
				
					
						
							
							
								Juarez Bochi 
							
						 
					 
					
						
						
							
						
						4fe2fa2a64 
					 
					
						
						
							
							GGUF: Avoid dequantization when format is compatible  ( #426 )  
						
						... 
						
						
						
						* GGUF: Don't dequantize q4_1
* Fix weight order. First in low bits
* Add unpacking for q4_0
* Don't dequantize q8_0
* rebase quants and split file
* don't quantize every weight
* reapply patch
* error handling
---------
Co-authored-by: Awni Hannun <awni@apple.com > 
						
						
					 
					
						2024-01-23 15:43:57 -08:00 
						 
				 
			
				
					
						
							
							
								Juarez Bochi 
							
						 
					 
					
						
						
							
						
						ddf50113c5 
					 
					
						
						
							
							GGUF: Load and save metadata ( #446 )  
						
						... 
						
						
						
						* gguf metadata
---------
Co-authored-by: Awni Hannun <awni@apple.com > 
						
						
					 
					
						2024-01-19 14:06:05 -08:00 
						 
				 
			
				
					
						
							
							
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						3d99a8d31d 
					 
					
						
						
							
							Fix format / build ( #489 )  
						
						
						
						
					 
					
						2024-01-18 10:01:59 -08:00 
						 
				 
			
				
					
						
							
							
								Ethan 
							
						 
					 
					
						
						
							
						
						a749a91c75 
					 
					
						
						
							
							Support disable metal buffer cache to prevent performance degradation caused by large memory caching ( #390 )  
						
						... 
						
						
						
						* support disable metal buffer cache, due to large unused memory buffered when llm generated long context tokens
* Run format and add "cache_enabled" feature tests 
						
						
					 
					
						2024-01-18 08:33:34 -08:00 
						 
				 
			
				
					
						
							
							
								Angelos Katharopoulos 
							
						 
					 
					
						
						
							
						
						90c234b7ac 
					 
					
						
						
							
							Fix round to round half-cases to even ( #482 )  
						
						
						
						
					 
					
						2024-01-17 15:27:23 -08:00 
						 
				 
			
				
					
						
							
							
								Angelos Katharopoulos 
							
						 
					 
					
						
						
							
						
						d8fabaa12b 
					 
					
						
						
							
							Split multi output ( #461 )  
						
						... 
						
						
						
						* Multi-output split primitive
* Add the multi-output split to the ArrayIterator
* Add some grad tests for split 
						
						
					 
					
						2024-01-16 13:33:55 -08:00 
						 
				 
			
				
					
						
							
							
								Yashraj Singh 
							
						 
					 
					
						
						
							
						
						e72458a3fa 
					 
					
						
						
							
							implemented isposinf and isneginf in one PR ( #470 )  
						
						... 
						
						
						
						* ran precommit
* updated docs 
						
						
					 
					
						2024-01-16 06:48:07 -08:00 
						 
				 
			
				
					
						
							
							
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						a2ffea683a 
					 
					
						
						
							
							Fix eye for larger matrices ( #463 )  
						
						... 
						
						
						
						* fix eye
* fix scatter for <32bit (non native atomic) types
* fix int overflow 
						
						
					 
					
						2024-01-16 00:51:24 -08:00 
						 
				 
			
				
					
						
							
							
								Angelos Katharopoulos 
							
						 
					 
					
						
						
							
						
						c15fe3e61b 
					 
					
						
						
							
							Allow arbitrary first dimension in quantization kernels. ( #458 )  
						
						... 
						
						
						
						* Allow arbitrary first dim on qmm_t and qmv
* Allow arbitrary first dim on qmm and qvm
* Specialized aligned vs unaligned case
* Add more checks for valid quantizations 
						
						
					 
					
						2024-01-16 00:46:21 -08:00 
						 
				 
			
				
					
						
							
							
								Matthew Ernst 
							
						 
					 
					
						
						
							
						
						92a2fdd577 
					 
					
						
						
							
							Adds isinf ( #445 )  
						
						... 
						
						
						
						* adds isinf
Signed-off-by: matthewfernst <matthew.f.ernst@gmail.com >
* use stream + nits
* typo
---------
Signed-off-by: matthewfernst <matthew.f.ernst@gmail.com >
Co-authored-by: Awni Hannun <awni@apple.com > 
						
						
					 
					
						2024-01-15 19:50:44 -08:00 
						 
				 
			
				
					
						
							
							
								Diogo 
							
						 
					 
					
						
						
							
						
						2e29d0815b 
					 
					
						
						
							
							Add tile op ( #438 )  
						
						
						
						
					 
					
						2024-01-12 23:03:16 -08:00 
						 
				 
			
				
					
						
							
							
								Ayush Shridhar 
							
						 
					 
					
						
						
							
						
						1416e7b664 
					 
					
						
						
							
							Add isnan ( #423 )  
						
						
						
						
					 
					
						2024-01-12 11:16:48 -08:00 
						 
				 
			
				
					
						
							
							
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						c9934fe8a4 
					 
					
						
						
							
							Metal validation ( #432 )  
						
						... 
						
						
						
						* tests clear metal validation
* add cpp test with metal validation to circleci
* nit 
						
						
					 
					
						2024-01-11 11:57:24 -08:00 
						 
				 
			
				
					
						
							
							
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						3b4f066dac 
					 
					
						
						
							
							Correct types for vjp + tests ( #418 )  
						
						... 
						
						
						
						* correct types for vjp + tests
* fix build + comment 
						
						
					 
					
						2024-01-10 13:32:37 -08:00 
						 
				 
			
				
					
						
							
							
								Juarez Bochi 
							
						 
					 
					
						
						
							
						
						b7f905787e 
					 
					
						
						
							
							GGUF support ( #350 )  
						
						... 
						
						
						
						* Initial GGUF support for tensor fields.
---------
Co-authored-by: Awni Hannun <awni@apple.com > 
						
						
					 
					
						2024-01-10 13:22:48 -08:00 
						 
				 
			
				
					
						
							
							
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						f099ebe535 
					 
					
						
						
							
							Multi output primitives ( #330 )  
						
						... 
						
						
						
						* Multi-output primitives
---------
Co-authored-by: Angelos Katharopoulos <a_katharopoulos@apple.com > 
						
						
					 
					
						2024-01-08 16:39:08 -08:00 
						 
				 
			
				
					
						
							
							
								Jagrit Digani 
							
						 
					 
					
						
						
							
						
						432ee5650b 
					 
					
						
						
							
							Update cpp tests with allclose and doctest::Approx for numerical tolerance ( #401 )  
						
						
						
						
					 
					
						2024-01-08 09:35:05 -08:00 
						 
				 
			
				
					
						
							
							
								Nripesh Niketan 
							
						 
					 
					
						
						
							
						
						73321b8097 
					 
					
						
						
							
							feat: add logicalAnd and logicalOR ( #386 )  
						
						... 
						
						
						
						* feat: add logicalAnd and logicalOR
* run pre-commit
* Refactor logical_and and logical_or functions
* Add acknowledgement
* Add logical AND and logical OR operators
* Refactor logical_and and logical_or functions
* Add support for logical operators on bool arrays
* Update mlx/ops.cpp
Co-authored-by: Awni Hannun <awni.hannun@gmail.com >
* Update mlx/ops.cpp
Co-authored-by: Awni Hannun <awni.hannun@gmail.com >
* Add logical AND and OR operators for arrays and scalars
* Refactor vjp and jvp methods in primitives.cpp
* Add overloaded operators for logical AND and OR
* format
---------
Co-authored-by: Awni Hannun <awni.hannun@gmail.com >
Co-authored-by: Awni Hannun <awni@apple.com > 
						
						
					 
					
						2024-01-08 07:00:05 -08:00 
						 
				 
			
				
					
						
							
							
								Angelos Katharopoulos 
							
						 
					 
					
						
						
							
						
						a611b0bc82 
					 
					
						
						
							
							Removes the retain_graph flag ( #385 )  
						
						... 
						
						
						
						* Adds global tracing flag
* Removes retain_graph in favor of is_tracer 
						
						
					 
					
						2024-01-07 15:16:51 -08:00 
						 
				 
			
				
					
						
							
							
								Diogo 
							
						 
					 
					
						
						
							
						
						449b43762e 
					 
					
						
						
							
							Add inner / outer op ( #348 )  
						
						... 
						
						
						
						* inner / outer impl
* python tests
* ops list and ack
* updated descriptions
* use test helper
* removed dtype check and flatten outer to 1-D
* updated docs
* just use the reshape to flatten 
						
						
					 
					
						2024-01-07 09:01:09 -08:00 
						 
				 
			
				
					
						
							
							
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						c6d2878c1a 
					 
					
						
						
							
							safely divide for 0 size inputs ( #388 )  
						
						
						
						
					 
					
						2024-01-07 00:19:54 -08:00 
						 
				 
			
				
					
						
							
							
								Daniel Strobusch 
							
						 
					 
					
						
						
							
						
						1331fa19f6 
					 
					
						
						
							
							Make array conform to the Python Buffer Protocol ( #323 )  
						
						
						
						
					 
					
						2024-01-05 15:58:33 -08:00 
						 
				 
			
				
					
						
							
							
								Diogo 
							
						 
					 
					
						
						
							
						
						0782a4573a 
					 
					
						
						
							
							Add Tensordot op ( #344 )  
						
						
						
						
					 
					
						2024-01-02 17:15:00 -08:00 
						 
				 
			
				
					
						
							
							
								Josh Soref 
							
						 
					 
					
						
						
							
						
						44c1ce5e6a 
					 
					
						
						
							
							Spelling ( #342 )  
						
						... 
						
						
						
						* spelling: accumulates
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: across
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: additional
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: against
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: among
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: array
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: at least
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: available
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: axes
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: basically
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: bfloat
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: bounds
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: broadcast
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: buffer
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: class
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: coefficients
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: collision
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: combinations
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: committing
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: computation
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: consider
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: constructing
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: conversions
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: correctly
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: corresponding
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: declaration
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: default
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: dependency
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: destination
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: destructor
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: dimensions
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: divided
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: element-wise
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: elements
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: endianness
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: equivalent
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: explicitly
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: github
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: indices
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: irregularly
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: memory
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: metallib
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: negative
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: notable
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: optional
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: otherwise
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: overridden
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: partially
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: partition
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: perform
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: perturbations
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: positively
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: primitive
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: repeat
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: repeats
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: respect
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: respectively
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: result
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: rounding
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: separate
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: skipping
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: structure
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: the
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: transpose
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: unnecessary
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: unneeded
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
* spelling: unsupported
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
---------
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com > 
						
						
					 
					
						2024-01-01 21:08:17 -08:00 
						 
				 
			
				
					
						
							
							
								Bahaa 
							
						 
					 
					
						
						
							
						
						ff2b58e299 
					 
					
						
						
							
							Add support for repeat ( #278 )  
						
						... 
						
						
						
						* add repeat function
* fix styling
* optimizing repeat
* fixed minor issues
* not sure why that folder is there xD
* fixed now for sure
* test repeat not repeat test
* Fixed
---------
Co-authored-by: Bahaa Eddin tabbakha <bahaa@Bahaas-MacBook-Pro.local > 
						
						
					 
					
						2023-12-27 13:11:38 -08:00 
						 
				 
			
				
					
						
							
							
								Diogo 
							
						 
					 
					
						
						
							
						
						1f6ab6a556 
					 
					
						
						
							
							Safetensor support ( #215 )  
						
						... 
						
						
						
						Co-authored-by: Awni Hannun <awni@apple.com > 
						
						
					 
					
						2023-12-27 02:06:55 -08:00 
						 
				 
			
				
					
						
							
							
								Gabrijel Boduljak 
							
						 
					 
					
						
						
							
						
						6b0d30bb85 
					 
					
						
						
							
							linalg.norm ( #187 )  
						
						... 
						
						
						
						* implemented vector_norm in cpp
added linalg to mlx
* implemented vector_norm python binding
* renamed vector_norm to norm, implemented norm without provided ord
* completed the implementation of the norm
* added tests
* removed unused import in linalg.cpp
* updated python bindings
* added some tests for python bindings
* handling inf, -inf as numpy does, more extensive tests of compatibility with numpy
* added better docs and examples
* refactored mlx.linalg.norm bindings
* reused existing util for implementation of linalg.norm
* more tests
* fixed a bug with no ord and axis provided
* removed unused imports
* some style and API consistency updates to linalg norm
* remove unused includes
* fix python tests
* fixed a bug with frobenius norm of a complex-valued matrix
* complex for vector too
---------
Co-authored-by: Awni Hannun <awni@apple.com > 
						
						
					 
					
						2023-12-26 19:42:04 -08:00 
						 
				 
			
				
					
						
							
							
								Daniel Strobusch 
							
						 
					 
					
						
						
							
						
						7365d142a3 
					 
					
						
						
							
							random.uniform must respect dtype, even if lower precision than "low" ( #280 )  
						
						... 
						
						
						
						Fix an edge case where random uniform returns a float32 array, even if a lower precision dtype is wanted due to adding the float32 "low" array. 
						
						
					 
					
						2023-12-24 07:04:43 -08:00 
						 
				 
			
				
					
						
							
							
								Daniel Strobusch 
							
						 
					 
					
						
						
							
						
						794feb83df 
					 
					
						
						
							
							support arange for bfloat16 ( #245 )  
						
						
						
						
					 
					
						2023-12-21 14:33:43 -08:00 
						 
				 
			
				
					
						
							
							
								Angelos Katharopoulos 
							
						 
					 
					
						
						
							
						
						57fe918cf8 
					 
					
						
						
							
							Adds C++ and nn quantization utilities ( #230 )  
						
						... 
						
						
						
						* Add C++ de-/quantize ops
* Add quantize functions to the docs and tests
* Add a QuantizedLinear module 
						
						
					 
					
						2023-12-20 14:17:38 -08:00 
						 
				 
			
				
					
						
							
							
								Abe Leininger 
							
						 
					 
					
						
						
							
						
						e6872a4149 
					 
					
						
						
							
							Added linspace ( #181 )  
						
						... 
						
						
						
						* linspace ops support
---------
Co-authored-by: Awni Hannun <awni@apple.com > 
						
						
					 
					
						2023-12-18 19:57:55 -08:00 
						 
				 
			
				
					
						
							
							
								Angelos Katharopoulos 
							
						 
					 
					
						
						
							
						
						4d4af12c6f 
					 
					
						
						
							
							Adds round op and primitive ( #203 )  
						
						
						
						
					 
					
						2023-12-18 11:32:48 -08:00 
						 
				 
			
				
					
						
							
							
								Cyril Zakka, MD 
							
						 
					 
					
						
						
							
						
						8eb56beb3a 
					 
					
						
						
							
							Added clip function ( #159 )  
						
						... 
						
						
						
						* Added clip
* Added Python bindings
* Formatting
* Added cpp tests
* Added Python tests
* python bindings work
* rebase
---------
Co-authored-by: Awni Hannun <awni@apple.com > 
						
						
					 
					
						2023-12-17 20:00:29 -08:00 
						 
				 
			
				
					
						
							
							
								Awni Hannun 
							
						 
					 
					
						
						
							
						
						90d04072b7 
					 
					
						
						
							
							fix build w/ flatten ( #195 )  
						
						
						
						
					 
					
						2023-12-17 11:58:45 -08:00 
						 
				 
			
				
					
						
							
							
								__mo_san__ 
							
						 
					 
					
						
						
							
						
						52e1589a52 
					 
					
						
						
							
							implemented Flatten Module ( #149 )  
						
						... 
						
						
						
						* implemented flatten op
---------
Co-authored-by: Awni Hannun <awni@apple.com > 
						
						
					 
					
						2023-12-16 21:54:37 -08:00 
						 
				 
			
				
					
						
							
							
								Diogo 
							
						 
					 
					
						
						
							
						
						dc2edc762c 
					 
					
						
						
							
							added tri / tril / triu ( #170 )  
						
						... 
						
						
						
						* added tri / tril / triu
* fixed tests
* ctest tests
* tri overload and simplified tests
* changes from comment
* more tests for m
* ensure assert if not 2-D
* remove broadcast_to
* minor tweaks
---------
Co-authored-by: Awni Hannun <awni@apple.com > 
						
						
					 
					
						2023-12-15 17:30:34 -08:00