facebookincubator/aitemplate

AITemplate is a Python framework which renders neural network into high performance CUDA/HIP C++ code. Specialized for FP16 TensorCore (NVIDIA GPU) and...

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 59 minutes ago
Added to GitGenius on September 14th, 2026
Created on July 15th, 2022
Open Issues & Pull Requests: 163 (+0)
GitHub issues: Enabled
Number of forks: 388
Total Stargazers: 4,725 (+0)
Total Subscribers: 82 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 0.0 hours
Mean response time: 38.2 days
90th percentile: 76.5 days
Tracked items: 2

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 6
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 447 days
Stale 30+ days: 6
Stale 90+ days: 4

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

AITemplate is a Python framework that compiles deep neural networks into high-performance CUDA and HIP C++ code for inference serving on NVIDIA and AMD GPUs.

The framework addresses the challenge of achieving near-peak GPU performance for neural network inference by generating specialized code that exploits tensor core and matrix core hardware capabilities. Rather than relying on external libraries like cuBLAS, cuDNN, or TensorRT, AITemplate compiles each model into a self-contained portable binary with no third-party runtime dependencies. The tool employs multiple fusion strategies—horizontal fusion across parallel operations with different shapes, vertical fusion into tensor core operations, and memory fusion combining compute with memory operations—to minimize data movement and maximize throughput. Models can be converted from PyTorch using the FX2AIT tool, which also supports partial acceleration for operators not yet implemented in AITemplate.

Adoption suits teams building inference services where GPU utilization and latency matter more than training flexibility. The framework targets recent GPU hardware, requiring SM80+ for NVIDIA (Ampere and newer) and CDNA2 for AMD, and works seamlessly with PyTorch models while remaining usable in environments without PyTorch installed. The tool's extensibility through Python-based operator definitions and text-based kernel headers makes adding new operators straightforward compared to frameworks requiring deep C++ expertise. FX2AIT's ability to fall back to PyTorch for unsupported operators allows gradual adoption rather than requiring complete model coverage upfront.

Development shows consistent activity with regular commits addressing both core compiler improvements and new operator support. The project maintains active engagement with issues and pull requests, indicating responsiveness to user needs. Documentation includes concrete examples for common use cases such as model conversion and partial lowering strategies. The codebase demonstrates attention to production concerns through its emphasis on portability, self-contained binaries, and compatibility with existing PyTorch workflows.