Repository navigation
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…ssion cap Co-authored-by: Cursor <cursoragent@cursor.com>
… admission Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Framework runner
max_concurrent_sessionsbounds whole-pool episode concurrency, whilerollout_router.dynamic_overload_admissionacts only as a soft KV placement preference that lags during off-GPU tool execution and falls back when every replica exceeds the threshold. During multi-version transitions, newly admitted sessions can pile onto the few replicas serving the newest weights.Add an opt-in Router-owned per-replica session admission cap
rollout_router.replica_concurrency.max_sessions(nullby default, requiring no changes touni_agent,verl, or Repack):bind_routeandget_routable_version) once a replica reachesmax_sessionslive bound routes, while leaving same-version Repack destinations unconstrained.same_version, advances to the lowest eligible version that still has session capacity and waits viaRouteUnavailableErrorwhen all eligible replicas are full (including withinValidationRequestRoutercheckpoint groups).latest_version/colocate_async, preserves cohort quota for live sessions temporarily unbound across an update or pause while allowing them to rebind without deadlock on their next turn.Validation
tests/test_replica_concurrency_on_cpu.py, plus 265 existing Router, Repack, validation, and train config CPU tests passed.ruff check,ruff format --check, andgit diff --checkpassed.