karn
stack
Search
K
All courses
How LLM Inference Works
20 lessons · ~4 hours
0/20 done
3h 53m left
Module 1 · 75 min
One call
0/7
What happens in one model call
Free
The pause, the rush and the bill
Free
Tokens: what you pay for
Free
Counting every token
Free
Inside the forward pass
Free
Where the next token is chosen
Free
Counting the work, forcing the shape
Free
Module quiz
(Locked)
Module 2 · 50 min
Time and memory
0/4
Prefill and decode
(Locked)
Why output costs more
(Locked)
The KV cache
(Locked)
What the KV cache costs
(Locked)
Module quiz
(Locked)
Module 3 · 82 min
Many calls
0/7
Batching many users
(Locked)
The limits of a batch
(Locked)
Service tiers and temperature zero
(Locked)
Paged memory
(Locked)
Prompt caching
(Locked)
Speculative decoding
(Locked)
Fewer bytes, and fast tiers
(Locked)
Module quiz
(Locked)
Module 4 · 25 min
Your product
0/2
Where the money goes
(Locked)
Designing for cost and latency
(Locked)
Module quiz
(Locked)
Unlock every course
See plans
Support
Feedback
System status
7d4f46a
Toggle Sidebar
Courses
How LLM Inference Works
What the KV cache costs
Jump to…
K
D
Sign in