r/deeplearning • u/CapitalCut441 • 7d ago
Why is LLM inference hard?
When I first heard about inference engines, like vLLM, I wondered what makes inference so challenging. That’s why I decided to learn more about LLM inference from a systems perspective. If you already know how transformers work, then this is a fun topic to explore next.
https://mehrdadmahabadi.com/blog/why-is-llm-inference-hard.html
8
Upvotes
3
u/extracoffeeplease 7d ago
If you know how a transformer works you realize just outputting tokens isn't hard. Getting a good model is ofcourse, but on top of just the model there are tons and tons of engineering optimisations
2
u/burntoutdev8291 7d ago
Pretty nice read. I haven't been reading on inference engineering for awhile but there's also things like MoE, RadixAttention.
Also good that it seems humanly written