MLX
A machine learning framework developed by Apple and optimized for Apple Silicon chips, enabling efficient local execution of large language models on Mac hardware.
Core Facts
MLX is an open-source array computation and deep learning framework introduced by Apple's machine learning research team, designed specifically for the unified memory architecture of Apple Silicon, and offering Python, C++ (MLX-C) and Swift interfaces.
Apple has established an on-device inference ecosystem through the Core ML framework and the MLX machine learning framework designed specifically for Apple Silicon.
Apple Silicon's Neural Engine shares a Unified Memory Architecture with the CPU and GPU, eliminating the bottleneck of data transfer between different memory pools in traditional heterogeneous computing.
Timeline (last 90 days)
MLX's distributed computing supports deploying models across multiple Macs connected via Thunderbolt or Ethernet, with the model automatically sharded across all devices; starting from macOS 26.2, Thunderbolt RDMA is supported, and with four nodes the speed can be up to three times higher.
Popular tools such as Ollama and LM Studio are built on MLX and MLX LM.
In the demo, the OpenCode agent calls the GitHub CLI to pull PR data, compare diffs, and generate a summary, and the entire process runs locally except for Git commands.
In the M5 chip, the neural network accelerator makes matrix multiplication 4 times faster than the M4, and combined with MLX-optimized matrix multiplication and attention kernels, agent prompt processing is nearly 4 times faster without any code changes.
NVIDIA and Intel GPUs are deployed using Llama CPP, Apple devices are deployed using the MLX framework, and both iPhone and iPad can run it.
QEN3-8-27B's 4-bit MLX quantized checkpoint takes up 16.1GB of disk space.
The standardization of the local inference toolchain (model formats such as GGUF and safetensors, inference engines such as llama.cpp, Ollama, vLLM and MLX) has significantly lowered the barrier for ordinary users to run large models.
llama.cpp, ONNX Runtime, and MLX are inference backends that support different hardware instruction sets and memory models.
The KQuant quantization packages are freely open-sourced on Hugging Face, covering four models—4B, 27B, 35B and Flash-Next—in standard MLX format.
KQuant uses real text data to select scaling and offset values for small weight groups and allocates extra bits to sensitive layers; the entire search process is completed on a cloud GPU cluster, and users download standard MLX files without needing custom kernels or special loaders.
40 more timeline events
All Facts (20)
MLX is an open-source array computation and deep learning framework introduced by Apple's machine learning research team, designed specifically for the unified memory architecture of Apple Silicon, and offering Python, C++ (MLX-C) and Swift interfaces.
90%VerifiedApple has established an on-device inference ecosystem through the Core ML framework and the MLX machine learning framework designed specifically for Apple Silicon.
90%VerifiedApple Silicon's Neural Engine shares a Unified Memory Architecture with the CPU and GPU, eliminating the bottleneck of data transfer between different memory pools in traditional heterogeneous computing.
90%VerifiedAMD's ROCm and Intel's oneAPI still have significant gaps compared to CUDA in terms of ecosystem completeness, community support, and performance tuning tools.
85%VerifiedMLX is specifically optimized for Apple Silicon's unified memory architecture.
85%VerifiedApple's MLX framework is a machine learning framework designed specifically for M-series chips by Apple in late 2023; it uses a unified memory architecture to eliminate memory copy overhead and can run 70-billion-parameter models on the M2 Ultra (with up to 192GB unified memory).
85%VerifiedM1's unified memory architecture allows the CPU and GPU to physically share the same memory, eliminating the need for explicit data copying and requiring only the passing of pointers or virtual addresses.
80%VerifiedApple open-sourced the MLX framework in late 2023, designed specifically for Apple Silicon.
80%VerifiedGGUF is a format widely used in the llama.cpp ecosystem, supports flexible quantization granularity from 2-bit to 8-bit, and is friendly to CPU inference.
80%VerifiedApple M系列芯片采用统一内存架构(UMA),CPU和GPU共享同一块高带宽内存池
80%VerifiedMLX是Apple专为Apple Silicon芯片设计的机器学习框架,能充分利用M系列芯片统一内存架构(UMA)的优势
80%VerifiedMLX supports lazy computation and function transformations, with an API style that draws from both NumPy and PyTorch.
75%VerifiedThe llama.cpp project has made local inference of quantized models possible on various hardware, while MLC-LLM focuses on compilation optimization for mobile devices.
75%VerifiedCommon local inference frameworks include Ollama, llama.cpp, and vLLM.
75%VerifiedOllama v0.40.0 enables the MLX runtime by default on Apple Silicon chips to perform model inference.
75%UnverifiedApple Silicon M-series unified memory architecture allows CPU and GPU to share the same physical memory, eliminating data copy overhead beneficial for LLM inference
90%Unverifiednpcpy深度适配Apple Silicon,在MLX架构下运行LoRA,rank拉到128,配合Flash Attention 2.0
80%UnverifiedMLX arrays can reside in unified memory, where the CPU and GPU share the same data, thereby reducing copy overhead.
70%Unverifiedv0.40.10-rc0 exposes hidden-state taps and raw logits for Gemma 4 to support speculative decoding.
70%UnverifiedIn the prompt construction stage, this version preserves the source tool JSON alongside the decoded API values, so that Flint can retain numeric types and schema order in the prompt.
70%