~/lightning

Lightning Talk: Lessons from Using Pytorch 2.0 Compile in IBM's Watsonx.AI Inference

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

Open source LLaMA implementation for Watsonx.AI uses torch.compile() plus SDPA, tensor parallel and CUDA graphs and shows at least a 2X improvement on many models, with 70B gaining ~50% extra from CUDA graphs versus compile alone; 7B runs drop from ~40 ms per token to ~30–40 ms depending on batch and sequence length. Key workarounds include reimplementing rotor embeddings because inductor lacks complex support, fixing Flash attention causing spurious recompiles with dynamic shapes, and making tensor parallel work around missing dtensor compile support, all upstreamed to PyTorch and available on the project GitHub.

AI-written summary · about

  1. 0:00PyTorch 2.0 compile in Watsonx.AI
  2. 1:26Performance improvements
  3. 3:13Overcoming graph breaks
  4. 5:20Tensor parallel with PyTorch compile
  5. 6:46Next steps and optimizations
  6. 9:16Conclusion
~/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.