Skip to content

feat(nemo-gym): expose resolved config entries - #3633

Merged
terrykong merged 1 commit into
mainfrom
ansubramania/gym-shards/introspection
Sep 12, 2026
Merged

terrykong merged 1 commit into
mainfrom
ansubramania/gym-shards/introspection

Conversation

@ananthsub

@ananthsub ananthsub commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds NemoGym.list_entries() so NeMo RL can inspect the runnable entries that Gym resolved during startup.

The input configuration contains config_paths, but those paths do not directly describe the agents, models, and resource servers that Gym loaded. Reading the resolved configuration gives shard discovery an accurate inventory without reproducing Gym's configuration merge in NeMo RL.

list_entries() returns each resolved entry name and the server-type groups whose nested configuration has an entrypoint. Gym does not start a process for a leaf without an entrypoint, so those names are excluded from the routing inventory. Calling list_entries() before _spinup() fails because the actor does not yet have a resolved Gym configuration.

Stack

This PR depends on #3368. The shard configuration schema follows in #3369.

@copy-pr-bot

copy-pr-bot Bot commented Aug 13, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@ananthsub
ananthsub force-pushed the ansubramania/gym-shards/introspection branch from f949b2f to ccf17e1 Compare August 13, 2026 22:14
@ananthsub ananthsub added the CI:Lfast Runs a fast test suite and re-use nightly `main` container (but sync dependencies to PRs version) label Aug 13, 2026
@ananthsub

Copy link
Copy Markdown
Contributor Author

/ok to test ccf17e1

@ananthsub
ananthsub force-pushed the ansubramania/gym-shards/introspection branch from ccf17e1 to 806637f Compare August 14, 2026 17:07
@ananthsub
ananthsub force-pushed the ansubramania/gym-shards/introspection branch from 806637f to 48c3939 Compare August 31, 2026 18:02
@ananthsub
ananthsub marked this pull request as ready for review August 31, 2026 18:11
@ananthsub
ananthsub requested review from a team as code owners August 31, 2026 18:11
@copy-pr-bot

copy-pr-bot Bot commented Aug 31, 2026

Copy link
Copy Markdown

Auto-sync is disabled for ready for review pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@ananthsub ananthsub changed the title feat(nemo-gym): report an actor's resolved config entries feat(nemo-gym): expose resolved config entries Aug 31, 2026
@ananthsub
ananthsub force-pushed the ansubramania/gym-shards/introspection branch from 48c3939 to f27f868 Compare September 1, 2026 06:26
@ananthsub

Copy link
Copy Markdown
Contributor Author

/ok to test f27f868

@ananthsub
ananthsub force-pushed the ansubramania/gym-shards/introspection branch from f27f868 to fcab602 Compare September 1, 2026 17:42
@ananthsub

Copy link
Copy Markdown
Contributor Author

/ok to test fcab602

@ananthsub
ananthsub force-pushed the ansubramania/gym-shards/introspection branch from fcab602 to 7477f97 Compare September 2, 2026 05:50
@ananthsub

Copy link
Copy Markdown
Contributor Author

/ok to test 7477f97

1 similar comment
@ananthsub

Copy link
Copy Markdown
Contributor Author

/ok to test 7477f97

@ananthsub
ananthsub force-pushed the ansubramania/gym-shards/introspection branch from 7477f97 to 9096679 Compare September 3, 2026 06:06
@ananthsub

Copy link
Copy Markdown
Contributor Author

/ok to test 9096679

@ananthsub

Copy link
Copy Markdown
Contributor Author

/ok to test 8c43855

@ananthsub
ananthsub requested a review from terrykong September 4, 2026 21:42
@terrykong
terrykong force-pushed the ansubramania/gym-shards/introspection branch from 8c43855 to 33ac65a Compare September 4, 2026 22:35
@copy-pr-bot

copy-pr-bot Bot commented Sep 4, 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.

@ananthsub

Copy link
Copy Markdown
Contributor Author

/ok to test 33ac65a

@ananthsub
ananthsub force-pushed the ansubramania/gym-shards/introspection branch from 33ac65a to 05ac275 Compare September 8, 2026 14:21
@ananthsub

Copy link
Copy Markdown
Contributor Author

/ok to test 05ac275

@ananthsub
ananthsub force-pushed the ansubramania/gym-shards/introspection branch from 05ac275 to 4bc42fc Compare September 9, 2026 01:48
@ananthsub

Copy link
Copy Markdown
Contributor Author

/ok to test 4bc42fc

@ananthsub
ananthsub force-pushed the ansubramania/gym-shards/introspection branch from 4bc42fc to b053172 Compare September 9, 2026 05:25
@ananthsub

Copy link
Copy Markdown
Contributor Author

/ok to test b053172

@ananthsub
ananthsub force-pushed the ansubramania/gym-shards/introspection branch from b053172 to 93d556c Compare September 9, 2026 22:03
@ananthsub

Copy link
Copy Markdown
Contributor Author

/ok to test 93d556c

@ananthsub
ananthsub force-pushed the ansubramania/gym-shards/introspection branch from 93d556c to d053d95 Compare September 11, 2026 00:37
@ananthsub

Copy link
Copy Markdown
Contributor Author

/ok to test d053d95

terrykong
terrykong previously approved these changes Sep 11, 2026

@terrykong terrykong left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both comments addressed — thanks.

You took the stronger option on the first one: list_entries() now requires a nested entrypoint, which matches the condition Gym itself uses before starting a process, so the docstring's original wording is true rather than just softened. The new test_list_entries_skips_an_entry_that_starts_no_server is the case that was missing.

One heads-up, not a blocker: fast_L1_Functional_Tests_PPO is failing at this head (and CI quality check just reports that same failure). It looks unrelated to this change — list_entries() has no callers yet, and that job is a DAPO-math run that never builds a Gym actor. Worth a glance before merge in case it came in with the rebase.

Also minor: your two "Fixed in 88d9d83" replies point at a commit the later rebase erased, so those links 404. The fix itself is present at 93d556c.

Base automatically changed from ansubramania/gym-shards/lifetime to main September 11, 2026 23:55
Add NemoGym.list_entries() so callers can inspect the entries in Gym's
resolved config after startup. Reading the resolved config includes agents,
models, and resources loaded through config_paths, which are not present in
the input mapping NeMo RL passes to the actor.

The method reports entry names and their server-type keys without interpreting
server-specific settings. A later sharding layer uses these names to discover
which actor hosts each agent and to reject ambiguous duplicate entries.

Signed-off-by: Ananth Subramaniam <[email protected]>
@terrykong
terrykong force-pushed the ansubramania/gym-shards/introspection branch from d053d95 to a61ddf3 Compare September 11, 2026 23:55
@terrykong

Copy link
Copy Markdown
Collaborator

/ok to test a61ddf3

@terrykong
terrykong merged commit d633032 into main Sep 12, 2026
109 of 111 checks passed
@terrykong
terrykong deleted the ansubramania/gym-shards/introspection branch September 12, 2026 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI:Lfast Runs a fast test suite and re-use nightly `main` container (but sync dependencies to PRs version)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants