Google, IBM & Meta Certificates – 40% Off a Year
One Coursera Plus subscription covers most Professional Certificates on Coursera. 40% off a full year through Dec 2.
Unlock All Certificates
A PyTorch model passes through several compiler stages before it runs on an accelerator, and each stage makes decisions that change what the hardware executes. In this course you will follow a model through that stack and connect each compiler decision to the kernels that run on the device.
You will study the PyTorch 2 compilation path through TorchDynamo, AOTAutograd, and TorchInductor, including graph breaks, guards, and recompilation. You will then examine the intermediate representations and compiler passes that matter most for accelerators: decomposition, fusion, tiling, layout, scheduling, and code generation.
The course compares three compiler stacks on the same classes of problems: TorchInductor with Triton on GPUs, XLA with HLO on TPUs, and the Spyre compilation stack with SuperDSC and the emerging KTIR representation. Worked examples show how a feed-forward layer is mapped across Spyre cores and how one attention graph is handled by XLA and torch-spyre.
In the lab, you will benchmark eager and compiled execution, inspect a captured graph, repair a graph break, and connect compiler artifacts to the code your run produced. A 18-question graded quiz at the end covers every module of the course.