~/talk

Seamless Integration: Custom Kernels in the Torch.compile Stack Wi...

links:none on file
name:Masaki K
links:none on file
links:none on file
slides:none on file

Transformer Engine integration with torch.compile focuses on eliminating graph breaks by registering kernels as first-class ops so Dynamo sees output metadata and aliases without falling back to eager. Practical steps: wrap kernels with custom_op decorator, supply a fake kernel for tracing, declare mutate_args and autograd rules, and register custom Python configs via the experimental opaque objects API. Result: dozens of graph breaks become a single graph, lost fusion and guard overhead drop (example: 17 vs 8 guard checks), enabling CUDA-graph reduced-overhead paths and the fastest end-to-end runs.

AI-written summary · about

  1. 0:00Custom kernel integration
  2. 1:49Why Transformer Engine is fast
  3. 3:14Torch.compile acceleration
  4. 5:01Problem with graph breaks
  5. 6:25Graph breaks hurt performance
  6. 8:10Guard checks overhead
  7. 9:37Lost fusion from breaks
  8. 10:20TE layers and graph breaks
  9. 11:46Custom op decorator
  10. 12:48In-place semantics in ops
  11. 13:51Opaque objects in Torch.compile
  12. 15:15Opaque objects API
  13. 16:43Autograd for custom ops
  14. 17:45Performance results
  15. 19:34Integration progress
  16. 20:41Q&A on allocation
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.