Skip to content

Move NeMo RL's nemo_gym imports to Gym's new module paths before Gym 0.10 #5254

Open

Description

@zyzhou5

Gym 0.8 reorganized the nemo_gym package. Old import paths still work through deprecation aliases (nemo_gym/_moved_paths.py), which emit a DeprecationWarning, and they are removed in Gym 0.10. The Gym bump in #5195 is RL's first Gym pin with these aliases.

RL still imports 11 moved modules, in 169 import lines (76 in nemo_rl/, 93 in tests/):

Old path New path Lines
nemo_gym.token_id_capture nemo_gym.models.token_capture 103
nemo_gym._checkpoint nemo_gym.server_runtime._checkpoint 33
nemo_gym.server_utils nemo_gym.server_runtime.base_server 9
nemo_gym.episode_types nemo_gym.core.episode_types 7
nemo_gym.rollout_collection nemo_gym.rollouts.rollout_collection 6
nemo_gym.openai_utils nemo_gym.client.openai_client 4
nemo_gym.global_config nemo_gym.config.global_config 3
nemo_gym.responses_converter nemo_gym.models.chat_completions_converter 1
nemo_gym._checkpoint.model nemo_gym.models._checkpoint 1
nemo_gym.cli.setup_command nemo_gym.server_runtime.supervisor.server_venv 1
nemo_gym.config_types nemo_gym.config.config_types 1

Names split out of modules that stay (MOVED_NAMES in the same file) need a separate pass. Nothing breaks at the current pin; the imports should move before RL bumps Gym to 0.10.

Activity

  1. self-assigned this
    on Nov 16, 2026
  2. four1er commented on Nov 23, 2026

    @four1er

    I am working on this — migrating the 169 nemo_gym import lines to the new Gym 0.8 module paths per the table above, and will open a PR shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions