~/talk

torch.compile Practice and Optimization in Different Scenarios

Talkat PyTorch Day China 2025 · on Saturday, 2025-06-07· [python]
links:none on file
slides:none on file

Practical fixes and passes extend torch.compile (torch.dynamo + autograd + inductor) to real workloads: DeepSpeed + gradient checkpointing compatibility is patched and upstreamed to Hugging Face transformers/accelerate; a pattern-match rewrite for Alibi+mask yields 30% speedup over default fused attention and 260% faster than eager; a constant-fold mask->None unlocks flash attention; padding alignment changes cut recompiles from 7 to 3; work also surfaces startup, dynamic-shape and kernel-caching tradeoffs and ongoing async compile experiments.

AI-written summary · about

  1. 0:00Introduction to torch.compile
  2. 1:44Real-world hurdles
  3. 3:12Ecosystem integration
  4. 6:02Optimizing kernels
  5. 9:48Managing runtime overhead
  6. 11:31Future challenges
  7. 14:11Conclusion
~/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.