Metadata-Version: 2.4
Name: nemo-gym
Version: 0.2.0
Summary: NeMo Gym is a library for building reinforcement learning environments
Author: NVIDIA
Maintainer: NVIDIA
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 use, reproduction,
              and distribution as defined by Sections 1 through 9 of this document.
        
              "Licensor" shall mean the copyright owner or entity authorized by
              the copyright owner that is granting the License.
        
              "Legal Entity" shall mean the union of the acting entity and all
              other entities that control, are controlled by, or are under common
              control with that entity. For the purposes of this definition,
              "control" means (i) the power, direct or indirect, to cause the
              direction or management of such entity, whether by contract or
              otherwise, or (ii) ownership of fifty percent (50%) or more of the
              outstanding shares, or (iii) beneficial ownership of such entity.
        
              "You" (or "Your") shall mean an individual or Legal Entity
              exercising permissions granted by this License.
        
              "Source" form shall mean the preferred form for making modifications,
              including but not limited to software source code, documentation
              source, and configuration files.
        
              "Object" form shall mean any form resulting from mechanical
              transformation or translation of a Source form, including but
              not limited to compiled object code, generated documentation,
              and conversions to other media types.
        
              "Work" shall mean the work of authorship, whether in Source or
              Object form, made available under the License, as indicated by a
              copyright notice that is included in or attached to the work
              (an example is provided in the Appendix below).
        
              "Derivative Works" shall mean any work, whether in Source or Object
              form, that is based on (or derived from) the Work and for which the
              editorial revisions, annotations, elaborations, or other modifications
              represent, as a whole, an original work of authorship. For the purposes
              of this License, Derivative Works shall not include works that remain
              separable from, or merely link (or bind by name) to the interfaces of,
              the Work and Derivative Works thereof.
        
              "Contribution" shall mean any work of authorship, including
              the original version of the Work and any modifications or additions
              to that Work or Derivative Works thereof, that is intentionally
              submitted to Licensor for inclusion in the Work by the copyright owner
              or by an individual or Legal Entity authorized to submit on behalf of
              the copyright owner. For the purposes of this definition, "submitted"
              means any form of electronic, verbal, or written communication sent
              to the Licensor or its representatives, including but not limited to
              communication on electronic mailing lists, source code control systems,
              and issue tracking systems that are managed by, or on behalf of, the
              Licensor for the purpose of discussing and improving the Work, but
              excluding communication that is conspicuously marked or otherwise
              designated in writing by the copyright owner as "Not a Contribution."
        
              "Contributor" shall mean Licensor and any individual or Legal Entity
              on behalf of whom a Contribution has been received by Licensor and
              subsequently incorporated within the Work.
        
           2. Grant of Copyright License. Subject to the terms and conditions of
              this License, each Contributor hereby grants to You a perpetual,
              worldwide, non-exclusive, no-charge, royalty-free, irrevocable
              copyright license to reproduce, prepare Derivative Works of,
              publicly display, publicly perform, sublicense, and distribute the
              Work and such Derivative Works in Source or Object form.
        
           3. Grant of Patent License. Subject to the terms and conditions of
              this License, each Contributor hereby grants to You a perpetual,
              worldwide, non-exclusive, no-charge, royalty-free, irrevocable
              (except as stated in this section) patent license to make, have made,
              use, offer to sell, sell, import, and otherwise transfer the Work,
              where such license applies only to those patent claims licensable
              by such Contributor that are necessarily infringed by their
              Contribution(s) alone or by combination of their Contribution(s)
              with the Work to which such Contribution(s) was submitted. If You
              institute patent litigation against any entity (including a
              cross-claim or counterclaim in a lawsuit) alleging that the Work
              or a Contribution incorporated within the Work constitutes direct
              or contributory patent infringement, then any patent licenses
              granted to You under this License for that Work shall terminate
              as of the date such litigation is filed.
        
           4. Redistribution. You may reproduce and distribute copies of the
              Work or Derivative Works thereof in any medium, with or without
              modifications, and in Source or Object form, provided that You
              meet the following conditions:
        
              (a) You must give any other recipients of the Work or
                  Derivative Works a copy of this License; and
        
              (b) You must cause any modified files to carry prominent notices
                  stating that You changed the files; and
        
              (c) You must retain, in the Source form of any Derivative Works
                  that You distribute, all copyright, patent, trademark, and
                  attribution notices from the Source form of the Work,
                  excluding those notices that do not pertain to any part of
                  the Derivative Works; and
        
              (d) If the Work includes a "NOTICE" text file as part of its
                  distribution, then any Derivative Works that You distribute must
                  include a readable copy of the attribution notices contained
                  within such NOTICE file, excluding those notices that do not
                  pertain to any part of the Derivative Works, in at least one
                  of the following places: within a NOTICE text file distributed
                  as part of the Derivative Works; within the Source form or
                  documentation, if provided along with the Derivative Works; or,
                  within a display generated by the Derivative Works, if and
                  wherever such third-party notices normally appear. The contents
                  of the NOTICE file are for informational purposes only and
                  do not modify the License. You may add Your own attribution
                  notices within Derivative Works that You distribute, alongside
                  or as an addendum to the NOTICE text from the Work, provided
                  that such additional attribution notices cannot be construed
                  as modifying the License.
        
              You may add Your own copyright statement to Your modifications and
              may provide additional or different license terms and conditions
              for use, reproduction, or distribution of Your modifications, or
              for any such Derivative Works as a whole, provided Your use,
              reproduction, and distribution of the Work otherwise complies with
              the conditions stated in this License.
        
           5. Submission of Contributions. Unless You explicitly state otherwise,
              any Contribution intentionally submitted for inclusion in the Work
              by You to the Licensor shall be under the terms and conditions of
              this License, without any additional terms or conditions.
              Notwithstanding the above, nothing herein shall supersede or modify
              the terms of any separate license agreement you may have executed
              with Licensor regarding such Contributions.
        
           6. Trademarks. This License does not grant permission to use the trade
              names, trademarks, service marks, or product names of the Licensor,
              except as required for reasonable and customary use in describing the
              origin of the Work and reproducing the content of the NOTICE file.
        
           7. Disclaimer of Warranty. Unless required by applicable law or
              agreed to in writing, Licensor provides the Work (and each
              Contributor provides its Contributions) on an "AS IS" BASIS,
              WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
              implied, including, without limitation, any warranties or conditions
              of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
              PARTICULAR PURPOSE. You are solely responsible for determining the
              appropriateness of using or redistributing the Work and assume any
              risks associated with Your exercise of permissions under this License.
        
           8. Limitation of Liability. In no event and under no legal theory,
              whether in tort (including negligence), contract, or otherwise,
              unless required by applicable law (such as deliberate and grossly
              negligent acts) or agreed to in writing, shall any Contributor be
              liable to You for damages, including any direct, indirect, special,
              incidental, or consequential damages of any character arising as a
              result of this License or out of the use or inability to use the
              Work (including but not limited to damages for loss of goodwill,
              work stoppage, computer failure or malfunction, or any and all
              other commercial damages or losses), even if such Contributor
              has been advised of the possibility of such damages.
        
           9. Accepting Warranty or Additional Liability. While redistributing
              the Work or Derivative Works thereof, You may choose to offer,
              and charge a fee for, acceptance of support, warranty, indemnity,
              or other liability obligations and/or rights consistent with this
              License. However, in accepting such obligations, You may act only
              on Your own behalf and on Your sole responsibility, not on behalf
              of any other Contributor, and only if You agree to indemnify,
              defend, and hold each Contributor harmless for any liability
              incurred by, or claims asserted against, such Contributor by reason
              of your accepting any such warranty or additional liability.
        
           END OF TERMS AND CONDITIONS
        
           APPENDIX: How to apply the Apache License to your work.
        
              To apply the Apache License to your work, attach the following
              boilerplate notice, with the fields enclosed by brackets "[]"
              replaced with your own identifying information. (Don't include
              the brackets!)  The text should be enclosed in the appropriate
              comment syntax for the file format. We also recommend that a
              file or class name and description of purpose be included on the
              same "printed page" as the copyright notice for easier
              identification within third-party archives.
        
           Copyright [yyyy] [name of copyright owner]
        
           Licensed under the Apache License, Version 2.0 (the "License");
           you may not use this file except in compliance with the License.
           You may obtain a copy of the License at
        
               http://www.apache.org/licenses/LICENSE-2.0
        
           Unless required by applicable law or agreed to in writing, software
           distributed under the License is distributed on an "AS IS" BASIS,
           WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
           See the License for the specific language governing permissions and
           limitations under the License.
        
