MITB Banner

Apple Open Sources MLX, Machine Learning Framework for Apple Silicon

MLX is conveniently available on PyPi.

Share

Apple Antitrust
Listen to this story

Apple has open sourced MLX, an array framework for machine learning on Apple silicon (i.e your laptop). 

Developed by Apple’s machine learning research team, MLX introduces a range of features tailored to meet the demands of researchers, ensuring a streamlined experience for model training and deployment.

MLX comes equipped with several noteworthy features:

  • Familiar APIs: MLX’s Python API closely aligns with NumPy, while the fully-featured C++ API mirrors the Python version. Additionally, higher-level packages such as mlx.nn and mlx.optimizers simplify model building by adhering to PyTorch conventions.
  • Composable Function Transformations: MLX introduces composable function transformations, enabling automatic differentiation, vectorization, and computation graph optimization.
  • Lazy Computation: Computation in MLX is designed to be lazy, ensuring that arrays are only materialized when necessary, optimizing computational efficiency.
  • Dynamic Graph Construction: MLX adopts dynamic graph construction, eliminating slow compilations triggered by changes in function argument shapes. This approach simplifies the debugging process.
  • Multi-Device Support: MLX allows operations to seamlessly run on supported devices, including the CPU and GPU, providing flexibility for developers.
  • Unified Memory Model: MLX introduces a unified memory model, deviating from other frameworks. Arrays reside in shared memory, enabling operations on MLX arrays across different device types without data movement.

Drawing inspiration from established frameworks like NumPy, PyTorch, Jax, and ArrayFire, MLX combines key features to create a robust and versatile platform.

The MLX examples repository showcases the framework’s capabilities, including transformer language model training, large-scale text generation, image generation with Stable Diffusion, and speech recognition using OpenAI’s Whisper.

MLX is conveniently available on PyPi, and installation of the Python API is a straightforward process with the command: pip install mlx.

Share
Picture of Siddharth Jindal

Siddharth Jindal

Siddharth is a media graduate who loves to explore tech through journalism and putting forward ideas worth pondering about in the era of artificial intelligence.
Related Posts

CORPORATE TRAINING PROGRAMS ON GENERATIVE AI

Generative AI Skilling for Enterprises

Our customized corporate training program on Generative AI provides a unique opportunity to empower, retain, and advance your talent.

Upcoming Large format Conference

May 30 and 31, 2024 | 📍 Bangalore, India

Download the easiest way to
stay informed

Subscribe to The Belamy: Our Weekly Newsletter

Biggest AI stories, delivered to your inbox every week.

AI Forum for India

Our Discord Community for AI Ecosystem, In collaboration with NVIDIA. 

Flagship Events

Rising 2024 | DE&I in Tech Summit

April 4 and 5, 2024 | 📍 Hilton Convention Center, Manyata Tech Park, Bangalore

MachineCon GCC Summit 2024

June 28 2024 | 📍Bangalore, India

MachineCon USA 2024

26 July 2024 | 583 Park Avenue, New York

Cypher India 2024

September 25-27, 2024 | 📍Bangalore, India

Cypher USA 2024

Nov 21-22 2024 | 📍Santa Clara Convention Center, California, USA

Data Engineering Summit 2024

May 30 and 31, 2024 | 📍 Bangalore, India

Subscribe to Our Newsletter

The Belamy, our weekly Newsletter is a rage. Just enter your email below.