Local LLM runnersApache-2.0Python

MLC LLM

Compile and run LLMs natively on GPUs, phones and browsers.

Stars
23.4K
Forks
2.2K
Open issues
369
Last commit
2026-11-21

Live from the GitHub API · updated 2026-11-30

What is MLC LLM?

MLC LLM is a machine-learning compiler and engine that deploys models on CUDA, ROCm, Vulkan, Metal, iOS, Android and WebGPU from one codebase. It exposes an OpenAI-compatible REST server, Python API and mobile SDKs.

Key features

  • Runs on NVIDIA, AMD, Apple, Intel and mobile GPUs
  • WebLLM for in-browser inference
  • OpenAI-compatible server
  • iOS and Android SDKs

System requirements

Platforms
Windows · macOS · Linux
GPU
Optional; any supported GPU backend
Python
3.9+

How to install MLC LLM

Summarized from the project’s README. Projects change quickly — check the GitHub page for the latest instructions.

Prebuilt wheels

  1. 1
    Install the nightly CPU wheels (see the docs for CUDA/ROCm/Metal variants).
    pip install --pre -U -f https://mlc.ai/wheels mlc-llm-nightly-cpu mlc-ai-nightly-cpu
  2. 2
    Chat with a prebuilt quantized model.
    mlc_llm chat HF://mlc-ai/Llama-3.2-1B-Instruct-q4f16_1-MLC

Strengths

  • Broadest hardware coverage
  • Mobile and browser deployment

Limitations

  • Models need MLC-compiled weights

MLC LLM alternatives compared

SoftwareStarsLicensePlatformsVRAM
MLC LLM

Compile and run LLMs natively on GPUs, phones and browsers.

23.4KApache-2.0—
llama.cpp

LLM inference in C/C++ — the engine behind most local AI apps.

136.7KMIT—
Ollama

Get up and running with large language models locally.

188.6KMIT—
vLLM

High-throughput LLM serving engine with PagedAttention.

97.9KApache-2.0—
Jan

Open-source ChatGPT-style desktop app that runs 100% offline.

46.3KAGPL-3.0—
GPT4All

Private, on-device chat with local document Q&A.

77.3KMIT—

FAQ

Is MLC LLM free?

Yes — MLC LLM is open-source software released under the Apache-2.0 license. Check the license (and any model weight licenses) before commercial use.

Does MLC LLM run on Windows, Mac and Linux?

MLC LLM supports: Windows, macOS, Linux.

What hardware do I need for MLC LLM?

Optional; any supported GPU backend

How do I install MLC LLM?

1. Install the nightly CPU wheels (see the docs for CUDA/ROCm/Metal variants). 2. Chat with a prebuilt quantized model.

What are the best MLC LLM alternatives?

Popular alternatives include llama.cpp, Ollama, vLLM, Jan. See the comparison table on this page.