LibreAI / Local LLM / mlc-llm
// local-llm · mlc-ai/mlc-llm

mlc-llm

Compile and run LLMs anywhere - phones, laptops, browsers and GPUs - with one engine

★ 23.2k stars⑂ 2.1k forksApache-2.0updated 2026-10
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

mlc-llm is an open-source local llm project by mlc-ai (mlc-ai/mlc-llm on GitHub). It has 23,213 GitHub stars and 2,148 forks, is released under the Apache-2.0 license, and was last updated on GitHub on 6 October 2026.

Repository
mlc-ai/mlc-llm
GitHub stars
23,213
Forks
2,148
License
Apache-2.0
Last updated on GitHub
6 October 2026
Category
Local LLM
Listing
Full install guide
Official site
Official site
// how it works

How it works

  1. Pick your target platform

    Decide where the model must run - NVIDIA or AMD GPU, Apple Silicon, mobile, or WebGPU in the browser.

  2. Get MLC LLM

    Clone the repository and follow the platform-specific installation guide linked from the README.

  3. Install and configure

    Install the compiled runtime for your platform and download or convert the model you want to serve.

  4. Run your first chat

    Start MLCEngine with your model and send a chat request through the REST server or language API.

// features

Why people love it

ML compilation for LLMs

Compiles models for each target so they run natively instead of through a generic interpreter.

One unified engine

MLCEngine provides the same high-performance inference core across all supported platforms.

OpenAI-compatible REST API

Serve models behind an OpenAI-style API, with Python, JavaScript, iOS and Android interfaces on the same engine.

Broad GPU support

Runs on NVIDIA (CUDA, Vulkan), AMD (ROCm, Vulkan), Apple (Metal) and Intel (Vulkan) GPUs depending on platform.

Mobile deployment

Deploy on iOS and iPadOS via Metal and on Android via OpenCL on Adreno and Mali GPUs.

Browser deployment

The platform matrix includes web browsers via WebGPU and WASM, with the related WebLLM project for in-browser use.

Advertisement
// run it

Run it yourself

  1. Clone the repository

    Get the source code from GitHub and enter the project directory.

    git clone https://github.com/mlc-ai/mlc-llm.git
    cd mlc-llm
  2. Install MLC LLM

    The README links to platform-specific install docs rather than one universal command, so follow the guide for your OS and GPU.

    # Follow the installation guide for your platform - see the docs link in the README
  3. Run the quick start

    The documentation's quick start walks through downloading a model and chatting with it via MLCEngine.

    # Follow the quick start in the docs linked from the README
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains this project?

It is developed by the MLC AI community (the team behind TVM's machine learning compilation work) on GitHub.

Is it free to use?

Yes - MLC LLM is Apache-2.0 licensed and free to use, including commercially, under that license's terms.

Does it need a paid API key?

No paid API key is required: MLC LLM runs open models locally on your own hardware. You only need model weights, which are downloaded from sources such as Hugging Face.

How does it compare to alternatives?

Compared with Ollama, which focuses on easy local serving, MLC LLM is a compiler stack that targets many more platforms - mobile and browsers included. Compared with vLLM, it trades a server-only focus for cross-platform reach.

How do I get started?

Clone the repo, then follow the installation and quick start pages linked from the README for your platform, and run the documented first chat example.

// keep exploring

Similar tools

Local LLM

nobodywho

Lightweight inference engine for running LLMs efficiently on any device.

★ 1.5k starsEUPL-1.2
View guide →
Local LLM

airllm

Run a 70B LLM on a single 4GB GPU — layer-by-layer inference with almost no memory tricks skipped

★ 35.5k starsApache-2.0
View guide →
Local LLM

llamafile

Distribute and run LLMs with a single file.

★ 26.2k starsUnknown
View guide →
Local LLM

lemonade

Discover and run local AI apps, serving optimized LLMs from your own GPU and NPU.

★ 5.8k starsApache-2.0
View guide →
Local LLM

TokenSpeed

TokenSpeed — a speed-of-light LLM inference engine designed for agentic workloads, with TensorRT-LLM-level performance and vLLM-level usability

★ 2.5k starsMIT
View guide →
Local LLM

claude-real-video

Let any LLM actually watch a video — frames plus transcript, run locally.

★ 2.2k starsMIT
View guide →
// alternatives

Alternatives in Local LLM

The most-starred other Local LLM projects in the LibreAI catalogue — the realistic shortlist if mlc-llm is not the right fit.

Get mlc-llm

Free and open — grab the source, star the repo, and start creating.