~/talk

Accelerating Generative AI

links:none on file
name:Horace He
links:none on file
slides:none on file

Native PyTorch pipelines compile and fuse real kernels to cut overhead and hit near memory bandwidth limits: baseline LLaMA‑7B goes from ~25 to 107 tokens/s with torch.compile with mode=reduce_overhead, then to ~157 tokens/s with int8 weight-only quantization, to ~203 tokens/s with INF4 kernels, and to ~240 tokens/s when adding speculative decoding. Segment Anything and SDXL see ~2× latency gains and big memory drops on A100. Implementation is ~760 lines of Python, only PyTorch plus SentencePiece, and the code runs and reproduces the reported speedups.

AI-written summary · about

  1. 0:00Accelerating generative AI
  2. 1:04Segmentation with Segment Anything
  3. 6:03Image generation with SDXL
  4. 7:28Text generation with PyTorch
  5. 11:22Torch compile boosts inference
  6. 13:54Triton kernels in decode phase
  7. 14:57Model bandwidth utilization
  8. 17:03Weight-only quantization
  9. 19:08Speculative decoding explained
  10. 21:37AMD GPU optimizations
  11. 22:42INT4 quantization with torch export
  12. 23:48Tensor parallelism in PyTorch
  13. 24:31All optimizations combined
  14. 25:58Summary and takeaways
  15. 26:19Q&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.