SPB Git
6.1 KB · 50 lines json
1{2  "slug": "mlx",3  "name": "MLX",4  "aliases": ["Apple MLX", "ml-explore/mlx"],5  "vendor": { "name": "Apple (machine learning research)", "slug": "apple", "website": "https://ml-explore.github.io/mlx/" },6  "homepage_url": "https://ml-explore.github.io/mlx/",7  "docs_url": "https://ml-explore.github.io/mlx/build/html/index.html",8  "repo_url": "https://github.com/ml-explore/mlx",9  "license_url": "https://github.com/ml-explore/mlx/blob/main/LICENSE",10  "product_type": "framework",11  "product_status": "active",12  "summary": "Apple's open-source array framework for machine learning on Apple Silicon, with NumPy-like Python, C++ and Swift APIs and unified CPU/GPU memory",13  "description": "MLX is an open-source array framework for machine learning research on Apple Silicon, developed by Apple's machine learning research group and released under the MIT license. It belongs to the same family as NumPy, PyTorch and JAX: arrays, automatic differentiation, automatic vectorization and composable function transformations, with a Python API that deliberately mirrors NumPy and higher-level `mlx.nn` and `mlx.optimizers` modules that resemble PyTorch.\n\nTwo design choices distinguish it. Arrays live in the Mac's unified memory, so an operation can run on the CPU or the GPU without copying data between device buffers. Computation is lazy: graphs are built as you call functions and materialized only when a result is needed, which lets the framework fuse and schedule work. Beyond Python there are C++ and Swift bindings (MLX Swift), and a distributed module with all-reduce, all-gather and point-to-point primitives for running data- or tensor-parallel jobs across several Macs connected by Ethernet or Thunderbolt.\n\nIn practice MLX is the engine under a growing set of Apple Silicon tools: the `mlx-lm` package for LLM inference and fine-tuning, `mlx-whisper` for speech recognition, the `mlx-community` model collection on the Hugging Face Hub, and distributed-inference projects such as exo. Researchers and developers who want to run or adapt models locally on a Mac Studio or MacBook, or build a small cluster of Macs, are the primary audience.\n\nIts limits follow from its focus: MLX runs only on Apple Silicon (with a CPU-only Linux build for development), the operator and model ecosystem is smaller than PyTorch's, and multi-machine training is young compared with mature CUDA tooling. Models usually need to be converted into MLX format before use.",14  "capabilities": ["NumPy-like array API with automatic differentiation and vectorization", "Lazy evaluation with unified CPU/GPU memory on Apple Silicon", "Neural-network and optimizer modules for training", "Python, C++ and Swift bindings", "Distributed communication primitives for multi-Mac data and tensor parallelism", "Quantized weights and kernel fusion for inference"],15  "workflows": ["Run a quantized LLM locally through mlx-lm", "Fine-tune a model with LoRA on a single Mac", "Prototype a research model in Python and port it to Swift for an app", "Shard a large model across several Macs with mx.distributed"],16  "advantages": ["Uses the full unified memory of a Mac for large models", "Familiar API for NumPy and PyTorch users", "Permissive MIT license and active Apple-backed development", "Swift bindings for on-device apps"],17  "limitations": ["Apple Silicon only; Linux build is CPU-only", "Smaller operator and pretrained-model ecosystem than PyTorch", "Models must be converted to MLX format", "Multi-node training tooling is less mature than CUDA-based stacks"],18  "prerequisites": ["A Mac with Apple Silicon", "Python 3.10 or newer for the Python package", "Xcode or Swift toolchain for the Swift bindings"],19  "audiences": ["ML researchers working on Macs", "Developers shipping on-device models in Swift apps", "Operators of small Apple Silicon clusters"],20  "alternatives": ["pytorch", "jax", "llama-cpp", "core-ml"],21  "comparison_notes": "PyTorch and JAX are the general-purpose frameworks MLX borrows from; both run on Apple Silicon through Metal backends but treat the Mac as one of many targets, whereas MLX is built around unified memory and lazy evaluation specifically for it. llama.cpp also runs quantized LLMs on Macs with Metal but is a C/C++ inference engine rather than a training framework. Core ML is Apple's deployment runtime for packaged models inside apps; MLX is a research and training library that can also serve models, and Apple positions them as complementary.",22  "categories": [{ "slug": "apple-silicon-ml", "primary": true }, { "slug": "model-training" }, { "slug": "local-inference" }],23  "tags": ["apple-silicon", "macos", "open-source", "python", "swift", "llm", "arrays", "gpu"],24  "use_cases": ["run-local-models", "fine-tune-models", "serve-models"],25  "operating_systems": ["macos", "linux"],26  "execution_modes": ["local"],27  "interfaces": ["library", "sdk"],28  "deployment_models": ["embedded"],29  "integrations": ["Hugging Face Hub", "mlx-lm", "mlx-whisper", "exo", "Swift Package Manager", "pip / conda"],30  "data_formats": ["safetensors", "NumPy arrays", "GGUF (import)"],31  "languages": ["Python", "C++", "Swift"],32  "source_model": "open-source",33  "license_spdx": "MIT",34  "pricing_model": ["open-source", "free"],35  "self_hostable": true,36  "sources": [37    { "url": "https://ml-explore.github.io/mlx/", "type": "official_site", "title": "MLX documentation", "supports": ["name", "summary", "capabilities"], "checked_at": "2026-11-02" },38    { "url": "https://ml-explore.github.io/mlx/build/html/index.html", "type": "official_docs", "title": "MLX — unified memory, lazy evaluation, distributed", "supports": ["capabilities", "languages", "description"], "checked_at": "2026-11-02" },39    { "url": "https://github.com/ml-explore/mlx", "type": "repository", "title": "ml-explore/mlx on GitHub", "supports": ["repo_url", "product_status"], "checked_at": "2026-11-02" },40    { "url": "https://github.com/ml-explore/mlx/blob/main/LICENSE", "type": "license_page", "supports": ["license_spdx", "source_model"], "checked_at": "2026-11-02" }41  ],42  "confidence": "high",43  "discovery_method": "editorial-research",44  "depth": "deep",45  "editorial_status": "reviewed",46  "visibility": "public",47  "featured": true,48  "author": "batch-C"49}50
Files · f05ed656dfb02e05e9363ab635689d5774c375f6
Menu

Theme