X. Compilers & Graph Runtimes
Whole-graph compilers and vendor runtimes that turn a model into an optimized executable.
19 entries · 3 subsections
Editor’s pick
X.1 PyTorch Compilation Stack 6
torch.compile Docs
PyTorch's JIT compiler entry point, where TorchDynamo captures Python bytecode into FX graphs and TorchInductor emits Triton or C++.
PyTorch 2: Dynamic Python Bytecode Transformation and Graph Compilation Paper
Design paper for TorchDynamo and TorchInductor, covering guarded graph capture and the code generation behind torch.compile.
torch.export Docs
Ahead-of-time capture of a PyTorch program into one sound graph with symbolic shapes, the input format for AOTInductor and other backends.
AOTInductor Docs
Compiles exported PyTorch programs into a shared library and package that load and run from C++ or Python without recompiling.
Torch-TensorRT Tool
Compiler backend that lowers torch.compile or torch.export graphs to TensorRT engines and falls back to PyTorch for unsupported ops.
Lightning Thunder Tool
Source-to-source PyTorch compiler that traces programs and hands regions to executors such as nvFuser, cuDNN, and torch.compile.
X.2 Vendor Runtimes 7
TensorRT Tool
NVIDIA's inference optimizer and runtime; version 11 removed weakly typed networks, implicit quantization, and IPluginV2.
ONNX Runtime Tool
Cross-platform runtime for ONNX graphs that applies graph optimizations and dispatches to execution providers like CUDA, TensorRT, and QNN.
TensorRT for RTX Tool
Lightweight TensorRT variant for RTX PCs and workstations that finishes engine optimization just-in-time on the end user's GPU.
ONNX Runtime GenAI Library
Generation loop on top of ONNX Runtime with KV cache handling, sampling, and a model builder that exports LLMs to optimized ONNX.
OpenVINO Tool
Intel's toolkit for converting, optimizing, and running models on Intel CPUs, integrated and discrete GPUs, and NPUs.
OpenVINO GenAI Library
C++ and Python pipelines for LLMs, VLMs, Whisper, and image generation on OpenVINO, with continuous batching and speculative decoding.
MIGraphX Tool
AMD's graph compiler for ROCm that imports ONNX models, fuses operators, and tunes kernels for Instinct and Radeon GPUs.
X.3 Open Compiler Stacks 6
XLA Tool
Compiler behind JAX and TensorFlow, also usable from PyTorch, that turns StableHLO graphs into fused code for TPUs, GPUs, and CPUs.
Apache TVM Tool
Python-first ML compilation framework with the Relax graph IR and a tensor-level IR, used underneath MLC LLM and WebLLM.
IREE Tool
MLIR-based compiler and runtime that lowers models to one IR and deploys them from datacenter GPUs down to mobile and edge devices.
MLIR Library
LLVM subproject providing reusable IR dialects and pass infrastructure that many ML compilers, Triton and IREE included, are built on.
StableHLO Spec
Versioned operation set that acts as the portability layer between JAX, PyTorch, and TensorFlow and compilers such as XLA and IREE.
Luminal Tool
Rust inference compiler that reduces models to a small set of primitive ops and searches over rewrites to discover fused kernels.