MLX
Apple's array framework for machine learning on Apple silicon, using unified memory so CPU and GPU share arrays without copies.
MLX provides a NumPy-like API with lazy evaluation, automatic differentiation and higher-level neural-network and optimiser packages. Because Apple silicon shares memory between CPU and GPU, arrays do not need to be moved between devices. The companion mlx-lm package runs and fine-tunes many open language models locally on a Mac. Python, Swift, C and C++ APIs are available.
- Type
- AI framework
- Category
- AI & ML
- Maintainer
- Apple
- First released
- 2023
- License
- Open source (MIT)
- Pricing
- Open source
- Level
- Intermediate
- Technologies
- python, swift, cpp, deep-learning, llm
- GitHub stars
- 29,384
- Weekly downloads
- 429,701 (pypi)
- Latest release
- [object Object]
- Last verified
- 26 Nov 2026
What MLX is used for
- Running open LLMs locally on a Mac
- LoRA fine-tuning on Apple silicon
- On-device ML research
Strengths
- Unified-memory design
- Familiar NumPy/PyTorch-like API
- Active example repos for LLMs and diffusion
Limitations
- GPU acceleration only on Apple silicon
- Younger ecosystem than PyTorch
MLX alternatives
How it relates to other tools
- MLX works with Hugging Face Hub
- MLX works with Python
- Built on MLX: LM Studio
Built with the same technologies
Learn MLX
Official links
- Official website
- Documentation
- Source code (ml-explore/mlx)
- pypi: mlx
- pypi: mlx-lm