skillfed

mlx

A framework for machine learning on Apple silicon.

mlx v0.32.0 1.3M downloads/30d#4,055 on PyPI27,951
Permissive license MIT Active released

What it is and what it does

MLX is a machine learning framework designed by Apple for efficient computation on Apple silicon. It provides a Python API closely mirroring NumPy, with higher-level modules like mlx.nn and mlx.optimizers that follow PyTorch conventions. The framework supports composable function transformations for automatic differentiation and vectorization, lazy evaluation of computations, and dynamic graph construction that avoids slow recompilation when argument shapes change.

MLX's key architectural distinction is its unified memory model: arrays live in shared memory and operations can run on CPU or GPU without explicit data transfers. The framework is intended for researchers who want both user-friendly APIs and efficient training and deployment on Apple hardware. It has C++, C, and Swift APIs alongside Python, and supports multi-device operations across supported hardware.

Use it for:

  • Training transformer language models or fine-tuning large language models like LLaMA on Apple silicon without data transfer overhead.
  • Prototyping machine learning research with dynamic computation graphs that adapt to changing input shapes without recompilation.
  • Running inference for generative tasks (text, image, speech) on macOS with GPU acceleration via unified memory.
  • Building cross-platform ML applications using MLX's C++, C, or Swift APIs alongside Python.
  • Developing ML workflows that leverage automatic differentiation and vectorization for complex model architectures.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

MLX is an array framework for machine learning on Apple silicon that provides NumPy-like Python APIs, automatic differentiation, lazy computation, and unified memory across CPU and GPU devices.

Yes, if you develop on Apple silicon and want a research-grade ML framework with low data-transfer overhead and NumPy-familiar APIs. The active maintenance, permissive license, and lack of known vulnerabilities support adoption. Medium install friction and Apple-silicon focus limit appeal to Linux/Windows-only teams, but the framework is stable and well-supported for its target platform.

Install

mlx on PyPI

pip

pip install mlx

uv

uv add mlx

poetry

poetry add mlx

Installing mlx

Before you install

Medium install friction due to platform-specific wheels and a compiled runtime dependency (mlx-metal). Actively maintained with recent releases; last commit 2026-08-14 and 27951 repository stars indicate ongoing development.

License in practice

MIT license is permissive, allowing commercial and private use with minimal restrictions—typical for research-backed frameworks.

Quickstart

pip install mlx

import mlx.core as mx

arr = mx.array([1, 2, 3])
result = mx.sum(arr)

Requires Python >=3.10 and Apple silicon (or Linux/Windows with appropriate backend); mlx-metal runtime dependency must be available.

Verify before relying

  • Whether the framework's performance on Apple silicon compares favorably to PyTorch or JAX for typical workloads.
  • Maturity and stability of the C++, C, and Swift APIs relative to the Python API.
  • Community size and availability of third-party extensions or pre-trained models.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.10)
Install friction medium — platform-specific wheel
Runtime dependencies 1 — mlx-metal
Maintenance actively maintained — 38 days since the last release
Last repo commit
First released
Downloads 1,327,045/month — #4,055 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: mlx-0.32.0-cp310-cp310-macosx_14_0_arm64.whl; mlx-0.32.0-cp310-cp310-macosx_15_0_arm64.whl; mlx-0.32.0-cp310-cp310-macosx_26_0_arm64.whl; mlx-0.32.0-cp310-cp310-manylinux_2_35_aarch64.whl; mlx-0.32.0-cp310-cp310-manylinux_2_35_x86_64.whl; mlx-0.32.0-cp310-cp310-win_amd64.whl; mlx-0.32.0-cp311-cp311-macosx_14_0_arm64.whl; mlx-0.32.0-cp311-cp311-macosx_15_0_arm64.whl; mlx-0.32.0-cp311-cp311-macosx_26_0_arm64.whl; mlx-0.32.0-cp311-cp311-manylinux_2_35_aarch64.whl; mlx-0.32.0-cp311-cp311-manylinux_2_35_x86_64.whl; mlx-0.32.0-cp311-cp311-win_amd64.whl; mlx-0.32.0-cp311-cp311-win_arm64.whl; mlx-0.32.0-cp312-cp312-macosx_14_0_arm64.whl; mlx-0.32.0-cp312-cp312-macosx_15_0_arm64.whl; mlx-0.32.0-cp312-cp312-macosx_26_0_arm64.whl; mlx-0.32.0-cp312-cp312-manylinux_2_35_aarch64.whl; mlx-0.32.0-cp312-cp312-manylinux_2_35_x86_64.whl; mlx-0.32.0-cp312-cp312-win_amd64.whl; mlx-0.32.0-cp312-cp312-win_arm64.whl

Tags

machine learning on Apple siliconNumPy-like ML frameworkautomatic differentiation frameworkApple GPU accelerationlazy computation MLunified memory ML frameworkPyTorch-like APIs for Mac
apple-siliconautomatic-differentiationunified-memory

More Artificial Intelligence packages