~/talk

LLM Inference Arithmetics: the Theory behind Model Serving

Talkat PyCon DE & PyData 2025 · on Wednesday, 2025-04-23· at 14:30· Titanium3· [large-language-models, machine-learning]
links:none on file
slides:none on file

Argues that transformer inference is inherently serial while training is parallel, so training needs ~3× the FLOPs of inference and attention compute scales quadratically with sequence length (T²). Shows KV cache trades compute for memory — KV cache ≈ 20% of model size (e.g., Mistral 7B ≈ 20% extra VRAM) and splits generation into a fast prefill phase and a slow single-token decode phase. Benchmarks and engine notes compare TensorRT (high-performance, Nvidia-tuned), VLM/ggml and llama.cpp for practical self‑hosting tradeoffs.

AI-written summary · about

  1. 0:00Welcome
  2. 1:15Talk overview
  3. 3:21Training vs inference
  4. 4:47Model requirements
  5. 6:35Compute and memory
  6. 9:44Memory in training
  7. 11:28Transformer architecture
  8. 13:58Attention complexity
  9. 16:49KV cache impact
  10. 20:22Prefill and decoding
  11. 23:10Batching strategies
  12. 24:13Self-hosting viability
  13. 25:37Q&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.