Robots Atlas>ROBOTS ATLAS
AI PlatformAI-native

MLX

Apple's open-source array framework for machine learning, optimized for Apple silicon via unified (shared) memory.

Producer:AppleOn-Premises · EdgeReleased:Dec 5, 2023
MLX
SDK / Languages
2python, c_cpp
Robotics-Ready
✓

Description

MLX is an open-source array framework for machine learning created by Apple machine learning research (the ml-explore organization on GitHub). It is designed for efficient and flexible training and inference of models on Apple silicon. Its Python API closely follows NumPy, with additional interfaces available in C++, C, and Swift.

Key features include unified (shared) memory, where arrays live in shared memory so operations can run on CPU or GPU without transferring data; lazy computation, where arrays are only materialized when needed; dynamic computation graph construction without slow recompilations; and composable function transformations for automatic differentiation, automatic vectorization, and graph optimization. The design is inspired by PyTorch, JAX, and ArrayFire, and the code is released under the MIT license.

MLX is used for tasks such as transformer language model training, text generation (LLaMA, LoRA fine-tuning), image generation (Stable Diffusion), and speech recognition (Whisper). The framework runs locally on-device; beyond Apple silicon, a CUDA backend is also available for Linux.

Developer EcosystemDeveloper EcosystemDeveloper resources: available SDKs, supported programming languages, and infrastructure features and model-deployment methods.

SDK Languages
PyPythonC+C / C++
Community & resources
Templates library
Quickstarts
API Reference
Tutorials

SourcesDocumentation VaultCentralized hub of links to official sources, technical guides, repositories and release notes.