tvm  by apache

Compiler stack for deep learning systems

created 8 years ago
12,492 stars

Top 4.0% on sourcepulse

GitHubView on GitHub
Project Summary

Apache TVM is an open-source compiler stack designed to bridge the gap between high-level deep learning frameworks and diverse hardware backends, enabling optimized execution across CPUs, GPUs, and specialized accelerators. It serves researchers and developers seeking to maximize performance and efficiency for machine learning models.

How It Works

TVM operates by providing an end-to-end compilation flow for deep learning models. Its core innovation lies in its cross-level design, featuring TensorIR for tensor-level representation and Relax for graph-level representation. This allows for joint optimization of computational graphs, tensor programs, and libraries, with a focus on Python-first transformations for enhanced accessibility and customizability.

Quick Start & Requirements

Highlighted Details

  • End-to-end compilation for deep learning systems.
  • Cross-level design with TensorIR (tensor-level) and Relax (graph-level) representations.
  • Python-first transformations for accessibility and customization.
  • Foundation for building domain-specific vertical compilers (e.g., for LLMs).

Maintenance & Community

TVM follows the Apache committer model, aiming for community-driven maintenance. Further details can be found in the Contributor Guide.

Licensing & Compatibility

TVM is licensed under the Apache-2.0 license, permitting commercial use and integration with closed-source projects.

Limitations & Caveats

The project's design has evolved significantly from its initial research origins, with the current version focusing on TensorIR and Relax.

Health Check
Last commit

14 hours ago

Responsiveness

1 day

Pull Requests (30d)
66
Issues (30d)
16
Star History
268 stars in the last 90 days

Explore Similar Projects

Starred by Jeremy Howard Jeremy Howard(Cofounder of fast.ai) and Stas Bekman Stas Bekman(Author of Machine Learning Engineering Open Book; Research Engineer at Snowflake).

SwissArmyTransformer by THUDM

0.3%
1k
Transformer library for flexible model development
created 3 years ago
updated 7 months ago
Starred by Stas Bekman Stas Bekman(Author of Machine Learning Engineering Open Book; Research Engineer at Snowflake) and Travis Fischer Travis Fischer(Founder of Agentic).

lingua by facebookresearch

0.1%
5k
LLM research codebase for training and inference
created 9 months ago
updated 2 weeks ago
Feedback? Help us improve.