apache/tvm

Open Machine Learning Compiler Framework

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 25 minutes ago
Added to GitGenius on June 21st, 2026
Created on October 12th, 2016
Open Issues & Pull Requests: 241 (-2)
GitHub issues: Enabled
Number of forks: 3,967
Total Stargazers: 13,725 (-1)
Total Subscribers: 368 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 7.2 days
Mean response time: 205.2 days
90th percentile: 834.1 days
Tracked items: 1,147

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 99% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Work labelled "type: doc" is answered fastest, typically in about 16 hours, while "dev:ci" waits about 24 months. 48% of tracked open issues have had no activity in three months. Only 7% of issues opened in the past year have been closed.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 174
New in 7 days: 13
Closed in 7 days: 7
Avg open age: 216 days
Stale 30+ days: 134
Stale 90+ days: 113

Recent activity

Opened in 7 days: 13
Closed in 7 days: 6
Comments in 7 days: 2
Events in 7 days: 30

Top labels

  • type: bug (899)
  • needs-triage (820)
  • type:rfc-tracking (60)
  • status:stale (56)
  • dev:ci (54)
  • type: doc (33)
  • type:ci (31)
  • vert:micro (25)

Detailed Description

Apache TVM is an open-source machine learning compilation framework developed under the Apache Software Foundation. Written primarily in Python, it provides a comprehensive platform for compiling and optimizing machine learning models across diverse hardware targets including GPUs, CPUs, mobile devices, and specialized accelerators. The framework supports compilation to multiple backend targets including CUDA, Metal, OpenCL, ROCm, SPIR-V, and Vulkan, enabling deployment of neural networks on virtually any hardware platform.

The core design philosophy of TVM centers on Python-first development, allowing researchers and engineers to quickly customize and extend machine learning compiler pipelines without requiring deep systems programming knowledge. The framework emphasizes universal deployment, aiming to transform trained models into minimal, optimized deployable modules suitable for production environments. TVM's architecture has evolved significantly from its origins as a research project, with the current design incorporating TensorIR as a tensor-level intermediate representation and Relax as a graph-level representation, enabling joint optimization across computational graphs, tensor programs, and library calls.

TVM's functionality spans multiple layers of the compilation stack. It handles automatic code generation, tensor computation optimization, and runtime system management. The framework enables hardware acceleration through specialized compiler passes and transformations that adapt general neural network operations to specific hardware characteristics. Performance tuning is built into the compilation process, with the system automatically searching for optimal implementations across different hardware backends.

The project maintains active development with significant community engagement.

TVM's design draws historical inspiration from several influential projects. The tensor intermediate representation and arithmetic simplification modules incorporate concepts from Halide, while loop transformation primitives derive from Loopy. The symbolic scan operator design was influenced by Theano. However, the project has undergone multiple redesigns, with the current architecture representing a significant departure from earlier versions to align with contemporary ML compiler community developments.

The framework positions itself as foundational infrastructure for building Python-first vertical compilers specialized for specific domains, particularly large language models. By making most compiler transformations customizable through Python rather than requiring low-level systems programming, TVM democratizes access to advanced compilation techniques. The cross-level representation design enables simultaneous optimization of high-level computational graphs and low-level tensor operations, addressing a key challenge in modern machine learning deployment where performance depends on coordinated optimization across multiple abstraction levels.