Repository navigation
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. |
This was referenced Nov 4, 2026
ananthsub
force-pushed
the
ananthsub/token-capture-rename
branch
from
November 4, 2026 00:58
91a62dc to
30182d5
Compare
ananthsub
force-pushed
the
ananthsub/registry-server-rename
branch
from
November 4, 2026 01:06
aa7f6e2 to
51c4563
Compare
ananthsub
force-pushed
the
ananthsub/token-capture-rename
branch
from
November 4, 2026 20:22
30182d5 to
847367b
Compare
ananthsub
force-pushed
the
ananthsub/registry-server-rename
branch
from
November 4, 2026 20:31
51c4563 to
f257b13
Compare
ananthsub
force-pushed
the
ananthsub/token-capture-rename
branch
from
November 4, 2026 20:44
847367b to
40b850d
Compare
ananthsub
force-pushed
the
ananthsub/registry-server-rename
branch
from
November 4, 2026 20:49
f257b13 to
c0c532a
Compare
ananthsub
changed the base branch from
ananthsub/token-capture-rename
to
ananthsub/renamed-config-keys
November 4, 2026 20:49
ananthsub
force-pushed
the
ananthsub/renamed-config-keys
branch
from
November 4, 2026 22:42
7f1cdc1 to
2b971d4
Compare
ananthsub
force-pushed
the
ananthsub/registry-server-rename
branch
from
November 4, 2026 23:19
c0c532a to
c5cc762
Compare
ananthsub
force-pushed
the
ananthsub/renamed-config-keys
branch
from
November 5, 2026 06:15
2b971d4 to
8db168e
Compare
The server every Gym server and client asks for the run's config and server addresses was called the head server. "Head" already means the Ray head node and the Slurm head node, so the name did not say what the server does. It is now the registry server, in the config, the code, log and error messages, and the docs. Old names keep working, with a DeprecationWarning, until nemo_gym 0.10.0: - The `head_server` config block, from YAML, the command line, or an initial config such as the one NeMo RL passes in, is moved to `registry_server` by the same renamed-key step as token capture. Setting both to different values is an error. - HEAD_SERVER_KEY_NAME, DEFAULT_HEAD_SERVER_PORT, HeadServer, HeadServerUnreachableError and HeadServerConfigMalformedError resolve at every old module path through MOVED_NAMES. - ServerClient accepts the `head_server_config` field and attribute, and keeps `load_head_server_config`. - `head_server_config=` is still accepted by ServerClient.load_from_global_config, setup_server_client, and RolloutCollectionHelper.run_examples, run_outcomes and setup_server_client. - scripts/wait_for_servers.sh still reads HEAD_MAX_WAIT. The registry's routes and payloads, the run identity used to resume a run, and the telemetry label and startup stage values that name the loop (`head_server`, `start_head_server`, `wait_for_head_server`) do not change. `head_server_deps` and `head_server_constraints` keep their names: they carry the parent gym process's pins into server venvs and are not about the registry server. Signed-off-by: Ananth Subramaniam <[email protected]>
…p stages after it The event-loop label and the supervisor's two startup stages still used the head server's name: `head_server`, `start_head_server` and `wait_for_head_server`. They are now `registry_server`, `start_registry_server` and `wait_for_registry_server`. A dashboard or query that filters on the old values needs the new ones. Signed-off-by: Ananth Subramaniam <[email protected]>
… to parent_process_* The two keys hold pins from the parent gym process that every server venv installs: its openai version, telemetry packages and sandbox provider plugins as requirements, and its exact Ray version as a constraint and override. They are not about the registry server, so they are now `parent_process_deps` and `parent_process_constraints`, with PARENT_PROCESS_DEPS_KEY_NAME and PARENT_PROCESS_CONSTRAINTS_KEY_NAME. The parser computes both keys on every parse, so a config never set them. The parser drops either old key without a warning, as it overwrote them before, so the old name does not linger next to the computed one. The old constants resolve at nemo_gym.global_config and nemo_gym.cli.setup_command until nemo_gym 0.10.0. Signed-off-by: Ananth Subramaniam <[email protected]>
ananthsub
force-pushed
the
ananthsub/registry-server-rename
branch
from
November 5, 2026 06:28
c5cc762 to
2597ae9
Compare
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 changed and why
Every Gym server and client gets the run's merged config and the server addresses from one server. It was called the "head server", but "head" already means the Ray head node (
ray_head_node_address) and the Slurm head node, so the name did not say what the server does. This PR renames it the registry server, in the config, the code, log and error messages, and the docs underfern/versions/latest/. The frozenfern/versions/v*/docs are unchanged.This is the last of the naming clean-ups that followed the
nemo_gym/reorganization (#5166), after #5526, #5528 and #5531, alongside #5533. It has no separate issue.The PR has three commits: the registry server rename, the telemetry names, and the two dependency keys.
Built on #5628. #5628 adds the shared mechanism for renamed config keys and arguments in
nemo_gym/config/renamed_keys.py, so this PR targets #5628's branch. Once #5628 merges, this PR's base becomesmain. It does not depend on #5533, the token capture rename, which builds on #5628 too. Both add entries toRENAMED_TOP_LEVEL_KEYS, so whichever merges second resolves a conflict in that one dict.Renames
head_server:config block (host,port)registry_server:HEAD_SERVER_KEY_NAMEREGISTRY_SERVER_KEY_NAMEDEFAULT_HEAD_SERVER_PORTDEFAULT_REGISTRY_SERVER_PORTHeadServerRegistryServerHeadServerUnreachableErrorRegistryServerUnreachableErrorHeadServerConfigMalformedErrorRegistryServerConfigMalformedErrorHeadServerUnresponsiveErrorRegistryServerUnresponsiveErrorhead_server_spinup_timeout_secondsconfig keyregistry_server_spinup_timeout_secondsServerClient.head_server_configServerClient.registry_server_configServerClient.load_head_server_config()ServerClient.load_registry_server_config()head_server_config=argumentregistry_server_config=HEAD_MAX_WAITinscripts/wait_for_servers.shREGISTRY_MAX_WAIThead_server_depsconfig key,HEAD_SERVER_DEPS_KEY_NAMEparent_process_deps,PARENT_PROCESS_DEPS_KEY_NAMEhead_server_constraintsconfig key,HEAD_SERVER_CONSTRAINTS_KEY_NAMEparent_process_constraints,PARENT_PROCESS_CONSTRAINTS_KEY_NAMEnemo.gym.event_loopvaluehead_serverregistry_serverstart_head_server,wait_for_head_serverstart_registry_server,wait_for_registry_serverThe
head_server_config=argument is onServerClient.load_from_global_config,setup_server_client, andRolloutCollectionHelper.run_examples,run_outcomesandsetup_server_client. Private names, such as the supervisor's_head_server_thread, are renamed without aliases.HeadServerUnresponsiveErrorandhead_server_spinup_timeout_secondscame in with #5343 and are in no release yet, so they are renamed without aliases too.Compatibility
Every old name keeps working until nemo_gym 0.10.0. Each use logs a
DeprecationWarningthat names the new name.head_serverblock set in YAML, on the command line, or in an initial config passed in by a training framework such as NeMo RL is moved toregistry_serverby the config parser's renamed-key step from feat(config): accept renamed config keys and arguments under their old names #5628, which this PR registershead_serverwith. The parser renames it in each config source before merging, so an old key in one source and the new key in another follow the usual precedence: the command line wins over a YAML config. A source that sets both keys to different values fails with an error that says which one to remove. If both are set to the same value, the run goes ahead with a warning.MOVED_NAMESinnemo_gym/_moved_paths.py, at every module path that shipped them:nemo_gym.server_utils,nemo_gym.cli.env,nemo_gym.config_typesandnemo_gym.global_config. They resolve to the renamed objects, soexcept HeadServerUnreachableErrorstill catches the new error.nemo_gym/config/config_types.pynow installs the module__getattr__that serves them. The renamed entries are in their own block, next to the token capture block, so the other open rename PRs only conflict on the lines that removed the old names from the main block.ServerClient.ServerClient(head_server_config=...), the.head_server_configattribute andload_head_server_config()all still work.renamed_keyworddecorator from feat(config): accept renamed config keys and arguments under their old names #5628 acceptshead_server_config=. Passing it together withregistry_server_config=is aTypeError, as passing any argument twice is.wait_for_servers.shstill readsHEAD_MAX_WAITwhenREGISTRY_MAX_WAITis unset.head_server_depsandhead_server_constraintswithout a warning, rather than telling users to set a key they cannot set, so the old names do not linger next to the computed ones.HEAD_SERVER_DEPS_KEY_NAMEandHEAD_SERVER_CONSTRAINTS_KEY_NAMEstill resolve atnemo_gym.global_configandnemo_gym.cli.setup_command.nemo_gym/orchestration/server_venv.pynow installs the module__getattr__that serves them.Wire formats and run outputs
These do not change. Here is what I checked:
/global_config_dict_yaml,/server_instancesand the liveness and readiness routes are unchanged. So is the shape of what they return. Only the top-level key that names the registry's own address inside the served config is renamed.head_serverand a config withregistry_serveron a different port give the same identity.head_serverstays in the runtime-option list alongsideregistry_server.nemo.gym.event_loopattribute value for the registry server's loop is nowregistry_server, and the supervisor's startup stages are nowstart_registry_serverandwait_for_registry_server. These are values, not attribute or metric names. A dashboard or query that filters onhead_server,start_head_serverorwait_for_head_serverneeds the new values. The metrics docs give the former label value.registry_server,parent_process_depsandparent_process_constraintsinstead of the old keys. Nothing in Gym or NeMo RL reads those keys back.ServerStartFailedError.server_name. When the registry server fails to bind, this is nowregistry_server, the config key to fix. It is an in-process exception attribute and is not written to run outputs.NeMo RL
I checked what
~/dev/RLreads and sets:from nemo_gym.server_utils import HEAD_SERVER_KEY_NAME, BaseServerConfigstill works, with a warning. The constant now resolves to"registry_server", so NeMo RL writes the new key into its initial config.rch.run_examples(examples=..., head_server_config=...)still works, with a warning.ServerClient.load_from_global_config(self.head_server_config)passes the config positionally and needs no change.env.**.head_serverandenv.**.head_server_deps. Gym's computed keys do not reach that fingerprint, so nothing breaks. NeMo RL should addenv.**.registry_serverandenv.**.parent_process_depsto that exclusion list. That is a NeMo RL follow-up.Why the dependency keys are renamed too
head_server_depsandhead_server_constraintsare not about the registry server. "Head" in their names meant the parentgymprocess, which runsgym env startorgym eval run.head_server_depsholds requirements from that process: itsopenaiversion, telemetry packages and sandbox provider plugins. These are installed into every server venv.head_server_constraintspins the parent's exact Ray version, both as a constraint and as an override, so a server that joins the parent's Ray cluster runs the same Ray. Once the head server is the registry server,head_server_*names a server that no longer exists, so the keys are now named for where the pins come from:parent_process_depsandparent_process_constraints.Validation
pre-commit run --files <touched files>: passed.PYTHONPATHandNEMO_GYM_EXTRA_ROOTSset to the worktree: every touched unit test file,tests/unit_tests/test_moved_paths.py,tests/unit_tests/config/test_renamed_keys.pyand the new compatibility tests all pass.head_serverblock in an initial config, a YAML config or on the command line parses exactly likeregistry_server, and that one source setting both keys to different values is an error. They check that an old dependency key is dropped from the parsed config. They check theServerClientfield, attribute and loader, thehead_server_config=argument on each function that accepts it, the saved run identity, and theHEAD_MAX_WAITfallback.head_serverentry inRENAMED_TOP_LEVEL_KEYS, the drop of the old dependency keys, theServerClientvalidator, the attribute and the loader, each of the fiverenamed_keyworddecorators, theconfig_typesandserver_venv__getattr__s, theMOVED_NAMESblock and the script fallback. Each time, at least one of the new tests failed. Removing theMOVED_NAMESblock also fails the import surface check intest_moved_paths.py.resources_servers/,responses_api_agents/andenvironment_servers/only had mechanical renames, and are left to CI (gym env test).Smoke run
I ran this branch on one machine with the quickstart setup: the
mcqaenvironment,simple_agent, andopenai_modelpointed at a hostedgpt-oss-20bendpoint. I rangym env start, thengym eval run --no-serve --limit 5 --num-repeats 1, twice:++head_server.port=11731on both commands++registry_server.port=11732on both commandsConfig key 'head_server' was renamed 'registry_server'; ...eval runfound it thereeval runfound it there1, 1, 0, 1, 11, 1, 0, 1, 1mean/reward0.8,pass@1/accuracy80.0mean/reward0.8,pass@1/accuracy80.0In both runs the resolved config written with the output has a
registry_serverblock, with its own port.After the dependency key rename, I ran a third start and collection with
++registry_server.port=11733and"++head_server_deps=['ignored==1.0']". The server venv installs carried the computedopenai==2.44.0pin and not the ignored value. The collection gavemean/reward0.8, and the resolved config hasparent_process_depsandparent_process_constraints. That run predates the change that drops the old dependency keys without a warning; the unit tests cover the drop, and the computed pins are unchanged.I did not run with a metrics exporter, so the new telemetry values are checked only by reading the change.
User-facing impact
Configs, scripts and code that use the old names keep working until 0.10.0. They log a deprecation warning that names the replacement. Docs and examples now use
registry_server. Benchmark results are not affected.