About Model Evaluation#
The eval/model_eval Nemotron step scores a model on NeMo Evaluator benchmark tasks and writes an eval_results artifact to disk.
The model is always reached over HTTP through an OpenAI-compatible endpoint.
The step runs in one of two execution modes: launcher mode, which hands the run to NeMo Evaluator Launcher and can deploy a Megatron Bridge checkpoint for you, and direct mode, which runs the evaluation harness inside the step’s own job against an endpoint that you host.
The Choose A Mode section explains how to pick one.
Tip
New to model evaluation or the Nemotron CLI? Read Use The Model Evaluation Skill With Confidence for a short guide to productive agent sessions, then start the Getting Started With Model Evaluation tutorial to run one benchmark on one sample against a hosted endpoint.
When To Use#
Use eval/model_eval when the work matches one of the following.
Score a trained checkpoint with NeMo Evaluator Launcher tasks.
Score a model that you already serve, on any Nemotron backend, with one of the shipped benchmark suites such as
base_enorinstruct_en.Compare a new training run against a baseline by running the same task set against both, with generation parameters and endpoint type held constant.
Perform a verification run against a hosted endpoint, to confirm the URL, credential, and model id before scaling up.
Pair this step with a baseline evaluation before training to capture before-and-after measurements around a training change, by following Comparing Runs.
Choose A Mode#
Both modes evaluate over HTTP and write the same eval_results artifact.
They differ in who creates the endpoint and who schedules the evaluation job.
Question |
Launcher mode |
Direct mode |
|---|---|---|
How do I select it? |
|
|
Who serves the model? |
NeMo Evaluator Launcher can deploy a Megatron Bridge checkpoint ( |
You. Direct mode never creates or tears down an endpoint. |
Who schedules the evaluation job? |
The launcher’s own executor, selected with |
The Nemotron |
Where do task names come from? |
The launcher registry: |
The selected harness image: |
How is it configured? |
YAML plus dotlist overrides. |
Environment variables ( |
What is recorded? |
The saved launcher config and the launcher invocation id. |
|
Does it export to W&B? |
Optional, through |
No. Direct mode writes files and needs no tracker credentials. |
Choose launcher mode when you want the tool to deploy a Megatron Bridge checkpoint on a local machine or a Slurm cluster, or when you want the launcher’s status and log commands. Start with Getting Started With Model Evaluation and Evaluate A Deployed Checkpoint.
Choose direct mode when the model is already served, when you run on a backend the launcher has no executor for (Run:ai and DGX Cloud), or when the benchmark exists in a harness image but not in the launcher registry. Start with Run A Direct-Mode Evaluation and Run A Benchmark Suite.
Note
Launcher-managed Lepton deployment is experimental: the launcher’s Lepton executor does not accept the generic deployment type that default.yaml uses, and it does not remove created endpoints after a run.
On Lepton, host the endpoint yourself and evaluate it with direct mode.
Pipeline At A Glance#
%%{init: {'theme': 'base', 'themeVariables': { 'primaryBorderColor': '#333333', 'lineColor': '#333333', 'primaryTextColor': '#333333', 'clusterBkg': '#ffffff', 'clusterBorder': '#333333'}}}%%
flowchart LR
ckpt["Megatron Bridge checkpoint"] -->|launcher mode deploys| deploy["OpenAI-compatible<br/>endpoint"]
hosted["Endpoint you host"] --> deploy
deploy --> step["eval/model_eval<br/>launcher mode or direct mode"]
step --> results["eval_results<br/>per-task subdirs, summary.json,<br/>run_manifest.json"]
In launcher mode, NeMo Evaluator Launcher owns task execution and result files under output_dir.
In direct mode, the step runs nemo-evaluator run_eval once per task and writes summary.json, run_manifest.json, and one directory per task under output_dir.
For the contract and the on-disk layout, refer to Output Artifacts.
How It Works#
The runner reads a single YAML document and applies command-line overrides.
It then branches on the mode key.
In launcher mode, it removes Nemotron-only keys, saves the resolved launcher config, and calls
nemo_evaluator_launcher.api.functional.run_eval.In direct mode, it resolves the endpoint and task list from the environment, writes
run_manifest.json, and runsnemo-evaluator run_evalfor each task inside the current job.
The endpoint type must match the benchmark family.
Chat and instruction benchmarks need a chat endpoint.
Log-probability tasks, such as HellaSwag, need a completions endpoint with logprobs support.
If the served model name is its Hugging Face model ID, the evaluator loads that tokenizer automatically.
If you used Tokenizer Extension, set the evaluator to use the generated tokenizer.
The hosted verification config is tiny_chat.yaml.
The launcher checkpoint-evaluation config is default.yaml.
The direct-mode base config is direct.yaml, and the shipped suites base_en, mmlu_prox, milu, instruct_en, and mmlu_prox_chat each add a task list on top of it.
Generation settings live under evaluation.nemo_evaluator_config.config.params.
For the full concept set behind these design rules, refer to Concepts.
Documentation#
Run one benchmark on one sample against a hosted endpoint, end to end.
Run a productive agent session: opening brief, four required inputs, and how SKILL.md keeps the session focused.
Discover the step, run a direct-mode evaluation against an endpoint you host, run a benchmark suite, run a launcher-mode hosted evaluation, and evaluate a deployed checkpoint.
YAML schema, command-line flags, output artifact layout, benchmark catalog, and troubleshooting.
Architecture, endpoint and benchmark families, and tokenizer alignment.
All Documentation#
Guide |
What You Will Do |
Time |
|---|---|---|
Run a one-sample evaluation against a hosted endpoint |
15-30 min |
|
Drive |
10 min read |
Guide |
What You Will Do |
|---|---|
List the step, read its contract, and decide whether it applies |
|
Run the harness in the step’s own job against an endpoint you host |
|
Select a shipped suite, pin a language or subset, and select tasks with |
|
Run launcher-mode benchmarks against an already-running endpoint |
|
Pick a launcher deployment path, then point the step at the endpoint |
Reference |
What You Will Find |
|---|---|
YAML field reference for |
|
Flags, |
|
|
|
Shipped suites and task identifiers grouped by family |
|
Failure modes for both modes, with cause and recovery |
Concept |
What You Will Learn |
|---|---|
Map of the concept pages and how they relate |
|
Artifact flow through |
|
Chat versus completions endpoints, and which suites and benchmark families match each one |
|
When to set an explicit tokenizer and why tokenizer-extended models need the generated tokenizer |
Before You Start#
The Nemotron repository is synced and
uv sync --extra evaluatoris complete.A bearer token is exported as the environment variable named in
target.api_endpoint.api_key_name(launcher mode) orEVAL_API_KEY_NAME(direct mode). Hosted verification runs usually useNVIDIA_API_KEY; direct mode defaults toENDPOINT_TOKEN.A reachable evaluation endpoint URL and a model identifier the endpoint advertises. In direct mode the identifier must equal the server’s
--served-model-name.An explicit tokenizer if the served model name is an alias, the tokenizer is at a custom path, or you used Tokenizer Extension. Tokenizer Extension must use the generated tokenizer.
For direct mode on a cluster, an
env.tomlthat contains the<backend>_eval_directprofile. Refer to --batch Profile Not Found if the profile is missing.
Limitations And Considerations#
Cost: every benchmark sample issues at least one request to the endpoint, and hosted endpoints incur per-token cost.
Rate limits: hosted endpoints throttle concurrent requests, so set
evaluation.nemo_evaluator_config.config.params.parallelismto a value the endpoint can serve.Deployment:
tiny_chat.yamlanddirect.yamltarget an already-deployed endpoint;default.yamluses launcher-managed deployment for a Megatron Bridge checkpoint. Direct mode does not serve checkpoints and does not iterate over checkpoints; the loop over checkpoints is yours.Multi-subset tasks:
mmlu_prox_completions,mmlu_prox_chat,global_mmlu, andglobal_mmlu_fullcover every language by default. Pin one subset per run, as described in Run A Benchmark Suite.Sample limits: a run with
limit_samplesset scores a deterministic first-N subset, not the full split, and should be reported as such.Comparability: scores are comparable when the endpoint type, task version, tokenizer, and generation parameters are held constant across runs. The Comparing Runs section explains the framing.