skillfed

nemo-gym

NeMo Gym is a library for building reinforcement learning environments

nemo-gym v0.5.0 857.1K downloads/30d#4,884 on PyPI1,114
Permissive license Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for… (full text in the JSON record) Active released

What it is and what it does

NeMo Gym is a framework for building and running evaluation environments where language models and agents interact with tasks to solve problems. It abstracts the evaluation loop—task datasets, agent harnesses, verifiers, and execution state—into modular, extensible components. You define or reuse an environment, configure your model (openai, anthropic, local via vLLM, or hosted providers), and run agents against tasks at scale, collecting trajectories and metrics.

The library is designed for teams needing reproducible, stateful evaluation across shared environments, or transitioning from evaluation into agent optimization and training. It includes a hub of popular benchmarks and agent harnesses, integrates with training frameworks, and provides CLI tools for discovery, validation, and diagnostics. With 31 runtime dependencies (ray, mlflow, wandb, fastapi, pydantic, aiohttp, and others), it trades breadth of built-in capability for a heavier dependency footprint.

Use it for:

  • Evaluate agents on standardized benchmarks with reproducible verifiers and shared task datasets across teams.
  • Collect training data by running agents on tasks at scale, generating trajectories for supervised fine-tuning or reinforcement learning.
  • Benchmark agent skill impact by running the same tasks with different skill sets to isolate which capabilities drive performance.
  • Run tool-using agents in isolated sandboxes to safely test code execution and external tool interactions.
  • Transition from evaluation to training by using the same environment and verifier definitions with training frameworks.
  • Diagnose evaluation failures to identify which tasks failed, why, and the highest-impact fixes.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

NeMo Gym provides infrastructure for building, running, and scaling evaluation and training environments where agents interact with tasks, datasets, verifiers, and execution state to solve problems.

Yes, if you need to evaluate or train agents in stateful environments at scale with reproducible verifiers and shared benchmarks. Active maintenance, permissive license, low install friction, and integration with major providers make it solid for agentic workflows. However, the strict Python 3.13.14+ requirement and heavy dependency footprint may conflict with existing projects. Early development status and evolving APIs warrant caution in production.

Install

nemo-gym on PyPI

pip

pip install nemo-gym

uv

uv add nemo-gym

poetry

poetry add nemo-gym

Installing nemo-gym

Before you install

Low install friction with a pure Python wheel. Active maintenance with a release 7 days old and 1114 repository stars. However, requires Python 3.13.14 or higher, which is a strict version floor that may conflict with existing projects on older Python versions.

License in practice

Apache License 2.0 is permissive—you can use, modify, and distribute NeMo Gym freely in commercial and private projects, provided you include the license and notice of changes. No viral copyleft obligations.

Quickstart

# Install NeMo Gym (requires Python 3.13.14+)
git clone git@github.com:NVIDIA-NeMo/Gym.git
cd Gym
uv venv --python 3.13.14 && source .venv/bin/activate
uv sync

# Configure model (e.g., OpenAI)
echo 'policy_base_url: https://api.openai.com/v1' > env.yaml
echo 'policy_api_key: <your-key>' >> env.yaml
echo 'policy_model_name: gpt-4.1-2025-04-14' >> env.yaml

# Start servers
gym env start --resources-server mcqa --model-type openai_model

# Run evaluation
gym eval run --no-serve --agent mcqa_simple_agent --input data/example.jsonl --output results.jsonl --limit 5 --num-repeats 1

Requires Python 3.13.14 or higher; earlier Python versions are not supported. Installation uses uv package manager, not pip. Requires API keys for model providers (openai, anthropic, or self-hosted via vLLM).

Verify before relying

  • Whether the 31 runtime dependencies are all required for basic usage or only for advanced features.
  • Performance characteristics when scaling to thousands of concurrent environments—actual throughput and latency benchmarks.
  • Stability guarantees given the 'early development' status and 'evolving APIs' warning.
  • Whether Windows WSL2 support is fully tested or experimental.

Package facts

License Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for… (full text in the JSON record) (permissive)
Python support capped below the current Python release (>=3.13.14)
Install friction low — pure-Python wheel
Runtime dependencies 31 — openai, anthropic, tqdm, pydantic, pydantic_core, devtools, fastapi, mcp, itsdangerous, uvicorn, uvloop, hydra-core, omegaconf, rich, mlflow-skinny, mlflow, aiohttp, yappi, ray, psutil, datasets, orjson, urllib3, fonttools, python-multipart, pyarrow, wandb, GitPython, pyasn1, gprof2dot
Maintenance actively maintained — 7 days since the last release
Last repo commit
First released
Downloads 857,100/month — #4,884 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: nemo_gym-0.5.0-py3-none-any.whl

Keywords: reinforcement-learning, RL, agent, agentic, LLM, large-language-models, training-data, rollout, trajectory, verification, verifier, reward, tool-calling, function-calling, data-collection, NeMo, NVIDIA

Development Status :: 4 - BetaEnvironment :: ConsoleIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.13Topic :: Scientific/EngineeringTopic :: Scientific/Engineering :: Artificial IntelligenceTopic :: Scientific/Engineering :: MathematicsTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python Modules

Tags

agent evaluation frameworkreinforcement learning environmentsLLM agent benchmarkingscalable task verificationtool-calling agent trainingstateful environment testingagentic AI evaluation
agent-evaluationrl-trainingbenchmark-hub

More Libraries packages

Further reading