Pipeline Overview#
The eval/model_eval step does not implement benchmark scoring itself.
Scoring belongs to a NeMo Evaluator harness, such as lm-evaluation-harness, that runs inside a harness container image.
The step decides how that harness is reached and who schedules it, and it does so in one of two execution modes selected by the mode key.
Launcher mode (
mode: launcher, the default) hands the resolved config to NeMo Evaluator Launcher, which owns scheduling, optional model deployment, and result files.Direct mode (
mode: direct) runs the harness in the step’s own job, so scheduling comes from the Nemotron--runor--batchprofile and the launcher’s executor layer is not used.
Architecture#
%%{init: {'theme': 'base', 'themeVariables': { 'primaryBorderColor': '#333333', 'lineColor': '#333333', 'primaryTextColor': '#333333', 'clusterBkg': '#ffffff', 'clusterBorder': '#333333'}}}%%
flowchart LR
subgraph launcher_mode["Launcher mode (-c default)"]
ckpt["Megatron Bridge iter_* checkpoint"] --> deploy["deployment.* block"]
deploy --> launcher["NeMo Evaluator Launcher run_eval"]
launcher --> lres["eval_results under output_dir"]
end
subgraph direct_mode["Direct mode (-c direct)"]
hosted["Endpoint you host"] --> env["EVAL_ENDPOINT_URL / EVAL_MODEL_HANDLE"]
env --> harness["nemo-evaluator run_eval per task<br/>inside the --batch job"]
harness --> dres["summary.json, run_manifest.json,<br/>one directory per task"]
end
Runtime Flow#
Both modes share the first three steps.
step.pycallsrun_model_evalfromruntime.py.The runtime loads the selected config from
config/<name>.yamlor a user-supplied YAML path.Hydra-style dotlist overrides are merged into the config, and
-t <task>flags are collected as task filters.
In launcher mode the runtime continues as follows.
Nemotron-only keys are removed before launcher dispatch:
dry_run,output_dir,task_filters, andrun.output_diris copied intoexecution.output_dir.W&B environment mappings are injected, and the launcher’s own schema checks run on the result so that
dry_run=truefails in the same way as a real run.The resolved launcher config is saved and printed as
launcher_config.nemo_evaluator_launcher.api.functional.run_evalis called with the launcher config and optional task filters.
In direct mode the runtime continues as follows.
The config is resolved inside the job, including
${oc.env:...}lookups forEVAL_ENDPOINT_URL,EVAL_MODEL_HANDLE, and the otherEVAL_*variables. The run fails iftarget.api_endpoint.urlortarget.api_endpoint.model_idis unset, or iftarget.api_endpoint.typeis notchatorcompletions.The task list is built from
evaluation.tasks, or used exactly as supplied when-tflags are present, and each name is validated as a plain directory name.A warning is printed if no client-side tokenizer is configured.
Each task directory under
output_diris checked; a non-empty task directory is refused unlessoverwrite=true. The output root is then claimed with a.nemotron-eval.lockfile so that two runs cannot write into the same directory.run_manifest.jsonis written before the first task starts.For each task,
config.params.*andtarget.api_endpoint.adapter_config.*are translated intonemo-evaluator run_eval --overrides, and the harness runs with its output captured to<task>/harness.log. An unrecognized top-level parameter is rejected rather than dropped.summary.jsonrecordsokorfailed(<exit code>)per task, andfailures.txtcollects the tail of each failed task’s log.
Input Artifacts#
The step declares optional checkpoint_megatron input.
Hosted endpoint runs, in either mode, do not consume a checkpoint artifact.
Launcher-managed checkpoint runs usually pass a concrete Megatron Bridge iter_* directory through deployment.checkpoint_path.
Direct mode never deploys a checkpoint: it requires an endpoint URL and a model handle.
Output Artifact#
The step produces eval_results.
In launcher mode the exact directory layout is owned by NeMo Evaluator Launcher and the selected task implementations.
In direct mode the step itself writes summary.json, run_manifest.json, failures.txt on failure, and one directory per task; the files inside each task directory are owned by the harness.
For result inspection guidance, refer to Output Artifacts.
What Is Owned Where#
Owned by Nemotron |
Owned by NeMo Evaluator Launcher (launcher mode) |
Owned by the harness image (direct mode) |
|---|---|---|
Step discovery, config loading, dotlist overrides, |
Scheduling through |
Task definitions, prompt formatting, and the files inside each |
|
|
The set of task names that |
Direct-mode preflight, |
Accepted task identifiers in |
The adapter proxy between the harness and the endpoint, configured through |
Why Two Modes Exist#
NeMo Evaluator Launcher ships executors for local, slurm, and lepton only; there is no Run:ai executor, and the Lepton executor is experimental for this step’s deployment type.
Direct mode removes the launcher’s executor layer from the path.
Because the harness runs in the step’s own job, the backend is whichever runspec profile submits the step, and that is the same code path every other Nemotron step uses.
The cost is that direct mode does not serve the model: you host the endpoint and supply its URL.