Ml Compilers Codegen

Deep expertise in ML compilers and code generation — how models are lowered to fast hardware kernels. Covers the compilation stack (graph capture → high-level IR → optimization passes → lowering → target codegen → runtime), MLIR (dialects, progressive lowering, reusable infrastructure) and StableHLO/HLO as the portable ML IR, XLA/OpenXLA (HLO pipeline, algebraic simplification, layout assignment, operator fusion, buffer assignment, XLA:GPU native-PTX-via-LLVM and Triton emitters, PJRT, AOT vs JIT, shape specialization/recompilation), Triton (tile model, TTIR→TTGIR→LLVM/PTX dialects), fusion in depth (vertical/horizontal/epilogue, FlashAttention, the memory wall), and torch.compile (Dynamo→AOTAutograd→Inductor→Triton), TensorRT, ONNX Runtime, IREE, TVM. Use when reading/debugging IR dumps (HLO, TTIR/TTGIR, FX/Inductor output), chasing recompilation or fusion failures, autotuning, writing a custom kernel/pass, or deciding when the compiler helps vs hurts. This is the compiler/IR/ codegen deep dive beneath ml-fr

sanjeevrg89 946db47 5 files · 43.4 KB Updated

File contents

sanjeevrg89/arete/tree/main/skills/ml-compilers-codegen commit 946db4749e

Frequently asked questions

npx skillmds@latest add sanjeevrg89/ml-compilers-codegen