Repository navigation
feat(nemo-gym): expose resolved config entries - #3633
Conversation
|
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. |
f949b2f to
ccf17e1
Compare
|
/ok to test ccf17e1 |
ccf17e1 to
806637f
Compare
806637f to
48c3939
Compare
|
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. |
48c3939 to
f27f868
Compare
|
/ok to test f27f868 |
f27f868 to
fcab602
Compare
|
/ok to test fcab602 |
fcab602 to
7477f97
Compare
|
/ok to test 7477f97 |
1 similar comment
|
/ok to test 7477f97 |
7477f97 to
9096679
Compare
|
/ok to test 9096679 |
|
/ok to test 8c43855 |
8c43855 to
33ac65a
Compare
|
/ok to test 33ac65a |
33ac65a to
05ac275
Compare
|
/ok to test 05ac275 |
05ac275 to
4bc42fc
Compare
|
/ok to test 4bc42fc |
4bc42fc to
b053172
Compare
|
/ok to test b053172 |
b053172 to
93d556c
Compare
|
/ok to test 93d556c |
93d556c to
d053d95
Compare
|
/ok to test d053d95 |
terrykong
left a comment
There was a problem hiding this comment.
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.
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]>
d053d95 to
a61ddf3
Compare
|
/ok to test a61ddf3 |
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 anentrypoint. Gym does not start a process for a leaf without anentrypoint, so those names are excluded from the routing inventory. Callinglist_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.