Repository navigation
Conversation
Signed-off-by: Pranav Thombre <[email protected]>
Contributor
Author
|
/ok to test 9043c8a |
4 tasks done
Signed-off-by: Pranav Thombre <[email protected]>
Contributor
Author
|
/ok to test a9ac244 |
3 of 4 tasks
1 task
This branch has not been deployed
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.
What does this PR do ?
Read completed-rollout manifests directly from the colocated Gym policy proxy's ledger, avoiding manifest HTTP connector waits while keeping uvloop enabled.
The actor uses a small thread pool and one semaphore, capped at
manifest_read_workers + manifest_queue_size. Threads snapshot the ledger and build the existing receipt;asyncio.as_completed()streams ready receipts to the controller/finalizer. Timed-out or cancelled jobs retain capacity until their executor future finishes. Stream cleanup cancels pending work and releases delivered payloads promptly. Existing rollout timing metrics includemanifest_read_total.There is no custom queue/consumer scheduler, ticket/result layer, histogram service, or private HTTP pool. The shared HTTP control code and sequential HTTP mode remain unchanged. Startup verifies the writer's host/device/inode; local mode never silently falls back to HTTP.
Issues and dependency
Companion reader: NVIDIA-NeMo/Gym#3646. No separate issue is needed for this focused timeout workaround. RL pins the companion Gym commit; merge Gym first and update the pin if its merge rewrites the SHA.
Usage
Use a unique directory shared by actor and proxy on the same node. The schema default remains
http; GRPO/PPO examples selectlocal_file. Transport/resource knobs are excluded from checkpoint compatibility fingerprints. Receipt schema, finalizer behavior, and TransferQueue token transport are unchanged.Validation
Container:
/lustre/fsw/portfolios/nemotron/projects/nemotron_sw_post/users/pthombre/enroot-images/nvcr.io+nvidian+nemo-rl+nightly.squashfs. Python 3.13.14, uvloop 0.22.1;RAY_USE_UVLOOP=1.Slurm 3940605: 1,430 tests passed (47 manifest/receipt, 1,129 controller/lifecycle, 254 Gym token capture), using:
Scoped Ruff lint/import/format checks, focused Pyrefly, Gym full pre-commit, and diff checks passed. The Gym pin's lock metadata was checked with uv 0.11.21; dependency versions remain unchanged.
Reader benchmark 3940558: median of three alternating 4,096-receipt tmpfs bursts, two threads, 512 concurrent requests, same container and uvloop. Includes receipt assembly; no model or concurrent writer load:
The 32-call case is 6% slower; no full-training throughput claim is made. OS reads cannot be forcibly interrupted, and deadline delivery depends on event-loop scheduling.
Before ready for review