Gym Configuration
Before running GRPO training, you need to configure how NeMo RL connects to NeMo Gym. The training config file contains Gym-specific parameters that control data loading, environment interaction, and validation.
Goal: Understand the Gym configuration parameters for RL training.
Time: ~10 minutes (read)
In this section, you will learn:
- How to configure data paths for training and validation
- How to enable and configure NeMo Gym in NeMo RL
Prerequisites
- Read About Workplace Assistant to understand the training environment
Configuration File Location
The full training configuration file lives in the NeMo RL repository, not in NeMo Gym:
examples/nemo_gym/grpo_workplace_assistant_nemotron_nano_v2_9b.yaml
Paths in that file are relative to the NeMo RL repo root. After Setup, NeMo Gym is checked out inside that repo at 3rdparty/Gym-workspace/Gym/, which is why the data paths below point there.
Gym Configuration Sections
There are two Gym-specific sections in the NeMo RL training config: data and env.
Data Section
Environment Section
The vllm_model_for_training.yaml config is required for NeMo RL training integration.
Agent behavior such as max_steps is not set in the NeMo RL config. It comes from the Gym-side config listed in config_paths — for this tutorial, max_steps: 6 under workplace_assistant_simple_agent.responses_api_agents.simple_agent in resources_servers/workplace_assistant/configs/workplace_assistant.yaml.
To override a Gym config value from NeMo RL, nest it under env.nemo_gym using the same key path as the Gym config. The upstream example does this for the policy model:
Next Steps
With the Gym configuration understood, learn about the GRPO training parameters:
Continue to NeMo RL Configuration →