Project-URL: Download, https://github.com/NVIDIA-NeMo/Gym/releases
Project-URL: Homepage, https://github.com/NVIDIA-NeMo/Gym
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
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Scientific/Engineering :: Mathematics
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: openai<=2.6.1
Requires-Dist: tqdm
Requires-Dist: pydantic
Requires-Dist: pydantic_core
Requires-Dist: devtools
Requires-Dist: fastapi
Requires-Dist: itsdangerous
Requires-Dist: uvicorn
Requires-Dist: uvloop
Requires-Dist: hydra-core
Requires-Dist: omegaconf
Requires-Dist: rich
Requires-Dist: mlflow-skinny
Requires-Dist: mlflow
Requires-Dist: aiohttp>=3.13.3
Requires-Dist: yappi
Requires-Dist: ray[default]
Requires-Dist: psutil
Requires-Dist: datasets
Requires-Dist: orjson
Requires-Dist: urllib3>=2.6.3
Requires-Dist: fonttools>=4.60.2
Requires-Dist: python-multipart>=0.0.22
Requires-Dist: wandb
Requires-Dist: gprof2dot
Requires-Dist: pydot
Provides-Extra: dev
Requires-Dist: pre-commit>=3.6.0; extra == "dev"
Requires-Dist: mypy>=1.8.0; extra == "dev"
Requires-Dist: ruff; extra == "dev"
Requires-Dist: coverage[toml]; extra == "dev"
Requires-Dist: pytest-cov; extra == "dev"
Requires-Dist: pytest-xdist; extra == "dev"
Requires-Dist: pytest; extra == "dev"
Requires-Dist: pytest-asyncio; extra == "dev"
Requires-Dist: requests-mock; extra == "dev"
Dynamic: license-file

