NeMo Gym is a library to build, run, and scale benchmarks and training environments for models and agents, with verifiers, harnesses, and local coordination servers.
Overview
NeMo Gym helps teams evaluate and improve models and agents through composable environments. An environment bundles a task dataset, an agent harness, a verifier that scores completion, and per-task execution state.
It targets stateful settings such as code execution, tool calling, and sandboxes where you need repeatable evaluation across teams, many repeats per task, or thousands of concurrent rollouts for training. You can move from evaluation to agent optimization and RL without swapping stacks.
The project supplies modular interfaces for agents, environments, tasks, and verifiers, a hub of benchmark environments, optional built-in agent harnesses, sandbox isolation, and hooks for OpenTelemetry tracing. It integrates with external environment libraries, training frameworks, and harnesses such as OpenHands, Harbor, and LangGraph-related workflows.
A typical evaluation flow installs the library, configures models in YAML, starts local resource and agent servers, then runs the gym CLI against tasks. Hardware needs are modest for the core library—modern Linux, macOS, or Windows via WSL2 and Python—while GPUs may be required for specific inference backends. A container image is available for benchmarks that need extra media codecs restored inside the image.
Key features
- Modular agents, tasks, and verifiers
- Environment hub of benchmarks
- Built-in and custom agent harnesses
- Concurrent sandbox execution
- gym CLI for evaluation runs
- Integration with external RL trainers
- Harbor-format task folder support
Use cases
- Benchmark coding agents on SWE-style tasks
- Large-scale RL rollout collection
- Reproducible team evaluation pipelines
- Tool-calling agent regression tests
- Combine external benchmark libraries