~/talk

Unlocking Parallel PyTorch Inference (and More!)

Talkat PyData Seattle 2025 · 2025-11-07..11-09· [python]
links:none on file
slides:none on file

Claim: PyTorch inference runs concurrently inside the same process using Python free-threading. Built a multi-threaded pure-Python Paralleledia web stack and a streaming async.io HTTP server that yields tokens, hosts a 2015 Wikipedia dump in-process, and shows parallel generators working under load (14 threads). Measured 70 vs 7.35 requests/sec and tail latency ~350ms vs 1.75s with free-threading; a local GPT-2 trained ~19,072 steps over 3.5 days. It works end-to-end but skips TorchDynamo, KV cache, batching and needs Triton/VLM for production performance.

AI-written summary · about

  1. 0:00Introduction
  2. 1:03Python free threading overview
  3. 3:52Python GIL history
  4. 9:31Python 3.13 free threading
  5. 11:16PyTorch inference crash course
  6. 15:09Testing PyTorch inference
  7. 16:52Paralleledia server
  8. 22:35PyTorch free threading limits
  9. 24:39Real-world use cases
  10. 26:29Wikipedia in single process
  11. 33:10Resources
  12. 34:15Q&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.