~/talk

High Performance LLM Inference in Pure Python with PyTorch Custom Ops

Talkat PyCon US 2026 · 2026-05-13..05-19· [large-language-models, machine-learning]
links:none on file
slides:none on file

Claims a pure-Python inference engine (SGLang/TokenSpeed) reaches parity with TensorRT-LLM by combining a multi-process scheduler, a zero-overhead batch scheduler that hides CPU work behind GPU execution, PyTorch custom ops exposing CUDA/Triton kernels, and captured CUDA graph replay. Benchmarks report 10–20% faster iteration times versus TensorRT and 2–3× faster decoding kernels in high-cache, long-context cases; the system is delivered as Python packages and shows GPUs kept fully utilized in production.

AI-written summary · about

  1. 0:00Python LLM inference intro
  2. 1:27Python vs C++ inference
  3. 2:53Python as orchestration layer
  4. 3:36Multi-process runtime benefits
  5. 4:20CPU-GPU overlap with CUDA graphs
  6. 5:25PyTorch custom ops role
  7. 7:12State management challenges
  8. 9:41TokenSpeed engine overview
  9. 10:46Performance vs TensorRT-LLM
  10. 12:51Summary and future
  11. 13:12Q&A: State in heterogeneous systems
  12. 14:36Q&A: Performance guarantees vs TensorRT
  13. 16:43Q&A: Kernel optimizations
~/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.