Repository navigation
docs(fern): rewrite key terminology glossary (#1500) #2355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
08cac1c
7e23125
79c1e50
8df9b0d
54d57ac
6e1c237
2fd8e42
5cd0537
2478228
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,136 +1,93 @@ | ||
| --- | ||
| title: "Key Terminology" | ||
| description: "" | ||
| description: "Essential vocabulary for evaluation, model training, RL workflows, and NeMo Gym." | ||
| --- | ||
| Essential vocabulary for model training, RL workflows, and NeMo Gym. This glossary defines terms you'll encounter throughout the tutorials and documentation. | ||
|
|
||
| ## Rollout & Data Collection Terms | ||
| **Rollout / Trajectory** | ||
| Essential vocabulary for evaluation, model training, RL workflows, and NeMo Gym. You'll encounter these terms throughout the tutorials and documentation. | ||
|
|
||
| **Rollout** (verb) is the process of executing a policy in an environment. **Rollout** (noun) is one execution and its result. A **trajectory** is the ordered record of what happened during that execution. The terms are often used informally as synonyms, but a Responses API result or rollout metrics record is not necessarily a complete standardized trajectory record. See the [trajectory capability matrix](/reference/trajectory-capabilities). | ||
| Deeper treatment: [Environments](/about/concepts/environments), [Evaluation](/about/concepts/evaluation), [Training](/about/concepts/training), [Architecture](/about/architecture). | ||
|
|
||
| **Rollout Batch** | ||
| ## Overview | ||
|
|
||
| A collection of multiple rollouts generated together, typically for the same task. Used for efficient parallel processing. | ||
| A **dataset** is a JSONL file of **tasks** (one row = one problem). Running the agent on a task produces a **rollout** (also called a **trajectory**) — one attempt and its record. | ||
|
|
||
| **Environment** | ||
| Each run follows: | ||
|
|
||
| The conditions in which your model operates. Functionally, this typically refers to tools the model has access to. | ||
| 1. **seed_session** — set up isolated state for this attempt | ||
| 2. **agent loop** — call the model, use tools, repeat until done | ||
| 3. **verify** — score the attempt → **reward** | ||
|
|
||
| **Task** | ||
| Two compositions matter: | ||
|
|
||
| An input prompt paired with environment setup (tools + verification). What you want models to learn to do. | ||
| | | Built from | Notes | | ||
| | --- | --- | --- | | ||
| | **Agent** | **Model** + **Agent harness** | The harness turns model calls into a loop with tools and stop conditions. | | ||
| | **Environment** | **Dataset** + **Agent harness** + **Verifier** + **State** | Everything needed to run and score a task. The **model is outside** the environment. | | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. One important distinction here is that the Agent harness is not a responsibility of the Environment | Environment | Dataset + Agent harness + Verifier + State | Everything needed to run and score a task. The model is outside the environment. |
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Addressed: Environment is now |
||
|
|
||
| **Task Instance** | ||
| The **model** is the LLM you call — local weights or a remote API endpoint. In Gym it is usually exposed by the **Model server** (or your harness can call an endpoint directly). The same environment can be used as a **benchmark** (fixed eval) or a **training environment** (learn from rewards / synthetic data). | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: may be a vlm, cf super
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Went with modality-neutral wording instead of listing LLM/VLM: model / policy is what you call for generation (local weights or remote endpoint). That covers text, vision-language, and other modalities without baking a modality into the glossary.
sephmard marked this conversation as resolved.
Resolved
|
||
|
|
||
| A single rollout attempt for a specific task. Multiple instances per task capture different approaches. | ||
| | Concept | NeMo Gym component | | ||
| | --- | --- | | ||
| | Dataset | JSONL (`responses_create_params` + `verifier_metadata`) — [Prepare Data](/data) | | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think calling this a component is confusing. I would put the link to the data section, and the function names
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Addressed: retitled the map to “In NeMo Gym” and described Dataset as JSONL row fields + Prepare Data (not as a server “component”). |
||
| | Agent harness | **Agent server** (`responses_api_agents/`) — [Agent Server](/agent-server) | | ||
| | Verifier + state (+ env tools) | **Resources server** (`resources_servers/`) — [Build Verifiers](/build-verifiers) | | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is confusing to me. the state is obtained by a snapshot of the environment, no?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Clarified: per-attempt state is the mutable session world inside the resources server ( |
||
| | Model | **Model server** (`responses_api_models/`) — wraps local or remote LLM endpoints — [Model Server](/model-server) | | ||
| | Protocol | **Responses API** (Chat Completions converted via middleware when needed) | | ||
|
|
||
| **Training environment** | ||
| ## Glossary | ||
|
|
||
| A set of tasks that share the same environment setup compiled into a single prompt dataset. | ||
| ### Tasks & rollouts | ||
|
|
||
| **Trace** | ||
| | Term | Definition | | ||
| | --- | --- | | ||
| | **Task** | One problem for the agent to solve — one dataset row (`responses_create_params` + `verifier_metadata`). | | ||
| | **Dataset** | Collection of tasks plus metadata needed for scoring (usually JSONL). See [Prepare Data](/data). | | ||
| | **Rollout / trajectory** | **Rollout** (verb): execute a policy in an environment — take actions and record what happens. **Rollout** (noun) / **trajectory**: the ordered record of one attempt (states, actions, rewards). In Gym these names are aliases; architecture calls the resulting trajectory a *rollout*. Multiple rollouts per task support metrics like pass@k. See [trajectory capabilities](/reference/trajectory-capabilities). | | ||
|
sephmard marked this conversation as resolved.
Resolved
|
||
| | **Task attempt** | One rollout for a specific task. Multiple attempts per task capture different approaches and support pass@k. | | ||
| | **Trace** | Debug-oriented log of a rollout (timing, tool I/O, metadata) beyond the scored trajectory. | | ||
| | **Rollout batch** | Multiple rollouts generated together (across tasks for throughput, or grouped on one task for methods like GRPO). | | ||
| | **Rollout collection** | Running inference, tools, and verification at scale to produce scored rollouts. Start with the [Quickstart](/get-started/quickstart) or [Evaluate](/evaluation). | | ||
|
|
||
| Detailed log of a rollout including metadata for debugging or interpretability. | ||
| ### Environment | ||
|
|
||
| **Data Generation Process** | ||
| | Term | Definition | | ||
| | --- | --- | | ||
| | **Environment** | Everything required for an agent to complete a task except the model: `Dataset + Agent harness + Verifier + State`. See [Environments](/about/concepts/environments) and [Build Environments](/environment-tutorials). | | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same recommendation as before.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Addressed: Environment glossary row matches Overview — harness is a packaging reference, not part of the Environment formula. |
||
| | **State** | Mutable world for one attempt; each attempt starts clean via session (`seed_session`). | | ||
| | **Verifier** | Scores a task attempt into a **reward** (typically 0–1) via `verify()` on the resources server. Also called scorer or grader. See [Build Verifiers](/build-verifiers). | | ||
| | **Reward** | Numerical score (typically 0.0–1.0) for how well the attempt did — used as eval metrics and as the RL learning signal. | | ||
| | **Sandbox** | Runtime with isolated execution per attempt (e.g. one container). Broader runtimes (local process, Docker, Apptainer) host the environment. See [Sandboxes](/infrastructure/sandbox). | | ||
|
|
||
| The complete pipeline from input prompt to scored rollout, involving rollout orchestration, model inference, tool usage, and verification. | ||
| ### Agent & model | ||
|
|
||
| **Rollout Collection** | ||
| | Term | Definition | | ||
| | --- | --- | | ||
| | **Model / policy model** | The LLM being trained or evaluated — local weights or a remote endpoint, usually via the Model server. See [Model Server](/model-server). | | ||
| | **Agent harness** | How the model interacts with the environment: loops model calls, routes tools, manages context, and decides when the task is done. See [Agent Server](/agent-server). | | ||
| | **Agent** | Model + agent harness. | | ||
| | **Multi-turn** | Dialogue across turns where conversation context (and often state) persists. | | ||
| | **Multi-step** | Sequential tool calls or intermediate steps in the agent loop before completion (may be single- or multi-turn). See [Multi-Step Environment](/environment-tutorials/multi-step-environment). | | ||
| | **Tool use** | Function calling — invoking external capabilities (APIs, code execution, databases, and so on). | | ||
|
|
||
| The process of applying your data generation pipeline to input prompts at scale. | ||
| ### Evaluation | ||
|
|
||
| **Demonstration Data** | ||
| | Term | Definition | | ||
| | --- | --- | | ||
| | **Evaluation** | Run an agent on tasks, score results, and measure performance. See [Evaluation](/about/concepts/evaluation) and the [Evaluate](/evaluation) workflow. | | ||
| | **Benchmark** | Repeatable evaluation built on an environment: fixed dataset, metrics, and comparison protocol. Not every environment is a benchmark. See [Benchmarks](/evaluation/benchmarks). | | ||
| | **pass@k** | Fraction of tasks with at least one success among *k* rollouts. See [Aggregate Metrics](/evaluation/aggregate-metrics). | | ||
|
|
||
| Training data format for SFT consisting of input prompts paired with successful rollouts. Shows models examples of correct behavior. | ||
| ### Training | ||
|
|
||
| **Preference Pairs** | ||
| | Term | Definition | | ||
| | --- | --- | | ||
| | **Training environment** | Environment used to improve a model — as an online RL reward signal, or to generate synthetic training data. See [Training](/about/concepts/training). | | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not sure if there is need to make a distinction between a "Training environment" from an Environment apart from the taskset and data contamination
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed — dropped “Training environment” as a separate type. Overview now says the same environment shape is used for benchmark eval vs training; differences are mainly task split / contamination controls. |
||
| | **Demonstration data** | SFT examples from successful (high-reward) rollouts. | | ||
| | **Preference pairs** | DPO data: same task, high-reward vs low-reward rollouts (preferred vs dispreferred). | | ||
| | **SFT** | Supervised fine-tuning from examples of good behavior (demonstration data). | | ||
| | **RL** | Improve the policy through environment interaction and reward signals. | | ||
| | **Online / offline** | **Online**: update the policy from rewards while interacting (e.g. GRPO). **Offline**: train from pre-collected rollouts (e.g. SFT, DPO). See [Offline training with rollouts](/tutorials/training-tutorials/offline-training-w-rollouts). | | ||
| | **DPO** | Offline preference training from pairs of rollouts. | | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: i would expand the acronyms
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. +1
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Addressed in
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Addressed — full names are expanded in the Training glossary. |
||
| | **GRPO** | Online RL that compares groups of rollouts on the same task relative to each other. See [Training Tutorials](/tutorials/training-tutorials) (e.g. [NeMo RL GRPO](/tutorials/training-tutorials/nemo-rl-grpo)). | | ||
|
|
||
| Training data format for DPO consisting of the same prompt with two different responses, where one is preferred over the other. | ||
|
|
||
| --- | ||
|
|
||
| ## Architecture Terms | ||
|
|
||
| **Policy Model** | ||
|
|
||
| The primary LLM being trained or evaluated - the "decision-making brain" you want to improve. | ||
|
|
||
| **Resources Server** | ||
|
|
||
| The FastAPI service (under `resources_servers/`) that holds per-task state, exposes the environment's tools, and implements `verify()` to score a rollout into a reward — the verifier-and-state component of an environment. (In Gym an *environment* is a resources server together with an agent and dataset(s); see the `environments/` directory.) Every environment has exactly one resources server. | ||
|
|
||
| **Agent Server (Responses API Agent)** | ||
|
|
||
| The FastAPI service (under `responses_api_agents/`) that drives the model through a task — the harness that runs the multi-step / tool-calling loop against a resources server. Gym ships several built-in harnesses (e.g. `simple_agent`, `aviary_agent`, and others under `responses_api_agents/`); pick whichever fits your control flow, or bring your own. | ||
|
|
||
| **Model Server (Responses API Model)** | ||
|
|
||
| The FastAPI service (under `responses_api_models/`) that wraps an LLM endpoint (vLLM, OpenAI, etc.) behind NeMo Gym's Responses API and manages the token IDs needed for training. Agents refer to it by name (commonly `policy_model`). | ||
|
|
||
| **Orchestration** | ||
|
|
||
| Coordination logic that manages when to call models, which tools to use, and how to sequence multi-step operations. | ||
|
|
||
| **Verifier** | ||
|
|
||
| Scoring logic that evaluates rollouts and produces reward signals. Also referred to as a scorer or grader. Colloquially, "verifier" may also refer to a training environment with verifiable rewards. | ||
|
|
||
| **Service Discovery** | ||
|
|
||
| Mechanism by which distributed NeMo Gym components find and communicate with each other across machines. | ||
|
|
||
| **Reward / Reward Signal** | ||
|
|
||
| Numerical score (typically 0.0-1.0) indicating how well a task was accomplished. | ||
|
|
||
| ## Training Approaches | ||
|
|
||
| **SFT (Supervised Fine-Tuning)** | ||
|
|
||
| Training approach using examples of good model behavior. Shows successful rollouts as training data. | ||
|
|
||
| **RL (Reinforcement Learning)** | ||
|
|
||
| Training approach where models learn through trial-and-error interaction with environments using reward signals. | ||
|
|
||
| **Online vs Offline Training** | ||
|
|
||
| - **Online**: Model learns while interacting with environment in real-time - **Offline**: Model learns from pre-collected rollout data | ||
|
|
||
| **DPO (Direct Preference Optimization)** | ||
|
|
||
| An offline RL training approach using pairs of rollouts where one is preferred over another. Teaches better vs worse responses. | ||
|
|
||
| **GRPO (Group Relative Policy Optimization)** | ||
|
|
||
| Reinforcement learning algorithm that optimizes policies by comparing groups of rollouts relative to each other. Used for online RL training with language models. | ||
|
|
||
| ## Interaction Patterns | ||
|
|
||
| **Multi-turn** | ||
|
|
||
| Conversations spanning multiple exchanges where context and state persist across turns. | ||
|
|
||
| **Multi-step** | ||
|
|
||
| Complex tasks requiring agents to break problems into sequential steps, often using tools and intermediate reasoning. | ||
|
|
||
| **Tool Use / Function Calling** | ||
|
|
||
| Models invoking external capabilities (APIs, calculators, databases) to accomplish tasks beyond text generation. | ||
|
|
||
| ## Technical Infrastructure | ||
|
|
||
| **Responses API** | ||
|
|
||
| OpenAI's interface for model interactions, including function calls and multi-turn conversation items. NeMo Gym uses it as its native agent/model protocol. It does not include every trajectory field, such as executor timing and resolution status. | ||
|
|
||
| **Chat Completions API** | ||
|
|
||
| OpenAI's simpler interface for basic LLM interactions. NeMo Gym includes middleware to convert formats. | ||
|
|
||
| **vLLM** | ||
|
|
||
| High-performance inference server for running open-source language models locally. Alternative to commercial APIs. | ||
| Responses API and Chat Completions are listed in the component table above; see [Architecture](/about/architecture) and [Model Server](/model-server). | ||
Uh oh!
There was an error while loading. Please reload this page.