mlx  by ml-explore

Array framework for machine learning on Apple silicon

created 1 year ago
21,741 stars

Top 2.0% on sourcepulse

GitHubView on GitHub
Project Summary

MLX is an array framework designed for machine learning on Apple silicon, targeting ML researchers and developers. It offers a user-friendly yet efficient platform for training and deploying models, simplifying the exploration of new ideas with a conceptually simple and extensible design.

How It Works

MLX leverages a unified memory model, allowing arrays to reside in shared memory accessible by both CPU and GPU without explicit data transfers. Computations are lazy and use a dynamically constructed graph, enabling efficient execution and straightforward debugging, even with changing input shapes. Its design is inspired by frameworks like NumPy, PyTorch, Jax, and ArrayFire, incorporating composable function transformations for automatic differentiation, vectorization, and graph optimization.

Quick Start & Requirements

Highlighted Details

  • Familiar Python API mirroring NumPy, with C++, C, and Swift APIs.
  • Higher-level packages (mlx.nn, mlx.optimizers) mimic PyTorch APIs.
  • Supports multi-device operations (CPU and GPU) via unified memory.
  • Examples include Transformer training, LLaMA fine-tuning, Stable Diffusion, and Whisper.

Maintenance & Community

MLX is developed by Apple machine learning research. Contributions are welcomed.

Licensing & Compatibility

The repository does not explicitly state a license in the provided README text.

Limitations & Caveats

The framework is primarily designed for Apple silicon, limiting its use on other hardware architectures. The BibTex entry lists the version as 0.0, suggesting it may be in early development stages.

Health Check
Last commit

15 hours ago

Responsiveness

1 day

Pull Requests (30d)
93
Issues (30d)
29
Star History
1,439 stars in the last 90 days

Explore Similar Projects

Starred by Patrick von Platen Patrick von Platen(Core Contributor to Hugging Face Transformers and Diffusers), Michael Han Michael Han(Cofounder of Unsloth), and
1 more.

ktransformers by kvcache-ai

0.4%
15k
Framework for LLM inference optimization experimentation
created 1 year ago
updated 2 days ago
Starred by Peter Norvig Peter Norvig(Author of Artificial Intelligence: A Modern Approach; Research Director at Google), Aravind Srinivas Aravind Srinivas(Cofounder of Perplexity), and
45 more.

tensorflow by tensorflow

0.1%
191k
Open-source ML framework
created 9 years ago
updated 10 hours ago
Feedback? Help us improve.