~/talk

LLM Inference Arithmetics

Talkat PyData London 2025 · on Saturday, 2025-06-07· at 16:15· Hardwick Hub· [large-language-models]
links:none on file
slides:none on file

Explains how parameter counts map to VRAM and compute so numbers mean something: Gemma 2B is closer to a 3B as a parameter-vs-storage example, a 7B model converts to roughly ~14GB plus 20% for activations and overhead, training demands ~three times the memory of inference so inference is ~1/3 cost of training for typical setups, and token-by-token decoding is quadratic in sequence length but performance improves because KV-Cache stores keys and values so generation trades extra memory for much less repeated compute.

AI-written summary · about

  1. 0:00Introduction
  2. 2:32Key takeaways
  3. 5:43Neural network basics
  4. 8:31Training vs inference
  5. 15:40Transformer overview
  6. 22:42Attention computation
  7. 26:57KV cache impact
  8. 30:44Self-hosting models
  9. 33:08Conclusion
~/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.