MLC LLM compiles and runs large language models through MLCEngine across GPUs, desktops, mobile, and browsers. It exposes an OpenAI-compatible API via REST, Python, JavaScript, iOS, and Android.
Overview
MLC LLM combines a machine learning compiler with a deployment engine aimed at running LLMs natively on many hardware targets. Supported backends include Vulkan and ROCm on AMD, Vulkan and CUDA on NVIDIA, Metal on Apple GPUs, Vulkan on Intel, WebGPU with WASM in browsers, and OpenCL on common Android GPUs.
MLCEngine serves as a unified inference layer across those environments. The same compiled models can be driven from a REST server, Python or JavaScript bindings, or mobile SDKs, all sharing one compiler stack that the project continues to refine with contributors.
The stated mission is to let people develop, optimize, and deploy AI models on their own platforms without tying inference to a single vendor stack. Documentation covers installation, quick starts, and introductory guides; a related WebLLM project focuses on in-browser inference.
Teams adopt it when they need portable LLM performance from edge devices and laptops through server GPUs and web clients.
Key features
- ML compilation for LLM models
- Unified MLCEngine inference runtime
- OpenAI-compatible REST and SDK APIs
- AMD, NVIDIA, Apple, and Intel GPU backends
- WebGPU and WASM browser path
- iOS Metal and Android OpenCL support
- Python and JavaScript integrations
Use cases
- On-device LLM inference on phones
- Local GPU deployment on Linux or Windows
- Browser-based model serving via WebGPU
- Cross-platform apps with one compiled model