Repository navigation
Create a guide to build environments in NeMo Gym - #711
Merged
bxyu-nvidia merged 18 commits intoMar 10, 2026
Merged
Conversation
heatherlxd
reviewed
Feb 23, 2026
|
|
||
| # Architecture and Core Concepts | ||
|
|
||
| This section covers NeMo Gym's architecture and the foundational concepts you need before building environments. |
Contributor
There was a problem hiding this comment.
Suggested change
| This section covers NeMo Gym's architecture and the foundational concepts you need before building environments. | |
| This section translates NeMo Gym's architecture and foundational concepts into code. Read the {doc}/about/concepts, if you want to start with a conceptual overview. |
heatherlxd
reviewed
Feb 23, 2026
Comment on lines
+9
to
+17
| ## Overview: What is NeMo Gym? | ||
|
|
||
| NeMo Gym is a framework for building RL (Reinforcement Learning) environments designed specifically for training Large Language Models (LLMs). It provides a microservices-based architecture where environments (called **Resource Servers**) interact with LLM agents through well-defined HTTP APIs. | ||
|
|
||
| **Key characteristics:** | ||
| - **Microservices architecture**: Each component runs as an independent HTTP server | ||
| - **OpenAI-compatible APIs**: Uses the Responses API format for tool calling | ||
| - **Scalable**: Built as a modular, multi‑server system specifically designed for high‑throughput, parallel rollout collection across many environments and models. | ||
|
|
Contributor
There was a problem hiding this comment.
Recommend we delete this repeat.
Suggested change
| ## Overview: What is NeMo Gym? | |
| NeMo Gym is a framework for building RL (Reinforcement Learning) environments designed specifically for training Large Language Models (LLMs). It provides a microservices-based architecture where environments (called **Resource Servers**) interact with LLM agents through well-defined HTTP APIs. | |
| **Key characteristics:** | |
| - **Microservices architecture**: Each component runs as an independent HTTP server | |
| - **OpenAI-compatible APIs**: Uses the Responses API format for tool calling | |
| - **Scalable**: Built as a modular, multi‑server system specifically designed for high‑throughput, parallel rollout collection across many environments and models. |
heatherlxd
reviewed
Feb 23, 2026
heatherlxd
reviewed
Feb 23, 2026
heatherlxd
reviewed
Feb 24, 2026
shashank3959
force-pushed
the
dev/shashankv-env-guide
branch
from
March 6, 2026 18:41
4db8062 to
bf4c868
Compare
shashank3959
requested review from
arti4nvj,
bxyu-nvidia,
cwing-nvidia and
lbliii
March 7, 2026 00:57
bxyu-nvidia
requested changes
Mar 7, 2026
cwing-nvidia
requested changes
Mar 10, 2026
| +----------------------+ +------------------------+ | ||
| ``` | ||
|
|
||
| In most cases, the **Resources Server** is where your changes go: define your tool endpoints and a `verify()` method that returns a reward. NeMo Gym ships several pre-built agent servers (`simple_agent`, `swe_agents`, etc.) and model servers (`openai_model`, `vllm_model`) that you can use as-is, or you can bring your own. |
Contributor
There was a problem hiding this comment.
i feel this explanation is actually counter productive here. since we have an explicit objective to do single step, so we need to make sure we have an agent that matches this goal
Contributor
Author
There was a problem hiding this comment.
I'm not sure if we should create a separate single step agent server here for this tutorial. Let me know if we can do this as a followup if absolutely needed.
shashank3959
force-pushed
the
dev/shashankv-env-guide
branch
from
March 10, 2026 06:05
2dec070 to
3d6e806
Compare
- Explains Resource Server architecture and terminology - Includes 4 complete code examples (simple, multi-step, stateful, production) - Documents configuration YAML format and training data JSONL structure - Covers the RL training loop and server infrastructure Signed-off-by: Shashank Verma <[email protected]>
Align tutorial examples and infrastructure details with current source behavior, and mark non-verbatim code blocks consistently as simplified excerpts. Signed-off-by: Shashank Verma <[email protected]>
Break the monolithic nemo-gym-environment-guide into smaller sections Signed-off-by: Shashank Verma <[email protected]>
Co-Authored-By: Claude Opus 4.6 <[email protected]> Signed-off-by: Shashank Verma <[email protected]>
Replace misleading "distributed across machines" and "horizontal scaling" language with accurate description: modular multi-server design for high-throughput parallel rollout collection. Signed-off-by: Shashank Verma <[email protected]>
Rewrite environment-tutorials/index.md as the primary guide covering Task Preparation, Environment Design, and Model Training with an inline single-step weather example (absorbing creating-training-environment.md). Move multi-step, stateful, and real-world tutorials from training-tutorials/nemo-gym-environment-guide/ into environment-tutorials/ as progressive exercises with fixes (error handling, guard clauses, route order warnings, callouts for black-box functions). Update all cross-references. Signed-off-by: Shashank Verma <[email protected]>
Add back Model Server and Resources Server explanations, fix simple_agent description to say multi-step instead of single-turn, and remove unsubstantiated "most users" claim. Remove PNG from repo. Signed-off-by: Shashank Verma <[email protected]>
Signed-off-by: Shashank Verma <[email protected]>
Signed-off-by: Shashank Verma <[email protected]>
Signed-off-by: Shashank Verma <[email protected]>
- Fix source-aligned labels in multi-step and stateful tutorials - Clarify follow-on tutorials focus on Resources Server implementation - Add parallel_tool_calls tip for multi-step environments - Note preferred seed_session pattern vs live implementation Signed-off-by: Shashank Verma <[email protected]>
Signed-off-by: Shashank Verma <[email protected]>
Signed-off-by: Shashank Verma <[email protected]>
Signed-off-by: Shashank Verma <[email protected]>
- index.md is now a clean landing page with environment properties, tutorial cards, and navigation - single-step-environment.md contains the full weather assistant walkthrough (scaffolding through training) - Add documentation, summary, advanced verification patterns, and troubleshooting sections to single-step tutorial - Update toctree and cross-references across all tutorial files Signed-off-by: Shashank Verma <[email protected]>
Signed-off-by: Shashank Verma <[email protected]>
Reorder sections so readers see the tutorial grid cards before the environment properties tables, reducing the chance of missing them. Signed-off-by: Shashank Verma <[email protected]>
- Removes redundant diagram at the top - Tightens wording in agent server and resources server sections Signed-off-by: Shashank Verma <[email protected]>
shashank3959
force-pushed
the
dev/shashankv-env-guide
branch
from
March 10, 2026 06:13
3d6e806 to
6b1e94b
Compare
bxyu-nvidia
approved these changes
Mar 10, 2026
2 tasks
bxyu-nvidia
pushed a commit
that referenced
this pull request
Mar 10, 2026
Add comprehensive guide for building NeMo Gym environments - Explains Resource Server architecture and terminology - Includes 4 complete code examples (simple, multi-step, stateful, production) - Documents configuration YAML format and training data JSONL structure - Covers the RL training loop and server infrastructure --------- Signed-off-by: Shashank Verma <[email protected]> Co-authored-by: Claude Opus 4.6 <[email protected]>
raveedturing
pushed a commit
to turing-rlgym/Gym
that referenced
this pull request
Mar 18, 2026
Add comprehensive guide for building NeMo Gym environments - Explains Resource Server architecture and terminology - Includes 4 complete code examples (simple, multi-step, stateful, production) - Documents configuration YAML format and training data JSONL structure - Covers the RL training loop and server infrastructure --------- Signed-off-by: Shashank Verma <[email protected]> Co-authored-by: Claude Opus 4.6 <[email protected]>
mahanfathi
pushed a commit
that referenced
this pull request
Mar 24, 2026
Add comprehensive guide for building NeMo Gym environments - Explains Resource Server architecture and terminology - Includes 4 complete code examples (simple, multi-step, stateful, production) - Documents configuration YAML format and training data JSONL structure - Covers the RL training loop and server infrastructure --------- Signed-off-by: Shashank Verma <[email protected]> Co-authored-by: Claude Opus 4.6 <[email protected]>
2 tasks
This was referenced Oct 23, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add comprehensive guide for building NeMo Gym environments