本地大模型运行Apache-2.0Python

MLC LLM

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

Star 数
23.4K
Fork 数
2.2K
未关闭 Issue
369
最近提交
2026-11-21

数据来自 GitHub API · 更新于 2026-11-30

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.

主要功能

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

系统要求

平台
Windows · macOS · Linux
显卡
Optional; any supported GPU backend
Python
3.9+

如何安装 MLC LLM

根据项目 README 整理。开源项目更新很快,请以 GitHub 页面上的最新说明为准。

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

优势

  • Broadest hardware coverage
  • Mobile and browser deployment

不足

  • Models need MLC-compiled weights

MLC LLM 替代品对比

软件Star 数许可证平台显存
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—

常见问题

MLC LLM 免费吗?

是的——MLC LLM 是开源软件,采用 Apache-2.0 许可证。商用前请确认软件及模型权重的许可条款。

MLC LLM 支持 Windows、Mac 和 Linux 吗?

MLC LLM 支持:Windows, macOS, Linux。

运行 MLC LLM 需要什么配置?

Optional; any supported GPU backend

如何安装 MLC LLM?

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

MLC LLM 有哪些好的替代品?

常见替代品包括 llama.cpp, Ollama, vLLM, Jan,详见本页对比表。