Calling model.generate() is enough for one local prompt. 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. […]