Key Terminology

View as Markdown

Essential vocabulary for agent evaluation, policy-model training, RL workflows, and NeMo Gym. You’ll encounter these terms throughout the tutorials and documentation.

Deeper treatment: Environments, Evaluation, Training, Architecture.

Overview

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.

Each run follows:

  1. seed_session — set up isolated state for this attempt
  2. agent loop — call the model (policy), use tools, repeat until done
  3. verify — score the attempt → reward

Two compositions matter:

Built fromNotes
AgentModel + Agent harnessThe harness owns the loop, context, and stop conditions, and routes calls to environment-owned tools.
EnvironmentDataset + Verifier + State (+ env tools)The task world the agent acts on and is scored against. The model is outside the environment.

The agent harness belongs to the agent, not the environment. In Gym packaging, an environment config still names which agent server to run — that is a wiring reference, not ownership of the harness.

The model (also called the policy) is what you call for generation — 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 shape can be used for benchmark eval (fixed taskset / protocol) or for training (rewards or synthetic data); the main differences are task split and contamination controls, not a different environment type.

ConceptIn NeMo Gym
DatasetJSONL rows with responses_create_params + verifier_metadataPrepare Data
Agent harnessImplemented by the Agent server (responses_api_agents/) — Agent Server
Verifier, per-attempt state, env toolsImplemented by the Resources server (resources_servers/): seed_session() initializes state; tools mutate it; verify() scores the attempt — Build Verifiers
ModelServed by the Model server (responses_api_models/) — wraps local or remote endpoints — Model Server
ProtocolResponses API (Chat Completions converted via middleware when needed)

Glossary

Tasks & rollouts

TermDefinition
TaskOne problem for the agent to solve — one dataset row (responses_create_params + verifier_metadata).
DatasetCollection of tasks plus metadata needed for scoring (usually JSONL). See Prepare Data.
Rollout / trajectoryRollout (verb): execute an agent 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.
Task attemptOne rollout for a specific task. Multiple attempts per task capture different approaches and support pass@k.
TraceDebug-oriented log of a rollout (timing, tool I/O, metadata) beyond the scored trajectory.
Rollout batchMultiple rollouts generated together (across tasks for throughput, or grouped on one task for methods like GRPO).
Rollout collectionRunning inference, tools, and verification at scale to produce scored rollouts. Start with the Quickstart or Evaluate.

Environment

TermDefinition
EnvironmentThe task world an agent runs against, excluding the model: Dataset + Verifier + State (plus environment tools). Gym configs also reference an agent harness for packaging. See Environments and Build Environments.
StatePer-attempt mutable world (files, DB, tool results, and so on). seed_session() starts a clean session; tools update that session; it is not a snapshot of the whole environment config.
VerifierScores a task attempt into a reward (typically 0–1) via verify() on the resources server. Also called scorer or grader. See Build Verifiers.
RewardNumerical score (typically 0.0–1.0) for how well the attempt did — used as eval metrics and as the RL learning signal.
SandboxRuntime with isolated execution per attempt (e.g. one container). Broader runtimes (local process, Docker, Apptainer) host execution. See Sandboxes.
Environment surfaceThe tools and per-task state the agent acts on.
Environment runtimeWhere and how the environment surface executes, such as a local process, Kubernetes service, or sandbox pool.

Agent & model

TermDefinition
Model / policy modelThe model being trained or evaluated — local weights or a remote endpoint, usually via the Model server. See Model Server.
Agent harnessHow the model interacts with the environment: loops model calls, routes tools, manages context, and decides when the task is done. See Agent Server.
AgentModel + agent harness.
Rollout driverCoordinates an episode and records its trajectory.
Multi-turnDialogue across turns where conversation context (and often state) persists.
Multi-stepSequential tool calls or intermediate steps in the agent loop before completion (may be single- or multi-turn). See Multi-Step Environment.
Tool useFunction calling — invoking external capabilities (APIs, code execution, databases, and so on).

Evaluation

TermDefinition
EvaluationRun an agent on tasks, score results, and measure performance. See Evaluation and the Evaluate workflow.
BenchmarkRepeatable, versioned evaluation built on an environment: canonical dataset split, prompt configuration, metrics, and comparison protocol. Not every environment is used as a benchmark. See Benchmarks.
pass@kFraction of tasks with at least one success among k rollouts. See Aggregate Metrics.

Training

TermDefinition
SFT (Supervised Fine-Tuning)Train from examples of good behavior (demonstration data: successful / high-reward rollouts).
RL (Reinforcement Learning)Improve the policy through environment interaction and reward signals.
Online / offlineOnline: 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.
DPO (Direct Preference Optimization)Offline preference training from pairs of rollouts (preferred vs dispreferred).
GRPO (Group Relative Policy Optimization)Online RL that compares groups of rollouts on the same task relative to each other. See Training Tutorials (e.g. NeMo RL GRPO).
Demonstration dataSFT examples from successful (high-reward) rollouts.
Preference pairsDPO data: same task, high-reward vs low-reward rollouts (preferred vs dispreferred).

Responses API and Chat Completions are listed in the mapping table above; see Architecture and Model Server.