
A proposed fix for vLLM could prevent benchmark probe requests from inheriting generation-length settings intended for the main workload, after a reproducible bug caused requests designed to generate one token to carry limits of up to 64 tokens.
The defect was reported on November 7 in GitHub issue #66246. It affects the --probe-request-rate option in vllm bench serve, which sends lightweight requests alongside a benchmark workload to measure how the server handles additional traffic.
These probes are intended to use a short text prompt and generate a single token. However, when the main workload uses generation-length overrides through --extra-body, the benchmark client can pass those settings into the probe requests as well.
The problem occurs because the benchmark creates probe configurations by replacing selected properties of the main workload, including its prompt and output length, without removing the inherited extra_body settings. The endpoint request functions subsequently merge those custom settings into the outgoing HTTP payload, allowing them to overwrite the probe’s one-token limit.
A configuration containing {"max_completion_tokens": 64}, for example, can cause a probe to carry a 64-token generation limit instead of the intended limit of one.
The reporter reproduced the behavior across three API backends: OpenAI Completions, OpenAI Chat Completions and OpenAI Responses. The affected parameters were max_tokens, max_completion_tokens and max_output_tokens, respectively.
The reproduction used the actual endpoint request functions connected to a local mock HTTP server. By capturing outgoing JSON payloads, the test demonstrated that the benchmark sent the wrong generation limits. Control tests without generation-length overrides produced the expected one-token configuration.
The mock server did not measure the performance impact on a real inference model. The reproduction establishes that the requests were incorrectly configured, but does not quantify how much the additional generation changes probe latency or affects the main workload’s throughput.
Pull request #66260, submitted by Hrushikesh Ramilla, proposes a correction. It filters generation-length parameters from the inherited extra_body dictionary when creating probes, while retaining unrelated custom parameters.
The proposed change covers six generation-related settings: max_tokens, max_completion_tokens, max_output_tokens, max_new_tokens, min_tokens and min_completion_tokens. It also adds regression tests for the three affected API backends.
The contributor reported that all three regression tests passed, alongside successful Ruff linting and formatting checks.
As of November 8, the pull request remained open and had not been merged into vLLM’s main branch. Its proposed correction was therefore not yet part of the upstream implementation.
Discover more from Aree Blog
Subscribe now to keep reading and get access to the full archive.


