mlc-llm

mlc-aiApache-2.0活跃维护

通用大模型部署引擎,借助机器学习编译技术把 LLM 高效跑在各种硬件上,从手机到服务器都能用。

Universal LLM Deployment Engine with ML Compilation

v0.1.dev0发布于 2023-04-29 03:31 UTC23,319star +9 / 7 天2,165fork同步于 2026-11-10 17:23 UTC

怎么上手

由 README 提炼,执行前请确认
README 未给出安装命令,请参考文档 https://llm.mlc.ai/docs/install/mlc_llm
硬件要求按 README 说明

README 未给出具体显存要求;支持 AMD(Vulkan/ROCm)、NVIDIA(Vulkan/CUDA)、Apple(Metal)、Intel(Vulkan/Metal)GPU,以及浏览器 WebGPU/WASM、iOS Metal、Android Adreno/Mali OpenCL。

需要 CUDA支持 ROCm / AMD
下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

用机器学习编译把大模型原生部署到各类硬件平台的通用推理引擎

通用大模型部署引擎,借助机器学习编译技术把 LLM 高效跑在各种硬件上,从手机到服务器都能用。

核心能力

  • 用 ML 编译把模型编译到目标硬件原生运行
  • 统一 MLCEngine 覆盖桌面、移动端与浏览器
  • 提供 OpenAI 兼容 API,支持 REST 与 Python/JS
  • 同一引擎支持 iOS、Android 与 WebGPU/WASM

容易踩的坑

README 未说明安装步骤与依赖,需按官方文档安装并可能需额外下载/编译模型;不同平台需选对应后端(如 CUDA、Vulkan、Metal、WebGPU)。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

1 个版本v0.1.dev0
  1. v0.1.dev0pre-release最新正式版2023-04-29 · 2023-04-29 03:31 UTC

    这个版本没有写更新说明。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    MLC LLM

    Installation License Join Discoard Related Repository: WebLLM

    Universal LLM Deployment Engine with ML Compilation

    Get Started | Documentation | Blog

    About

    MLC LLM is a machine learning compiler and high-performance deployment engine for large language models. The mission of this project is to enable everyone to develop, optimize, and deploy AI models natively on everyone's platforms. 

    MLC LLM compiles and runs code on MLCEngine -- a unified high-performance LLM inference engine across the above platforms. MLCEngine provides OpenAI-compatible API available through REST server, python, javascript, iOS, Android, all backed by the same engine and compiler that we keep improving with the community.

    Get Started

    Please visit our documentation to get started with MLC LLM.

    Citation

    Please consider citing our project if you find it useful:

    @software{mlc-llm,
        author = {{MLC team}},
        title = {{MLC-LLM}},
        url = {https://github.com/mlc-ai/mlc-llm},
        year = {2023-2025}
    }
    

    The underlying techniques of MLC LLM include:

    @inproceedings{tensorir,
        author = {Feng, Siyuan and Hou, Bohan and Jin, Hongyi and Lin, Wuwei and Shao, Junru and Lai, Ruihang and Ye, Zihao and Zheng, Lianmin and Yu, Cody Hao and Yu, Yong and Chen, Tianqi},
        title = {TensorIR: An Abstraction for Automatic Tensorized Program Optimization},
        year = {2023},
        isbn = {9781450399166},
        publisher = {Association for Computing Machinery},
        address = {New York, NY, USA},
        url = {https://doi.org/10.1145/3575693.3576933},
        doi = {10.1145/3575693.3576933},
        booktitle = {Proceedings of the 28th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2},
        pages = {804–817},
        numpages = {14},
        keywords = {Tensor Computation, Machine Learning Compiler, Deep Neural Network},
        location = {Vancouver, BC, Canada},
        series = {ASPLOS 2023}
    }
    
    @inproceedings{metaschedule,
        author = {Shao, Junru and Zhou, Xiyou and Feng, Siyuan and Hou, Bohan and Lai, Ruihang and Jin, Hongyi and Lin, Wuwei and Masuda, Masahiro and Yu, Cody Hao and Chen, Tianqi},
        booktitle = {Advances in Neural Information Processing Systems},
        editor = {S. Koyejo and S. Mohamed and A. Agarwal and D. Belgrave and K. Cho and A. Oh},
        pages = {35783--35796},
        publisher = {Curran Associates, Inc.},
        title = {Tensor Program Optimization with Probabilistic Programs},
        url = {https://proceedings.neurips.cc/paper_files/paper/2022/file/e894eafae43e68b4c8dfdacf742bcbf3-Paper-Conference.pdf},
        volume = {35},
        year = {2022}
    }
    
    @inproceedings{tvm,
        author = {Tianqi Chen and Thierry Moreau and Ziheng Jiang and Lianmin Zheng and Eddie Yan and Haichen Shen and Meghan Cowan and Leyuan Wang and Yuwei Hu and Luis Ceze and Carlos Guestrin and Arvind Krishnamurthy},
        title = {{TVM}: An Automated {End-to-End} Optimizing Compiler for Deep Learning},
        booktitle = {13th USENIX Symposium on Operating Systems Design and Implementation (OSDI 18)},
        year = {2018},
        isbn = {978-1-939133-08-3},
        address = {Carlsbad, CA},
        pages = {578--594},
        url = {https://www.usenix.org/conference/osdi18/presentation/chen},
        publisher = {USENIX Association},
        month = oct,
    }