tvm

apacheApache-2.0活跃维护

把深度学习模型编译到 CPU、GPU 及各类加速器上运行的开源编译器框架,通过统一中间表示和自动调优提升推理性能。

Open Machine Learning Compiler Framework

v0.27.0.post1发布于 2026-09-29 19:11 UTC13,895star +3 / 7 天4,045fork同步于 2026-11-10 05:27 UTC

怎么上手

由 README 提炼,执行前请确认
README 未给出安装命令,安装步骤见官方文档 https://tvm.apache.org/docs/
硬件要求按 README 说明

README 未说明

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

开源机器学习编译框架,用 Python 把模型编译成最小可部署模块

把深度学习模型编译到 CPU、GPU 及各类加速器上运行的开源编译器框架,通过统一中间表示和自动调优提升推理性能。

核心能力

  • 以 TensorIR 做张量级表示、Relax 做图级表示
  • 跨层联合优化计算图、张量程序与库
  • Python-first 开发,编译流水线可在 Python 中定制
  • 支持把模型打包成最小可部署模块
  • 可作为构建 LLM 等领域垂直编译器的基础设施

容易踩的坑

README 未提供安装命令,需按官方文档自行编译或安装;具体依赖与后端要求 README 未说明

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

最近发版

5 个版本v0.27.0.post1
  1. v0.27.0.post1最新正式版2026-09-29 · 2026-09-29 19:11 UTC

    What's Changed

    Full Changelog: https://github.com/apache/tvm/compare/v0.27.0.rc1...v0.27.0.post1

  2. v0.27.02026-09-25 · 2026-09-25 18:40 UTC
    查看更新说明

    What's Changed

  3. v0.27.0.rc1pre-release2026-09-22 · 2026-09-22 03:24 UTC
    查看更新说明

    What's Changed

  4. v0.27.0.rc0pre-release2026-09-19 · 2026-09-19 03:30 UTC
    查看更新说明

    What's Changed

  5. v0.26.02026-08-11 · 2026-08-11 01:02 UTC
    查看更新说明

    What's Changed

用户点评

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

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

    README 原文

    未翻译

    <img src=https://raw.githubusercontent.com/apache/tvm-site/main/images/logo/tvm-logo-small.png width=128/> Open Machine Learning Compiler Framework

    Documentation | Contributors | Community | Release Notes

    Apache TVM is an open machine learning compilation framework, following the following principles:

    • Python-first development that enables quick customization of machine learning compiler pipelines.
    • Universal deployment to bring models into minimum deployable modules.

    License

    TVM is licensed under the Apache-2.0 license.

    Getting Started

    Check out the TVM Documentation site for installation instructions, tutorials, examples, and more. The Getting Started with TVM tutorial is a great place to start.

    Contribute to TVM

    TVM adopts the Apache committer model. We aim to create an open-source project maintained and owned by the community. Check out the Contributor Guide.

    History and Acknowledgement

    TVM started as a research project for deep learning compilation. The first version of the project benefited a lot from the following projects:

    • Halide: Part of TVM's TIR and arithmetic simplification module originates from Halide. We also learned and adapted some parts of the lowering pipeline from Halide.
    • Loopy: use of integer set analysis and its loop transformation primitives.
    • Theano: the design inspiration of symbolic scan operator for recurrence.

    Since then, the project has gone through several rounds of redesigns. The current design is also drastically different from the initial design, following the development trend of the ML compiler community.

    The most recent version focuses on a cross-level design with TensorIR as the tensor-level representation and Relax as the graph-level representation and Python-first transformations. The project's current design goal is to make the ML compiler accessible by enabling most transformations to be customizable in Python and bringing a cross-level representation that can jointly optimize computational graphs, tensor programs, and libraries. The project is also a foundation infra for building Python-first vertical compilers for domains, such as LLMs.