Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a3fdf5575ac92a83

Jump to content

// Workers AI · dad joke modeWhat did MLX say to its model? "You learn from me.

From Wikipedia, the free encyclopedia
(Redirected from MLX (Apple ML framework))
MLX
DeveloperApple
ReleaseDecember 5, 2023; 2 years ago (2023-12-05)
Written inC++, Python, CUDA, Metal
TypeMachine learning framework
LicenseMIT License
Websitemlx-framework.org
Repositoryhttps://github.com/ml-explore/mlx

MLX is an open-source machine learning framework developed by Apple and designed primarily for Apple silicon. It is used for training and running machine learning models and is optimized for Apple silicon's unified memory architecture, allowing the CPU and GPU to work with the same data without copying it between separate memory pools.[1] MLX can be used for applications including large language model training and inference, image generation, and speech recognition.[2]

History

[edit]

Apple's machine learning research team released MLX in December 2023.[3] It was initially developed by Awni Hannun, Jagrit Digani, Angelos Katharopoulos, and Ronan Collobert and released under the MIT License.[4] Its design was influenced by numerical and machine learning frameworks including NumPy, PyTorch, and JAX.[5]

A Swift interface for MLX was released in February 2024, allowing machine learning research using Swift on Apple silicon.[6] In March 2026, Ollama introduced support for MLX for running local language models on Apple silicon Macs.[7]

Features

[edit]

MLX can be used to run and train artificial intelligence models, including large language models, locally on Apple silicon Macs. It provides higher-level neural network and optimization tools similar to PyTorch and supports automatic differentiation, lazy computation, dynamic computation graphs, vectorization, and execution on CPUs and GPUs.[2] On Apple silicon, arrays are stored in shared unified memory and can be processed by either the CPU or GPU without transferring them between separate memory spaces.[8]

MLX provides interfaces for Swift and C, while MLX Core provides bindings for Python and C++. Its Python API is modeled after NumPy, and MLX can run on Apple platforms that support Metal.[9]

The MLX ecosystem includes MLX LM,[10] a package for generating text with and fine-tuning large language models. Apple provides MLX examples for models including Llama, Stable Diffusion, and Whisper. The framework's current releases also provide CPU and CUDA backends for Linux.[11]

See also

[edit]

References

[edit]
  1. Dickson, Ben (February 15, 2024). "What is Apple's generative AI strategy?". VentureBeat. Retrieved September 4, 2026.
  2. 1 2 De Simone, Sergio (December 17, 2023). "Apple Open-sources Apple Silicon-Optimized Machine Learning Framework MLX". InfoQ. Retrieved September 4, 2026.
  3. Hall, Zac (December 6, 2023). "Apple drops new MLX machine learning framework for Apple silicon Macs". 9to5Mac. Retrieved September 4, 2026.
  4. "MLX". GitHub. Apple. Retrieved September 4, 2026.
  5. "MLX". MLX documentation. Apple. Retrieved September 4, 2026.
  6. Koski, David; Hannun, Awni; Collobert, Ronan (February 20, 2024). "On-device ML research with MLX and Swift". Swift.org. Retrieved September 4, 2026.
  7. Axon, Samuel (March 31, 2026). "Running local models on Macs gets faster with Ollama's MLX support". Ars Technica. Retrieved September 4, 2026.
  8. "MLX". MLX documentation. Apple. Retrieved September 4, 2026.
  9. "MLX". MLX. Apple. Retrieved September 5, 2026.
  10. "MLX LM". GitHub. Apple. Retrieved September 5, 2026.
  11. "MLX". GitHub. Apple. Retrieved September 5, 2026.
[edit]