Skip to content

Reduce Rollout Manager Load with Distributed Session Merging#66

Open
odp wants to merge 16 commits into
prodfrom
better-oai-ep-tracer
Open

Reduce Rollout Manager Load with Distributed Session Merging#66
odp wants to merge 16 commits into
prodfrom
better-oai-ep-tracer

Conversation

@odp

@odp odp commented Jul 2, 2026

Copy link
Copy Markdown

Changes made, sorted by importance:

  1. Moved trajectory/sample merging out of the rollout manager and into the distributed Ray actor session servers, so merging is parallelized instead of done one-by-one centrally.

  2. Added Ray actor-based session servers with multiple backends, so rollout collection work can be spread across session server actors.

  3. Reduced rollout-manager CPU and memory pressure by returning already-merged/compacted session data from the session servers.

  4. Avoided unnecessary tokenizer decode work during sample construction; sample.response is left as "" and sample.metadata["response_decoded"] = False.

  5. Updated merge logic to respect sample.metadata["response_decoded"], so it does not decode observation tokens unless responses are actually decoded.

  6. Hardened the session client/server path with explicit HTTP timeouts, retries, bounded concurrency, and better logging.

@odp
odp requested a review from a team July 2, 2026 18:34
@odp
odp force-pushed the better-oai-ep-tracer branch from 63dca1d to 8b5dfb6 Compare July 9, 2026 22:32
@odp odp changed the title Make session collection HTTP handling explicit and safe Reduce Rollout Manager Load with Distributed Session Merging Jul 15, 2026
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