Inference Engineering

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

  1. torch.compile Docs

    PyTorch's JIT compiler entry point, where TorchDynamo captures Python bytecode into FX graphs and TorchInductor emits Triton or C++.

  2. 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.

    ASPLOS 2024 · Code

  3. 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.

  4. AOTInductor Docs

    Compiles exported PyTorch programs into a shared library and package that load and run from C++ or Python without recompiling.

  5. Torch-TensorRT Tool

    Compiler backend that lowers torch.compile or torch.export graphs to TensorRT engines and falls back to PyTorch for unsupported ops.

    BSD-3-Clause · 3k stars · Updated 2026-11

  6. Lightning Thunder Tool

    Source-to-source PyTorch compiler that traces programs and hands regions to executors such as nvFuser, cuDNN, and torch.compile.

    Apache-2.0 · 1.5k stars · Updated 2026-10

X.2 Vendor Runtimes 7

  1. TensorRT Tool

    NVIDIA's inference optimizer and runtime; version 11 removed weakly typed networks, implicit quantization, and IPluginV2.

    proprietary · 13k stars · Updated 2026-11

  2. ONNX Runtime Tool

    Cross-platform runtime for ONNX graphs that applies graph optimizations and dispatches to execution providers like CUDA, TensorRT, and QNN.

  3. 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.

    proprietary · 117 stars · Updated 2026-10

  4. 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.

  5. OpenVINO Tool

    Intel's toolkit for converting, optimizing, and running models on Intel CPUs, integrated and discrete GPUs, and NPUs.

    Apache-2.0 · 12k stars · Updated 2026-11

  6. OpenVINO GenAI Library

    C++ and Python pipelines for LLMs, VLMs, Whisper, and image generation on OpenVINO, with continuous batching and speculative decoding.

    Apache-2.0 · 624 stars · Updated 2026-11

  7. MIGraphX Tool

    AMD's graph compiler for ROCm that imports ONNX models, fuses operators, and tunes kernels for Instinct and Radeon GPUs.

    MIT · 341 stars · Updated 2026-11

X.3 Open Compiler Stacks 6

  1. XLA Tool

    Compiler behind JAX and TensorFlow, also usable from PyTorch, that turns StableHLO graphs into fused code for TPUs, GPUs, and CPUs.

    Apache-2.0 · 4.7k stars · Updated 2026-11

  2. Apache TVM Tool

    Python-first ML compilation framework with the Relax graph IR and a tensor-level IR, used underneath MLC LLM and WebLLM.

    Apache-2.0 · 14k stars · Updated 2026-11

  3. 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.

    Apache-2.0 · 4k stars · Updated 2026-11

  4. MLIR Library

    LLVM subproject providing reusable IR dialects and pass infrastructure that many ML compilers, Triton and IREE included, are built on.

    Apache-2.0 · 42k stars · Updated 2026-11

  5. StableHLO Spec

    Versioned operation set that acts as the portability layer between JAX, PyTorch, and TensorFlow and compilers such as XLA and IREE.

    Apache-2.0 · 730 stars · Updated 2026-11

  6. Luminal Tool

    Rust inference compiler that reduces models to a small set of primitive ops and searches over rewrites to discover fused kernels.

    experimental · Apache-2.0 · 3.1k stars · Updated 2026-11