# NeMo Gym

**[Requirements](#-requirements)** • **[Quick Start](#-quick-start)** • **[Available Environments](#-available-environments)** • **[Documentation & Resources](#-documentation--resources)** • **[Community & Support](#-community--support)** • **[Citations](#-citations)**

NeMo Gym is a library for building reinforcement learning (RL) training environments for large language models (LLMs). It provides infrastructure to develop environments, scale rollout collection, and integrate seamlessly with your preferred training framework.

## 🏆 Why NeMo Gym?

- Scaffolding and patterns to accelerate environment development: multi-step, multi-turn, and user modeling scenarios
- Contribute environments without expert knowledge of the entire RL training loop
- Test environments and throughput end-to-end, independent of the RL training loop
- Interoperable with existing environments, systems, and RL training frameworks
- Growing collection of training environments and datasets for Reinforcement Learning from Verifiable Reward (RLVR)

> [!IMPORTANT]
> NeMo Gym is currently in early development. You should expect evolving APIs, incomplete documentation, and occasional bugs. We welcome contributions and feedback - for any changes, please open an issue first to kick off discussion!

## 🔗 Ecosystem

NeMo Gym is part of [NVIDIA NeMo](https://docs.nvidia.com/nemo/gym/latest/about/ecosystem.html#related-nemo-libraries), NVIDIA's GPU-accelerated platform for building and training generative AI models. NeMo Gym integrates with a growing number of RL training frameworks and environment libraries; see the [Ecosystem](https://docs.nvidia.com/nemo/gym/latest/about/ecosystem.html) page for full details and tutorials.

**Training Frameworks:** [NeMo RL](https://docs.nvidia.com/nemo/gym/latest/training-tutorials/nemo-rl-grpo/index.html) • [OpenRLHF](https://github.com/OpenRLHF/OpenRLHF/blob/main/examples/python/agent_func_nemogym_executor.py) • [Unsloth](https://docs.nvidia.com/nemo/gym/latest/training-tutorials/unsloth-training.html) • [more →](https://docs.nvidia.com/nemo/gym/latest/about/ecosystem.html#training-framework-integrations)

**Environment Libraries:** [Reasoning Gym](https://github.com/NVIDIA-NeMo/Gym/tree/main/resources_servers/reasoning_gym) • [Aviary](https://github.com/NVIDIA-NeMo/Gym/tree/main/resources_servers/aviary) • [more →](https://docs.nvidia.com/nemo/gym/latest/about/ecosystem.html#environment-library-integrations)

## 📋 Requirements

NeMo Gym is designed to run on standard development machines:

| Hardware Requirements | Software Requirements |
| --------------------- | --------------------- |
| **GPU**: Not required for NeMo Gym library operation<br>• GPU may be needed for specific resources servers or model inference (see individual server documentation) | **Operating System**:<br>• Linux (Ubuntu 20.04+, or equivalent)<br>• macOS (11.0+ for x86_64, 12.0+ for Apple Silicon)<br>• Windows (via WSL2) |
| **CPU**: Any modern x86_64 or ARM64 processor (e.g., Intel, AMD, Apple Silicon) | **Python**: 3.12 or higher |
| **RAM**: Minimum 8 GB (16 GB+ recommended for larger environments) | **Git**: For cloning the repository |
| **Storage**: Minimum 5 GB free disk space for installation and basic usage | **Internet Connection**: Required for downloading dependencies and API access |

**Additional Requirements**

- **API Keys**: OpenAI API key with available credits (for the quickstart examples)
  - Other model providers supported (Azure OpenAI, self-hosted models via vLLM)
- **Ray**: Automatically installed as a dependency (no separate setup required)

## 🚀 Quick Start

Install NeMo Gym, start the servers, and collect your first verified rollouts for RL training.

### Setup
```bash
# Clone the repository
git clone git@github.com:NVIDIA-NeMo/Gym.git
cd Gym

# Install UV (Python package manager)
curl -LsSf https://astral.sh/uv/install.sh | sh
source $HOME/.local/bin/env

# Create virtual environment
uv venv --python 3.12
source .venv/bin/activate

# Install NeMo Gym
uv sync --extra dev --group docs
```

### Configure Your API Key
Create an `env.yaml` file that contains your OpenAI API key and the [policy model](https://docs.nvidia.com/nemo/gym/latest/about/concepts/key-terminology.html#term-Policy-Model) you want to use. Replace `your-openai-api-key` with your actual key. This file helps keep your secrets out of version control while still making them available to NeMo Gym.

```bash
echo "policy_base_url: https://api.openai.com/v1
policy_api_key: your-openai-api-key
policy_model_name: gpt-4.1-2025-04-14" > env.yaml
```

> [!NOTE]
> We use GPT-4.1 in this quickstart because it provides low latency (no reasoning step) and works reliably out-of-the-box. NeMo Gym is **not limited to OpenAI models**—you can use self-hosted models via vLLM or any OpenAI-compatible inference server. See the [documentation](https://docs.nvidia.com/nemo/gym/latest/get-started/detailed-setup.html) for details.

### Start Servers

**Terminal 1 (start servers)**:
```bash
# Start servers (this will keep running)
config_paths="resources_servers/example_single_tool_call/configs/example_single_tool_call.yaml,\
responses_api_models/openai_model/configs/openai_model.yaml"
ng_run "+config_paths=[${config_paths}]"
```

**Terminal 2 (interact with agent)**:
```bash
# In a NEW terminal, activate environment
source .venv/bin/activate

# Interact with your agent
python responses_api_agents/simple_agent/client.py
```

### Collect Rollouts

**Terminal 2** (keep servers running in Terminal 1):
```bash
# Create a simple dataset with one query
echo '{"responses_create_params":{"input":[{"role":"developer","content":"You are a helpful assistant."},{"role":"user","content":"What is the weather in Seattle?"}]}}' > weather_query.jsonl

# Collect verified rollouts
ng_collect_rollouts \
    +agent_name=example_single_tool_call_simple_agent \
    +input_jsonl_fpath=weather_query.jsonl \
    +output_jsonl_fpath=weather_rollouts.jsonl

# View the result
cat weather_rollouts.jsonl | python -m json.tool
```
This generates training data with verification scores!

### Clean Up Servers

**Terminal 1** with the running servers: Ctrl+C to stop the ng_run process.

### Next Steps

Now that you can generate rollouts, choose your path:

- **Start training** — Train models using NeMo Gym with your preferred RL framework. See the [Training Tutorials](https://docs.nvidia.com/nemo/gym/latest/training-tutorials/index.html).

- **Use an existing environment** — Browse the [Available Environments](#-available-environments) below to find an environment that matches your goals.

- **Build a custom environment** — Implement or integrate existing tools and define task verification logic. Get started with the [Creating a Training Environment](https://docs.nvidia.com/nemo/gym/latest/environment-tutorials/creating-training-environment.html) tutorial.


## 📦 Available Environments

NeMo Gym includes a curated collection of environments for training and evaluation across multiple domains:

### Example Environment Patterns

Purpose: Demonstrate NeMo Gym patterns and concepts.

<!-- START_EXAMPLE_ONLY_SERVERS_TABLE -->
| Name               | Demonstrates                         | Config                                                                                                                             | README                                                                      |
| ------------------ | ------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
| Multi Step         | Multi-step tool calling              | <a href='resources_servers/example_multi_step/configs/example_multi_step.yaml'>example_multi_step.yaml</a>                         | <a href='resources_servers/example_multi_step/README.md'>README</a>         |
| Session State Mgmt | Session state management (in-memory) | <a href='resources_servers/example_session_state_mgmt/configs/example_session_state_mgmt.yaml'>example_session_state_mgmt.yaml</a> | <a href='resources_servers/example_session_state_mgmt/README.md'>README</a> |
| Single Tool Call   | Basic single-step tool calling       | <a href='resources_servers/example_single_tool_call/configs/example_single_tool_call.yaml'>example_single_tool_call.yaml</a>       | <a href='resources_servers/example_single_tool_call/README.md'>README</a>   |
<!-- END_EXAMPLE_ONLY_SERVERS_TABLE -->

### Environments for Training & Evaluation

Purpose: Training-ready environments with curated datasets.

> [!TIP]
> Each resources server includes example data, configuration files, and tests. See each server's README for details.

<!-- START_TRAINING_SERVERS_TABLE -->
| Resources Server                              | Domain                | Description                                                                                                                                        | Value                                                                    | Train | Validation | License                                                   | Config                                                                                                                                                                                                                      | Dataset                                                                                                                                                        |
| --------------------------------------------- | --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ | ----- | ---------- | --------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Arc Agi                                       | knowledge             | Solve puzzles designed to test intelligence. See https://arcprize.org/arc-agi.                                                                     | Improve puzzle-solving capabilities.                                     | -     | ✓          | -                                                         | <a href='resources_servers/arc_agi/configs/arc_agi.yaml'>arc_agi.yaml</a>                                                                                                                                                   | -                                                                                                                                                              |
| Aviary                                        | agent                 | Multi-hop question answering on the HotPotQA dataset with Wikipedia search                                                                         | Improve knowledge and agentic capability                                 | ✓     | ✓          | Apache 2.0                                                | <a href='resources_servers/aviary/configs/hotpotqa_aviary.yaml'>hotpotqa_aviary.yaml</a>                                                                                                                                    | -                                                                                                                                                              |
| Aviary                                        | math                  | GSM8k benchmark with calculator tool                                                                                                               | Test math and agentic capability                                         | ✓     | ✓          | Apache 2.0                                                | <a href='resources_servers/aviary/configs/gsm8k_aviary.yaml'>gsm8k_aviary.yaml</a>                                                                                                                                          | -                                                                                                                                                              |
| Calendar                                      | agent                 | Multi-turn calendar scheduling dataset. User states events and constraints in natural language; model schedules events to satisfy all constraints. | Improve multi-turn instruction following capabilities                    | ✓     | ✓          | Apache 2.0                                                | <a href='resources_servers/calendar/configs/calendar.yaml'>calendar.yaml</a>                                                                                                                                                | <a href='https://huggingface.co/datasets/nvidia/Nemotron-RL-agent-calendar_scheduling'>Nemotron-RL-agent-calendar_scheduling</a>                               |
| Calendar                                      | agent                 | Multi-turn calendar scheduling dataset. User states events and constraints in natural language; model schedules events to satisfy all constraints. | Improve multi-turn instruction following capabilities                    | ✓     | ✓          | Creative Commons Attribution 4.0 International            | <a href='resources_servers/calendar/configs/calendar_v2.yaml'>calendar_v2.yaml</a>                                                                                                                                          | <a href='https://huggingface.co/datasets/nvidia/Nemotron-RL-Instruction-Following-Calendar-v2'>Nemotron-RL-Instruction-Following-Calendar-v2</a>               |
| Code Gen                                      | coding                | Model must submit the right code to solve a problem                                                                                                | Improve competitive coding capabilities                                  | ✓     | ✓          | Apache 2.0                                                | <a href='resources_servers/code_gen/configs/code_gen.yaml'>code_gen.yaml</a>                                                                                                                                                | <a href='https://huggingface.co/datasets/nvidia/nemotron-RL-coding-competitive_coding'>nemotron-RL-coding-competitive_coding</a>                               |
| Equivalence Llm Judge                         | agent                 | Short bash command generation questions with LLM-as-a-judge                                                                                        | Improve foundational bash and IF capabilities                            | ✓     | ✓          | GNU General Public License v3.0                           | <a href='resources_servers/equivalence_llm_judge/configs/nl2bash-equivalency.yaml'>nl2bash-equivalency.yaml</a>                                                                                                             | -                                                                                                                                                              |
| Equivalence Llm Judge                         | knowledge             | Short answer questions with LLM-as-a-judge                                                                                                         | Improve knowledge-related benchmarks like GPQA / HLE                     | -     | -          | -                                                         | <a href='resources_servers/equivalence_llm_judge/configs/equivalence_llm_judge.yaml'>equivalence_llm_judge.yaml</a>                                                                                                         | -                                                                                                                                                              |
| Genrm Compare                                 | rlhf                  | GenRM pairwise comparison for RLHF training                                                                                                        | Compare multiple candidate responses using GenRM model                   | ✓     | -          | Creative Commons Attribution 4.0 International            | <a href='resources_servers/genrm_compare/configs/genrm_compare.yaml'>genrm_compare.yaml</a>                                                                                                                                 | <a href='https://huggingface.co/datasets/nvidia/Nemotron-RL-Identity-Following-v1'>Nemotron-RL-Identity-Following-v1</a>                                       |
| Google Search                                 | agent                 | Multi-choice question answering problems with search tools integrated                                                                              | Improve knowledge-related benchmarks with search tools                   | ✓     | -          | Apache 2.0                                                | <a href='resources_servers/google_search/configs/google_search.yaml'>google_search.yaml</a>                                                                                                                                 | <a href='https://huggingface.co/datasets/nvidia/Nemotron-RL-knowledge-web_search-mcqa'>Nemotron-RL-knowledge-web_search-mcqa</a>                               |
| Instruction Following                         | instruction_following | Instruction following datasets targeting IFEval and IFBench style instruction following capabilities                                               | Improve IFEval and IFBench                                               | ✓     | -          | Apache 2.0                                                | <a href='resources_servers/instruction_following/configs/instruction_following.yaml'>instruction_following.yaml</a>                                                                                                         | <a href='https://huggingface.co/datasets/nvidia/Nemotron-RL-instruction_following'>Nemotron-RL-instruction_following</a>                                       |
| Jailbreak Detection                           | safety                | Jailbreak detection with Nemotron judge + combined reward                                                                                          | -                                                                        | -     | ✓          | -                                                         | <a href='resources_servers/jailbreak_detection/configs/jailbreak_detection_nemotron_combined_reward_tp8.yaml'>jailbreak_detection_nemotron_combined_reward_tp8.yaml</a>                                                     | -                                                                                                                                                              |
| Math Advanced Calculations                    | agent                 | An instruction following math environment with counter-intuitive calculators                                                                       | Improve instruction following capabilities in specific math environments | ✓     | -          | Apache 2.0                                                | <a href='resources_servers/math_advanced_calculations/configs/math_advanced_calculations.yaml'>math_advanced_calculations.yaml</a>                                                                                          | <a href='https://huggingface.co/datasets/nvidia/Nemotron-RL-math-advanced_calculations'>Nemotron-RL-math-advanced_calculations</a>                             |
| Math Formal Lean                              | math                  | Lean4 formal proof verification environment                                                                                                        | Improve formal theorem proving capabilities                              | ✓     | -          | Apache 2.0                                                | <a href='resources_servers/math_formal_lean/configs/nemotron_clean_easy.yaml'>nemotron_clean_easy.yaml</a>                                                                                                                  | -                                                                                                                                                              |
| Math Formal Lean                              | math                  | Lean4 formal proof verification environment                                                                                                        | Improve formal theorem proving capabilities                              | ✓     | -          | Apache 2.0                                                | <a href='resources_servers/math_formal_lean/configs/nemotron_first_try_hard.yaml'>nemotron_first_try_hard.yaml</a>                                                                                                          | -                                                                                                                                                              |
| Math Formal Lean                              | math                  | Lean4 formal proof verification environment                                                                                                        | Improve formal theorem proving capabilities                              | ✓     | -          | Apache 2.0                                                | <a href='resources_servers/math_formal_lean/configs/nemotron_medium_500.yaml'>nemotron_medium_500.yaml</a>                                                                                                                  | -                                                                                                                                                              |
| Math Formal Lean                              | math                  | Lean4 formal proof verification environment                                                                                                        | Improve formal theorem proving capabilities                              | ✓     | -          | Apache 2.0                                                | <a href='resources_servers/math_formal_lean/configs/nemotron_very_easy.yaml'>nemotron_very_easy.yaml</a>                                                                                                                    | -                                                                                                                                                              |
| Math Formal Lean                              | math                  | Lean4 formal proof verification environment                                                                                                        | Improve formal theorem proving capabilities                              | ✓     | -          | MIT                                                       | <a href='resources_servers/math_formal_lean/configs/math_formal_lean.yaml'>math_formal_lean.yaml</a>                                                                                                                        | -                                                                                                                                                              |
| Math Formal Lean                              | math                  | Lean4 formal proof verification environment with multi-turn self-correction                                                                        | Improve formal theorem proving capabilities                              | ✓     | -          | MIT                                                       | <a href='resources_servers/math_formal_lean/configs/math_formal_lean_multi_turn.yaml'>math_formal_lean_multi_turn.yaml</a>                                                                                                  | -                                                                                                                                                              |
| Math With Code                                | math                  | Model solves competitive math problems using simple calculator tools                                                                               | Improve math and simple tool use capabilities                            | ✓     | -          | Apache 2.0                                                | <a href='resources_servers/math_with_code/configs/math_with_code.yaml'>math_with_code.yaml</a>                                                                                                                              | -                                                                                                                                                              |
| Math With Judge                               | math                  | DAPO17k math dataset with math-verify                                                                                                              | Improve math capabilities including AIME 24 / 25                         | ✓     | ✓          | Apache 2.0                                                | <a href='resources_servers/math_with_judge/configs/dapo17k.yaml'>dapo17k.yaml</a>                                                                                                                                           | -                                                                                                                                                              |
| Math With Judge                               | math                  | MathStackOverflow math dataset with math-verify                                                                                                    | Improve math capabilities including AIME 24 / 25                         | ✓     | ✓          | Creative Commons Attribution-ShareAlike 4.0 International | <a href='resources_servers/math_with_judge/configs/math_stack_overflow.yaml'>math_stack_overflow.yaml</a>                                                                                                                   | <a href='https://huggingface.co/datasets/nvidia/Nemotron-RL-math-stack_overflow'>Nemotron-RL-math-stack_overflow</a>                                           |
| Math With Judge                               | math                  | OpenMathReasoning math dataset with math-verify and LLM-as-a-judge                                                                                 | Improve math capabilities including AIME 24 / 25                         | ✓     | ✓          | Creative Commons Attribution 4.0 International            | <a href='resources_servers/math_with_judge/configs/math_with_judge.yaml'>math_with_judge.yaml</a>                                                                                                                           | <a href='https://huggingface.co/datasets/nvidia/Nemotron-RL-math-OpenMathReasoning'>Nemotron-RL-math-OpenMathReasoning</a>                                     |
| Mcqa                                          | knowledge             | Multi-choice question answering problems                                                                                                           | Improve benchmarks like MMLU / GPQA / HLE                                | ✓     | ✓          | Apache 2.0                                                | <a href='resources_servers/mcqa/configs/mcqa.yaml'>mcqa.yaml</a>                                                                                                                                                            | <a href='https://huggingface.co/datasets/nvidia/Nemotron-RL-knowledge-mcqa'>Nemotron-RL-knowledge-mcqa</a>                                                     |
| Mini Swe Agent                                | coding                | A software development with mini-swe-agent orchestration                                                                                           | Improve software development capabilities, like SWE-bench                | ✓     | ✓          | MIT                                                       | <a href='resources_servers/mini_swe_agent/configs/mini_swe_agent.yaml'>mini_swe_agent.yaml</a>                                                                                                                              | <a href='https://huggingface.co/datasets/SWE-Gym/SWE-Gym'>SWE-Gym</a>                                                                                          |
| Multichallenge                                | knowledge             | MultiChallenge benchmark evaluation with LLM judge                                                                                                 | -                                                                        | ✓     | -          | Creative Commons Attribution 4.0 International            | <a href='resources_servers/multichallenge/configs/multichallenge_nrl.yaml'>multichallenge_nrl.yaml</a>                                                                                                                      | <a href='https://huggingface.co/datasets/nvidia/Nemotron-RL-Instruction-Following-MultiTurnChat-v1'>Nemotron-RL-Instruction-Following-MultiTurnChat-v1</a>     |
| Multichallenge                                | knowledge             | MultiChallenge benchmark evaluation with LLM judge                                                                                                 | -                                                                        | ✓     | -          | TBD                                                       | <a href='resources_servers/multichallenge/configs/multichallenge.yaml'>multichallenge.yaml</a>                                                                                                                              | -                                                                                                                                                              |
| Newton Bench                                  | math                  | Scientific law discovery tasks through agentic experimentation across 12 physics domains                                                           | Improve science, reasoning, and tool use capabilities                    | ✓     | -          | Apache 2.0                                                | <a href='resources_servers/newton_bench/configs/newton_bench.yaml'>newton_bench.yaml</a>                                                                                                                                    | -                                                                                                                                                              |
| Ns Tools                                      | agent                 | NeMo Skills tool execution with math verification                                                                                                  | -                                                                        | -     | -          | -                                                         | <a href='resources_servers/ns_tools/configs/ns_tools.yaml'>ns_tools.yaml</a>                                                                                                                                                | -                                                                                                                                                              |
| Over Refusal Detection                        |                       | -                                                                                                                                                  | -                                                                        | ✓     | -          | -                                                         | <a href='resources_servers/over_refusal_detection/configs/over_refusal_detection.yaml'>over_refusal_detection.yaml</a>                                                                                                      | -                                                                                                                                                              |
| Reasoning Gym                                 | knowledge             | Over 100 tasks including algebra, arithmetic, computation, cognition, geometry, graph theory, logic, and many common games.                        | Improve robustness, generalization, broad knowledge and reasoning        | ✓     | -          | Apache 2.0                                                | <a href='resources_servers/reasoning_gym/configs/reasoning_gym.yaml'>reasoning_gym.yaml</a>                                                                                                                                 | <a href='https://huggingface.co/datasets/nvidia/Nemotron-RL-ReasoningGym-v1'>Nemotron-RL-ReasoningGym-v1</a>                                                   |
| Single Step Tool Use With Argument Comparison | agent                 | Conversational tool-use RL from expert trajectories; behavior cloning per step across auth, lookup, and servicing domains.                         | -                                                                        | ✓     | ✓          | Creative Commons Attribution 4.0 International            | <a href='resources_servers/single_step_tool_use_with_argument_comparison/configs/single_step_tool_use_with_argument_comparison.yaml'>single_step_tool_use_with_argument_comparison.yaml</a>                                 | <a href='https://huggingface.co/datasets/nvidia/Nemotron-RL-Agentic-Conversational-Tool-Use-Pivot-v1'>Nemotron-RL-Agentic-Conversational-Tool-Use-Pivot-v1</a> |
| Single Step Tool Use With Argument Comparison | agent                 | General function-calling RL dataset using expert trajectories; behavior cloning to match expert tool calls per step.                               | -                                                                        | ✓     | ✓          | Creative Commons Attribution 4.0 International            | <a href='resources_servers/single_step_tool_use_with_argument_comparison/configs/toolcall_schema_single_step_tool_use_with_argument_comparison.yaml'>toolcall_schema_single_step_tool_use_with_argument_comparison.yaml</a> | <a href='https://huggingface.co/datasets/nvidia/Nemotron-RL-Agentic-Function-Calling-Pivot-v1'>Nemotron-RL-Agentic-Function-Calling-Pivot-v1</a>               |
| Single Step Tool Use With Argument Comparison | agent                 | GitHub-issue dataset for software-engineering agents; refactored from SWE-Gym and SWE-Bench-Verified for NeMo Gym.                                 | -                                                                        | ✓     | ✓          | Creative Commons Attribution 4.0 International            | <a href='resources_servers/single_step_tool_use_with_argument_comparison/configs/swe_pivot_single_step_tool_use_with_argument_comparison.yaml'>swe_pivot_single_step_tool_use_with_argument_comparison.yaml</a>             | <a href='https://huggingface.co/datasets/nvidia/Nemotron-RL-Agentic-SWE-Pivot-v1'>Nemotron-RL-Agentic-SWE-Pivot-v1</a>                                         |
| Single Step Tool Use With Argument Comparison | agent                 | The model must output the next correct call in a given trajectory involving search tools.                                                          | Improve agentic search capability.                                       | ✓     | ✓          | Apache 2.0                                                | <a href='resources_servers/single_step_tool_use_with_argument_comparison/configs/search_pivot_single_step_tool_use_with_argument_comparison.yaml'>search_pivot_single_step_tool_use_with_argument_comparison.yaml</a>       | -                                                                                                                                                              |
| Structured Outputs                            | instruction_following | Check if responses are following structured output requirements in prompts                                                                         | Improve instruction following capabilities                               | ✓     | ✓          | Apache 2.0                                                | <a href='resources_servers/structured_outputs/configs/structured_outputs_json.yaml'>structured_outputs_json.yaml</a>                                                                                                        | <a href='https://huggingface.co/datasets/nvidia/Nemotron-RL-instruction_following-structured_outputs'>Nemotron-RL-instruction_following-structured_outputs</a> |
| Swerl Gen                                     | coding                | Running sandboxed evaluation for SWE-style tasks (either patch generation or reproduction test generation)                                         | Improve SWE capabilities useful for benchmarks like SWE-bench            | ✓     | ✓          | Apache 2.0                                                | <a href='resources_servers/swerl_gen/configs/swerl_gen.yaml'>swerl_gen.yaml</a>                                                                                                                                             | -                                                                                                                                                              |
| Swerl Llm Judge                               | coding                | SWE-style multiple-choice LLM-judge tasks scored via <solution>...</solution> choice.                                                              | Improve SWE capabilities useful for benchmarks like SWE-bench            | ✓     | ✓          | MIT                                                       | <a href='resources_servers/swerl_llm_judge/configs/swerl_llm_judge.yaml'>swerl_llm_judge.yaml</a>                                                                                                                           | -                                                                                                                                                              |
| Tavily Search                                 | agent                 | Model uses search tools to satisfy a user query.                                                                                                   | Measure agentic search capability                                        | ✓     | ✓          | Apache 2.0                                                | <a href='resources_servers/tavily_search/configs/tavily_search_judge_vllm_model.yaml'>tavily_search_judge_vllm_model.yaml</a>                                                                                               | -                                                                                                                                                              |
| Terminus Judge                                | agent                 | single-step terminal based task (rubrics v4 judge prompt)                                                                                          | Improve on terminal-style tasks                                          | ✓     | ✓          | Apache 2.0                                                | <a href='resources_servers/terminus_judge/configs/terminus_judge.yaml'>terminus_judge.yaml</a>                                                                                                                              | -                                                                                                                                                              |
| Terminus Judge                                | agent                 | single-step terminal based task (simple judge prompt)                                                                                              | Improve on terminal-style tasks                                          | ✓     | ✓          | Apache 2.0                                                | <a href='resources_servers/terminus_judge/configs/terminus_judge_simple.yaml'>terminus_judge_simple.yaml</a>                                                                                                                | -                                                                                                                                                              |
| Text To Sql                                   | coding                | Text-to-SQL generation with LLM-as-a-judge equivalence checking                                                                                    | Improve text-to-SQL capabilities across multiple dialects                | -     | -          | -                                                         | <a href='resources_servers/text_to_sql/configs/text_to_sql.yaml'>text_to_sql.yaml</a>                                                                                                                                       | -                                                                                                                                                              |
| Workplace Assistant                           | agent                 | Workplace assistant multi-step tool-using environment                                                                                              | Improve multi-step tool use capability                                   | ✓     | ✓          | Apache 2.0                                                | <a href='resources_servers/workplace_assistant/configs/workplace_assistant.yaml'>workplace_assistant.yaml</a>                                                                                                               | <a href='https://huggingface.co/datasets/nvidia/Nemotron-RL-agent-workplace_assistant'>Nemotron-RL-agent-workplace_assistant</a>                               |
| Xlam Fc                                       | agent                 | Salesforce xlam-function-calling-60k tool calling tasks                                                                                            | Improve tool-calling capabilities                                        | ✓     | ✓          | Apache 2.0                                                | <a href='resources_servers/xlam_fc/configs/xlam_fc.yaml'>xlam_fc.yaml</a>                                                                                                                                                   | -                                                                                                                                                              |
<!-- END_TRAINING_SERVERS_TABLE -->

## 📖 Documentation & Resources

- **[Documentation](https://docs.nvidia.com/nemo/gym/latest/index.html)** - Technical reference docs
- **[Training Tutorials](https://docs.nvidia.com/nemo/gym/latest/training-tutorials/index.html)** - Train with NeMo Gym environments
- **[API Reference](https://docs.nvidia.com/nemo/gym/latest/apidocs/index.html)** - Complete class and function reference
 

## 🤝 Community & Support

We'd love your contributions! Here's how to get involved:

- **[Report Issues](https://github.com/NVIDIA-NeMo/Gym/issues)** - Bug reports and feature requests
- **[Contributing Guide](https://docs.nvidia.com/nemo/gym/latest/contribute/index.html)** - How to contribute code, docs, new environments, or training framework integrations

## 📚 Citations

If you use NeMo Gym in your research, please cite it using the following BibTeX entry:

```bibtex
@misc{nemo-gym,
  title = {NeMo Gym: An Open Source Library for Scaling Reinforcement Learning Environments for LLM},
  howpublished = {\url{https://github.com/NVIDIA-NeMo/Gym}},
  author={NVIDIA},
  year = {2025},
  note = {GitHub repository},
}
```
