Repository navigation
Conversation
Signed-off-by: Pranav Thombre <[email protected]>
1 of 2 tasks
Signed-off-by: Pranav Thombre <[email protected]>
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?
Add a cache-free
FileManifestReaderfor training actors that share the policy proxy's node-local ledger. It snapshots a rollout ledger under the existing shared file lock, releases the lock before parsing, and uses the HTTP endpoint's manifest builder. Deadline/cancellation checks bound lock waits and reject late results. Atomic writer markers let startup verify hostname, device, and inode.The API has one read method and a visibility check; it adds no cache, per-stage instrumentation, HTTP client, or private pool. Companion RL integration: NVIDIA-NeMo/RL#4247. No separate issue is needed for this focused manifest timeout workaround.
Validation
Slurm 3940605, requested container
/lustre/fsw/portfolios/nemotron/projects/nemotron_sw_post/users/pthombre/enroot-images/nvcr.io+nvidian+nemo-rl+nightly.squashfs:uv run --no-project --python /opt/nemo_rl_venv/bin/python python -m pytest -q -o addopts= tests/unit_tests/test_token_capture*.py254 Gym tests passed, including 14 reader tests: HTTP equivalence, separate writer process, concurrent appends, held/shared locks, invalid fields, deadlines, cancellation, and visibility. Companion RL: 47 receipt/integration and 1,129 controller/lifecycle tests passed. Gym
pre-commit run --all-filesand diff checks passed.Rollouts and compatibility
Model rollouts: N/A; this is manifest metadata access, not an agent/verifier behavior change. A same-container uvloop reader benchmark is documented in the RL PR; no full-training performance claim is made.
HTTP behavior, ledger schema, receipt/finalizer semantics, and token staging are unchanged. Local reads require matching filesystem visibility and are explicitly selected by the consumer. Writer markers are best effort; consumers requiring them fail startup if verification is unavailable. Public API docstrings and the companion RL deployment guide document usage.
Checklist