mirror of
https://github.com/ml-explore/mlx.git
synced 2025-09-25 23:38:10 +08:00
adb992a780780cfbfb0f4be287652779b8c8bc9d
MLX
MLX is an array framework for machine learning specifically targeting Apple Silicon. MLX is designed with inspiration from Jax, PyTorch, ArrayFire.
Build
mkdir -p build && cd build
cmake .. && make -j
Run the C++ tests with make test
(or ./tests/tests
for more detailed output).
Python bidings
To install run:
env CMAKE_BUILD_PARALLEL_LEVEL="" pip install .
For developing use an editable install:
env CMAKE_BUILD_PARALLEL_LEVEL="" pip install -e .
To make sure the install is working run the tests with:
python -m unittest discover python/tests
Contributing
Check out the contribution guidelines for more information on contributing to MLX.
Languages
C++
65.3%
Python
22.5%
Cuda
6.6%
Metal
3.7%
CMake
1%
Other
0.8%