From ac915183230189cbdf900150100ecf45311fc64a Mon Sep 17 00:00:00 2001 From: CloudGPU <129925370+cloudgpuapp@users.noreply.github.com> Date: Sun, 22 Nov 2026 08:02:28 +0800 Subject: [PATCH] docs(server): explain how to queue streaming requests --- docs/server.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/docs/server.md b/docs/server.md index 9c09a1f1cf..115673eb6f 100644 --- a/docs/server.md +++ b/docs/server.md @@ -31,6 +31,31 @@ python3 -m llama_cpp.server \ --chat_template_kwargs '{"enable_thinking": true}' ``` +### Queue streaming requests + +By default, an incoming request can interrupt an in-progress streaming completion. +To let the active stream finish before the next request is processed, start the server with: + +```bash +python3 -m llama_cpp.server --model ./model.gguf --interrupt_requests false +``` + +If you use a [configuration file](#configuration-and-multi-model-support), set `interrupt_requests` at the top level alongside `models`: + +```json +{ + "interrupt_requests": false, + "models": [ + { + "model": "./model.gguf" + } + ] +} +``` + +The setting changes how requests wait for the model. +Inference still runs one request at a time in the server process. + ### Server options For a full list of options, run: