~/lightning

Lightning Talk: Dynamic Shape Recompilations

Lightningat PyTorch Conference 2025 · 2025-10-22..10-23· [frontend-architecture]
name:Bob Ren
links:none on file
slides:none on file

Explains when recompilations from dynamic shapes are worth the cost with concrete numbers: a 20 ms kernel win invoked 100 times nets 2 s but loses to a 5 s compile, while a 5 ms win invoked 8,000 times pays off; unpredictable guards (example: fast path only if batch size divisible by 8) cause recompiles as shapes like 5,6,7 then 8 trigger new kernels; distributed runs (100 GPUs) stall for single-GPU recompiles and can hit >10 minute nickel timeouts. Covers mark_dynamic usage, mark_unbacked as an error-on-specialization guard, and guarded recompilation trade-offs.

AI-written summary · about

~/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.