Skip to content

fix(vllm_model): route a rollout's calls by rollout id (backport #4462 to gdpval-devel) - #4859

Merged
wprazuch merged 1 commit into
gdpval-develfrom
wprazuch/gdpval-devel-rollout-routing
Oct 21, 2026
Merged

wprazuch merged 1 commit into
gdpval-develfrom
wprazuch/gdpval-devel-rollout-routing

Conversation

@wprazuch

Copy link
Copy Markdown
Contributor

Backport of #4462 to gdpval-devel, cherry-picked unchanged.

With several vLLM endpoints in base_url, vllm_model hashes the session id to pick one. Agents that don't keep cookies get a new session on every call. Each turn of a rollout then lands on a random endpoint, and under load the rollouts pile up on one endpoint while the other idles. _resolve_client now keys on current_rollout_id() when the call has one, and falls back to the session id. A rollout's turns stay on one endpoint, and rollouts spread across endpoints.

GDPVal runs with multiple policy endpoints hit this on gdpval-devel, which does not have #4462.

Tests: responses_api_models/vllm_model/tests/test_app.py: 155 passed. The two new tests fail with the old app.py.

(cherry picked from commit 75bb53e)
Signed-off-by: Wojciech Prazuch <[email protected]>
@wprazuch
wprazuch merged commit 12be3a8 into gdpval-devel Oct 21, 2026
6 checks passed
@wprazuch
wprazuch deleted the wprazuch/gdpval-devel-rollout-routing branch October 21, 2026 15:23
@copy-pr-bot

copy-pr-bot Bot commented Oct 21, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant