# MLX

- **Canonical URL:** https://getaimath.com/dictionary/mlx/
- **Topics:** [AI Infrastructure & Runtime](https://getaimath.com/dictionary/category/ai-infrastructure-and-runtime/)
- **Last updated:** 2026-11-25

## What is MLX?

**In one sentence:** MLX is Apple's open-source machine learning framework built for Apple silicon chips.

It is designed to take advantage of unified memory, so the CPU and GPU share data without copying. People use it to run and fine-tune LLMs on Macs.

![AI Runtime Engines: Sharing the Oven So Nobody Waits in Line — Simple cartoon showing 4 users ordering at a coffee counter: instead of making everyone wait behind one huge order, a smart Runtime Engine serves all 4 side-by-side at the same time.](https://getaimath.com/diagrams/ai-infrastructure-and-runtime.png)
*Napkin Diagram (AI Infrastructure & Runtime): A runtime engine is the traffic controller that lets one AI chip serve dozens of people at once without anyone getting stuck.*

## What is an example of MLX?

Running a quantized Llama model on a Mac with the mlx-lm package uses MLX.

## Why does MLX matter?

MLX makes Macs fast and convenient for local AI work.

## Related Concepts

- [OpenCL](https://getaimath.com/dictionary/opencl/): OpenCL is an older open standard for running parallel computations on many kinds of processors, including GPUs and CPUs.
- [llama.cpp](https://getaimath.com/dictionary/llama-cpp/): llama.cpp is a popular open-source program for running large language models efficiently on ordinary computers.
- [ROCm](https://getaimath.com/dictionary/rocm/): ROCm is AMD's software platform for running AI and other computing work on AMD GPUs, similar to NVIDIA's CUDA.
- [vLLM](https://getaimath.com/dictionary/vllm/): vLLM is an open-source, high-performance inference engine for serving LLMs to many users at once.
- [Vulkan](https://getaimath.com/dictionary/vulkan/): Vulkan is a cross-platform graphics and compute standard that works on GPUs from many companies.
- [SGLang](https://getaimath.com/dictionary/sglang/): SGLang is an open-source framework for fast LLM serving and for structuring complex prompts and generation.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/mlx/)
