Search icon

Apple Unveils MLX: A Machine Learning Framework for Apple Silicon

Published on 7 Dec, 2023, 11:57 AM IST
Updated on 19 Dec, 2024, 8:27 PM IST
Sahil Mohan Gupta
ReadTimeIcon
3 min read
Top stories and News
Follow us onfollow-google-news-icon

Share Post

Apple

MLX is "an efficient machine learning framework specifically designed for Apple silicon."

In the rapidly evolving landscape of generative AI, major tech giants like Google, Microsoft, Meta, and Amazon, alongside industry-leading startups such as OpenAI and Anthropic, have been making significant strides. Amidst this competitive scene, Apple has often been perceived as somewhat behind the curve. However, leveraging the robust capabilities of Apple Silicon for on-device AI processing, including generative AI, Apple has taken a significant step forward. Quietly paralleling Google's major revelations in the generative AI sphere, Apple has launched its MLX Machine Learning Framework, specifically tailored for Apple Silicon, and made it available on GitHub.

Awni Hannun from Apple's ML team describes MLX as "an efficient machine learning framework specifically designed for Apple silicon." This framework is a game-changer, particularly for researchers utilizing Apple hardware. It simplifies the process of training and deploying machine learning models, offering a NumPy-like array framework optimized for Apple's ARM-based chipsets.

MLX presents a dynamic environment for developers, enabling the creation of robust machine learning models for various applications. Remarkably, this tool is open and flexible, supporting a range of languages preferred by developers, rather than restricting them to Apple-specific choices. This includes support for popular frameworks like PyTorch, Tax, and ArrayFire, as well as compatibility with the unified memory architecture pioneered by Apple’s processors.

Apple's release notes highlight the user-friendliness and efficiency of MLX, stating, "The Python API closely follows NumPy with a few exceptions. MLX also has a fully featured C++ API which closely follows the Python API. The framework is intended to be user-friendly, but still efficient to train and deploy models…. We intend to make it easy for researchers to extend and improve MLX with the goal of quickly exploring new ideas."

MLX boasts an impressive array of features, including function transformations comparable to existing tools, lazy computation, dynamic graph construction, and support for multi-device and unified memory systems. Apple asserts that MLX can efficiently train transformer models like an LLM or fine-tune a LoRA. It also supports Mistral, image generation on Stable Diffusion, and speech recognition with Whisper, the speech protocol used by ChatGPT.

Apple confidently positions MLX as a framework "designed by machine learning researchers for machine learning researchers," marking a significant leap in Apple's engagement with the generative AI community and bolstering its position in the competitive field of AI and machine learning.

AckoDriveTag IconTags
Apple
Apple MLX
Apple Silicon
Apple M1
Apple M2
Generative AI

RecentTop stories and News

Volkswagen Celebrates 50 Years of The Iconic Polo

Pratik Rakshit 28 Dec, 2024, 8:22 AM IST

Top 5 Premium Bikes Launched In 2024

Sutanu Guha 28 Dec, 2024, 6:24 AM IST

Best Of 2024: Most Anticipated SUVs Launched in 2024

Satvik Khare 27 Dec, 2024, 3:20 PM IST

Suzuki, Next Bharat Sign MoU With Hamamatsu City In Japan

Satvik Khare 27 Dec, 2024, 2:03 PM IST

Looking for a new car?

We promise the best car deals and earliest delivery!

Callback Widget Desktop Icon