Open deep learning compiler stack for cpu, gpu and specialized accelerators

Clone this repo:
  1. 4454f8d [Web]Allows setting powerPreference on webgpu (#17545) by Marcos Scheeren · 12 hours ago main
  2. f717c56 [Refactor] Phase out microTVM (#17554) by Siyuan Feng · 14 hours ago
  3. 513c2be [LLVM] Make compilable with LLVM-20 (#17547) by Renat Idrisov · 8 days ago nightly
  4. d94f115 [FIX][LLVM] Workaround -mcpu=apple-latest for llvm above 18.0 (#17492) (#17549) by Balint Cristian · 11 days ago
  5. 7ae7ea8 [LLVM][RUNTIME] Make ORCJIT LLVM executor the default one (#17538) by Balint Cristian · 2 weeks ago

Open Deep Learning Compiler Stack

Documentation | Contributors | Community | Release Notes

Build Status WinMacBuild

Apache TVM is a compiler stack for deep learning systems. It is designed to close the gap between the productivity-focused deep learning frameworks, and the performance- and efficiency-focused hardware backends. TVM works with deep learning frameworks to provide end to end compilation to different backends.

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 apache committer model, we aim to create an open source project that is maintained and owned by the community. Check out the Contributor Guide.

Acknowledgement

We learned a lot from the following projects when building TVM.

  • Halide: Part of TVM's TIR and arithmetic simplification module originates from Halide. We also learned and adapted some part of 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.