Back to directory

MLX

An array framework for machine learning on Apple silicon, with a NumPy-like Python API and matching C++, C and Swift APIs, plus higher-level packages that follow PyTorch.

MLX

MLX is an array framework for machine learning on Apple silicon, built by Apple's machine learning research team. Its Python API closely follows NumPy, with matching C++, C and Swift APIs, and higher-level packages such as mlx.nn and mlx.optimizers that follow PyTorch conventions for building more complex models.

MLX supports composable function transformations for automatic differentiation, automatic vectorization and computation graph optimization. Computation is lazy, so arrays are materialized only when needed, and computation graphs are built dynamically, so changing an argument's shape does not trigger slow recompilation. Arrays live in a unified memory model shared across the CPU and GPU, so operations can run on either device without copying data.

It installs from PyPI, with separate packages for macOS, a CUDA backend on Linux, and a CPU-only Linux build. Example applications include transformer language model training, large-scale text generation and LoRA fine-tuning, Stable Diffusion image generation, and speech recognition with Whisper.

More in Models

See all 405
  • mini-AGI

    github.com

    A continual learning language model that trains from scratch on a single 8 GB VRAM GPU, assembling its own architecture and adapting its size to the hardware and data available rather than shipping as a fixed pretrained model.

  • An open-source contrastive-embedding pipeline that maps technical CVE vulnerability descriptions to formal cybersecurity compliance controls in NIST SP 800-53 and CMMC, published with its model generation, fine-tuning and evaluation code.

  • peekaboolean

    github.com

    A small vision-language model, fine-tuned with LoRA on a 500-million-parameter backbone, that answers typed multiple-choice, ordinal-score and yes/no questions about an image with calibrated probabilities, in about 400 milliseconds on a laptop.