~/talk

What's New for Dynamic Shapes in PyTorch 2.1

Talkat PyTorch Conference 2023 · 2023-10-16..10-17· [machine-learning]
links:none on file
slides:none on file

PyTorch 2.1 moves dynamic shapes to Beta: dynamic detection is now automatic (first compile specializes, later runs upgrade changing dims), and training with variable batch sizes works; logging and export report which dims become dynamic and why. New APIs let users force MarkDynamic/MarkStatic on tensor dims, and there is cograph recordings support that reuses memory across recordings. Data-dependent ops like item and nonzero are still mainly on nightly. Performance is slightly worse than static; warm up on representative sizes to avoid suboptimal kernels.

AI-written summary · about

  1. 0:00Dynamic shapes in PyTorch 2.1
  2. 2:08Dynamic shapes Beta in PyTorch 2.1
  3. 3:32torch.compile for dynamic shapes
  4. 7:47MarkDynamic and MarkStatic
  5. 8:08Cograph support
  6. 9:10Dynamic shapes performance
  7. 12:01Dynamic shapes in torch.export
  8. 14:29Data-dependent operations
  9. 19:232024 roadmap
  10. 20:48Q&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.