Configuration
Complete syntax and field specifications for NeMo Gym configuration files.
File Locations
Server Configuration
All servers share this structure:
Model Server Fields
Keep the server ID as policy_model — agent configs reference this name by default. The ${policy_base_url}, ${policy_api_key}, and ${policy_model_name} placeholders should be defined in env.yaml at the repository root, allowing you to change model settings in one place.
Resources Server Fields
Domain values: math, coding, agent, knowledge, instruction_following, long_context, safety, games, translation, e2e, rlhf, other (see Domain)
Agent Server Fields
Agent servers must include both a resources_server and model_server block to specify which servers to use.
Dataset Configuration
Define datasets associated with agent servers for training and evaluation.
Dataset types:
example— For testing and developmenttrain— Training data (requireslicense)validation— Evaluation data (requireslicense)
License values: Apache 2.0, MIT, Creative Commons Attribution 4.0 International, Creative Commons Attribution-ShareAlike 4.0 International, TBD (see license)
Local Configuration (env.yaml)
Store secrets and local settings at the repository root. This file is gitignored.
Multi-Node Configuration
use_absolute_ip — Controls the default host servers bind to.
- Default:
false— servers use127.0.0.1(localhost). - When to use: Set to
truefor multi-node setups (e.g. multi-node Ray clusters) where servers must communicate across machines. - Effect: Resolves and uses the host’s IP address (
gethostbyname(gethostname())) instead of localhost.
Command Line Usage
To run servers, use gym env start. NeMo Gym uses Hydra for configuration management.
Loading Configs
Overriding Values
Troubleshooting
Configuration for common configuration errors and solutions.