~/lightning

Lightning Talk: Accelerating Inference on CPU with Torch.Compile

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

Torch.compile CPU backend generates C++ fusion kernels, supports fp32, bfloat16 and int8, and runs dynamic-shape models like GPTJ and Llama with AMX on Sapphire Rapids. Optimizations include GEMM fusions, prepacked blocked weights, constant folding/freezing, and a vectorized bfloat16 path; over 94% of generated kernels vectorize and across ~160 models show geometric mean speedups of about 1.4–2.3x (bfloat16) versus eager. Additional work: flash-attention fusion, Python-free C++ wrapper to remove host overhead, and an IPEX staging backend for more custom kernels.

AI-written summary · about

  1. 0:00Torch.Compile CPU backend intro
  2. 1:08Data types and features evolution
  3. 2:14Performance gains with Torch.Compile
  4. 2:37Torch.Inductor CPU compilation
  5. 4:24Vectorization for CPU
  6. 5:29INT8 quantization support
  7. 6:12Python-free model export
  8. 7:21Flash Attention fusion
  9. 8:06IPA backend for Intel
  10. 9:10Future plans and upstreaming
  11. 9:58Q&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.