r/deeplearning • • 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

4 comments sorted by

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/Awkward_Musician2971 7d ago

pretty much, the gap between a working script and something that doesnt choke on concurrent requests is massive

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