~/lightning

Optimizing Model Inference with PyTorch 2.0

Lightningat PyTorch Conference 2025 · 2025-10-22..10-23· [machine-learning]
links:none on file
slides:none on file

Cloud-focused walkthrough of PyTorch 2.0 techniques: int4 quantization cuts memory enough to run a 12B model on smaller GPUs with only ~0.01% accuracy loss, saving cost; torch.compile + CUDA graph capture tuned from “full” to “full and piecewise” for decoding yields about 15% lower tail latency at P95; a head-to-head of attention kernels finds the paper’s SAGE attention 20% faster than diffusers’ native version so the solution is to patch the older SAGE attention into the newer diffusers for both speed and features.

AI-written summary · about

  1. 0:00PyTorch inference optimization intro
  2. 1:23Model optimization KPIs and SLAs
  3. 2:48Three layers of inference optimization
  4. 3:10Quantization techniques and trade-offs
  5. 4:53PyTorch 2.0 compilation strategies
  6. 6:40Custom tensor ops challenges
  7. 8:46Optimization choices explosion
  8. 9:27Modular optimization framework
  9. 10:30Business-specific optimization solutions
~/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.