MLX is a NumPy-like array framework for machine learning on Apple silicon, with features such as composable function transformations, lazy computation, and a unified memory model.
MLX is a NumPy-like array framework designed for efficient and flexible machine learning on Apple silicon, with a Python API that closely follows NumPy. It has composable function transformations for automatic differentiation, automatic vectorization, and computation graph optimization, and supports lazy computation and multi-device operations. The design of MLX is inspired by frameworks like PyTorch, Jax, and ArrayFire, with a notable difference being the unified memory model where arrays live in shared memory and can be operated on without data copies. The documentation covers installation, usage, and reference for both Python and C++ APIs.