~/talk

Enabling State-of-the-art Asynchronous Execution in Torch.compile With CUDA Streams

links:none on file
slides:none on file

Adds native CUDA stream support to torch.compile (Dynamo → AOT Autograd → TorchInductor) so eager-style stream context managers become symbolic stack state, stream/event table entries and IR ops, with backward-pass stream propagation, inserted record/wait synchronization, fusion and buffer-reuse restrictions, and a sync dealloc op for safe cross-stream deallocation. Enables microbatch overlapping and activation offloading with measured results: up to ~30–40% peak memory savings at large model scale while runtime overhead drops as model compute increases.

AI-written summary · about

  1. 0:00Introduction
  2. 1:02CUDA streams and use cases
  3. 2:30Stream integration architecture
  4. 3:31Tracking streams in Torch Dynamo
  5. 4:55Streams as graph inputs
  6. 6:59AOT Autograd sync
  7. 9:04Preventing node reordering
  8. 10:50Functionalization and mutation
  9. 14:08Stream-aware kernel fusion
  10. 14:49Cross-stream memory safety
  11. 17:15Microbatch overlapping
  12. 18:19Activation offloading
  13. 19:21Activation offloading results
  14. 20:25Availability and eager mode
  15. 21:18Q&A
~/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.