Anatomy of an LLM Serving Engine
TL;DR:
Calling model.generate() is enough for one local prompt.
Longer Read:
A service also has to accept requests, decide when they may run, retain state while they run, stream results, and release resources when they finish. Those tasks continue even when the model and decoding algorithm stay the same. This post follows one request through a serving engine. The small engine below runs one request at a time so that the boundaries are visible.
Related Skills:
LLM Fine-tuning
💬 0 comments