About MLC LLM
MLC LLM is a machine learning compiler and deployment engine for large language models. Its mission is to let people develop, optimize and deploy AI models natively on the platforms they already use. It is written in Python, built on machine learning compilation techniques related to TVM, and released under the Apache-2.0 license.
Code is compiled and run on MLCEngine, a unified inference engine that targets many platforms: AMD GPUs through Vulkan and ROCm, NVIDIA GPUs through Vulkan and CUDA, Apple GPUs through Metal, Intel GPUs, web browsers through WebGPU and WASM, iOS and iPadOS through Metal, and Android through OpenCL on Adreno and Mali GPUs. MLCEngine provides an OpenAI-compatible API available through a REST server and through Python, JavaScript, iOS and Android bindings, all backed by the same engine and compiler. The documentation covers installation and a quick start.
Key features
- Compiler and engine for LLM deployment
- Targets AMD, NVIDIA, Apple and Intel GPUs
- Runs in browsers via WebGPU and WASM
- iOS and Android deployment
- OpenAI-compatible API through REST server
- Python and JavaScript bindings
Good fit for
- →Running LLMs on-device on phones
- →Serving models behind an OpenAI-style API
- →In-browser inference without a server
- Built with
- Python
- Tags
- llm
- inference
- ml-compilation
- tvm
- webgpu
- mobile
- gpu
- openai-compatible
MLC LLM: questions and answers
- What is MLC LLM used for?
- MLC LLM is a machine learning compiler and inference engine that deploys large language models on GPUs, phones and web browsers. It is a good fit for running LLMs on-device on phones, serving models behind an OpenAI-style API and in-browser inference without a server.
- Is MLC LLM open source?
- Yes. MLC LLM is open source under the Apache-2.0 licence. Its source code is on GitHub at mlc-ai/mlc-llm and is written mainly in Python.
- Is MLC LLM free?
- Yes. MLC LLM is open source, so the software itself is free to use.
- Can I self-host MLC LLM?
- Yes. MLC LLM can be self-hosted on your own server or infrastructure; there is no official hosted version.
- What are some alternatives to MLC LLM?
- Similar open-source tools in the AI Infrastructure category include llama.cpp, SGLang and Ollama. SaaS products in the same category include AI Stats, Cloudflare Workers AI and NVIDIA AI Enterprise.
- Is MLC LLM actively maintained?
- Yes. The most recent commit to MLC LLM was on 1 October 2026. The project has 23k stars on GitHub.
Open-source alternatives to MLC LLM
See all
llama.cpp
AI Infrastructure
LLM inference in C/C++
MITvs OpenAI API Platform★ 130k
SGLang
AI Infrastructure
SGLang is a high-performance serving framework for large language models and multimodal mo
Apache-2.0vs Amazon Bedrock★ 37k
Ollama
AI Infrastructure
Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other model
MITvs ChatGPT★ 182k
vLLM
AI Infrastructure
A high-throughput and memory-efficient inference and serving engine for LLMs
Apache-2.0vs Amazon Bedrock★ 93k
LiteLLM
AI Infrastructure
The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (o
OSSvs Amazon Bedrock★ 60k
LocalAI
AI Infrastructure
LocalAI is the open-source AI engine. Run any model - LLMs, vision, voice, image, video -
MITvs ChatGPT★ 49k
SaaS alternatives to MLC LLM
See allAI Stats
AI Infrastructure
Database of AI models plus an OpenAI-compatible gateway with usage, pricing and reliability monitoring
SaaS
Cloudflare Workers AI
AI Infrastructure
Serverless inference service for running AI models on Cloudflare's network
SaaS
NVIDIA AI Enterprise
AI Infrastructure
Software suite of NIM microservices, frameworks and tools for running production AI
SaaS
AllToken
AI Infrastructure
Unified API gateway to LLMs from OpenAI, Anthropic and Google with usage tracking and routing
SaaS
Amazon Bedrock
AI Infrastructure
Managed AWS service for building generative AI apps with models from several providers
SaaS
AnyRouter
AI Infrastructure
Unified LLM gateway that routes coding agents and MCP servers through a single endpoint
SaaS

