Configuration Reference#
This page documents the YAML schema consumed by nemotron steps run eval/model_eval.
The step loads a YAML config, applies Hydra-style overrides, and then branches on mode.
In launcher mode it removes Nemotron-only keys, saves a launcher config, and calls nemo_evaluator_launcher.api.functional.run_eval.
In direct mode it resolves the endpoint and task list from the environment and runs nemo-evaluator run_eval per task in the current job.
Keys are grouped below as shared, launcher-only, or direct-only.
Sample Configs#
Config |
Mode |
Purpose |
|---|---|---|
|
launcher |
Hosted chat endpoint verification run. Uses |
|
launcher |
Megatron Bridge checkpoint evaluation through NeMo Evaluator Launcher. Uses launcher-managed |
|
direct |
Base config for direct mode. Reads the endpoint from |
|
direct |
|
|
direct |
|
|
direct |
|
|
direct |
|
|
direct |
|
The suite configs use defaults: direct.yaml to inherit every key in the base file and override only what differs.
Top-Level Keys#
# Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Direct mode — the harness runs in THIS job; Nemotron's runspec executors do
# the scheduling. Backend-agnostic by construction.
#
# uv run nemotron steps run eval/model_eval -c direct --batch <profile>
#
# The profile decides the backend; the step does not care which.
#
# Why this exists: NeMo Evaluator Launcher's own executors cover local/slurm/
# lepton only — there is no Run:ai backend — and its cloud executors carry
# defects documented in this step's README. Direct mode never enters that
# layer, so every backend Nemotron already supports works the same way.
#
# NOTE ON LOCAL RUNS: the `evaluator` extra installs the launcher, NOT any
# benchmark harness -- `nemo-evaluator ls` in a plain checkout reports zero
# harness packages, so a local run cannot resolve a task name. Run inside the
# harness image this config selects (see `harness_image` below), or install a
# harness into your environment first.
#
# REQUIREMENTS
# 1. The step's container must ship the harness (`nemo-evaluator` on PATH).
# Use a harness image, e.g.
# run.env.container_image=nvcr.io/nvidia/eval-factory/lm-evaluation-harness:26.03
# or a nemo-evaluator variant (:latest-lm-eval, :latest-gym, :latest-full).
# 2. The model is reached over HTTP:
# Host it separately and set EVAL_ENDPOINT_URL, or bring the server up
# in the same allocation where the backend allows it. Either way it is
# just a URL here.
# 3. Results are written to output_dir, which must be on storage that
# outlives the job (a mount), not the container's ephemeral disk.
#
# REQUIRED ENVIRONMENT
# EVAL_ENDPOINT_URL OpenAI-compatible URL, e.g. https://host/v1/completions
# EVAL_MODEL_HANDLE model id the endpoint serves (must equal its
# --served-model-name, or every request 404s)
# EVAL_RESULTS_DIR results directory on shared storage
# OPTIONAL
# EVAL_API_KEY_NAME name of the env var holding the endpoint token (never
# the token itself). Defaults to ENDPOINT_TOKEN. NeMo
# Evaluator RAISES if a key name is given but that
# variable is unset, so for an endpoint that needs no
# auth set EVAL_API_KEY_NAME=null explicitly.
mode: direct
dry_run: false
# Recorded as `harness.image` in run_manifest.json. Top-level ON PURPOSE: the
# generic runner strips `run.env` before invoking the step, so an image read
# from there is present in a local run and null in every submitted one --
# exactly the runs whose provenance matters. `run.env.container_image` below
# interpolates from here, and `run.env.env_vars` forwards the resolved value
# back into the job, so the executor and the manifest cannot disagree.
harness_image: ${oc.env:EVAL_HARNESS_IMAGE,nvcr.io/nvidia/eval-factory/lm-evaluation-harness:26.03}
output_dir: ${oc.env:EVAL_RESULTS_DIR}
task_filters: []
run:
env:
# Must contain the harness. NOT overridable by a --run/--batch profile:
# build_job_config() re-applies YAML-owned resource keys (container_image,
# nodes, gpus_per_node, ...) after merging env.toml, so the config wins.
# Select the image with EVAL_HARNESS_IMAGE, or on the command line with
# `run.env.container_image=<image>` (CLI overrides land in the YAML before
# the profile is merged, so they do win).
container_image: ${harness_image}
env_vars:
# `harness_image` above is an ${oc.env:} lookup, and the config is
# serialised UNRESOLVED -- so it is re-resolved inside the container,
# where EVAL_HARNESS_IMAGE is not set unless we send it. Without this
# line the executor runs the pinned image while the manifest records the
# default tag, which is worse than recording nothing.
#
# Read from run.env.container_image rather than harness_image so this
# tracks whatever the executor was finally given -- including a CLI
# `run.env.container_image=...` override. It resolves on the submitting
# host, after profile merging, i.e. at the same point the executor takes
# its image.
EVAL_HARNESS_IMAGE: ${run.env.container_image}
wandb:
entity: null
project: null
target:
api_endpoint:
url: ${oc.env:EVAL_ENDPOINT_URL}
model_id: ${oc.env:EVAL_MODEL_HANDLE}
# Base models: completions + few-shot. Instruct models: chat.
type: ${oc.env:EVAL_ENDPOINT_TYPE,completions}
# Name of the env var holding the key — never the key itself. Set
# EVAL_API_KEY_NAME=null for an endpoint that requires no authentication;
# leaving this pointed at an unset variable is an error, not a no-op.
api_key_name: ${oc.env:EVAL_API_KEY_NAME,ENDPOINT_TOKEN}
evaluation:
nemo_evaluator_config:
config:
params:
parallelism: 16
request_timeout: 3600
max_retries: 5
# Smoke with a small number first; null runs the full split.
limit_samples: ${oc.decode:${oc.env:EVAL_LIMIT_SAMPLES,null}}
extra:
# REQUIRED for completions endpoints. lm-evaluation-harness builds
# log-likelihood requests client-side, so it loads this with
# AutoTokenizer. Left unset it falls back to the `model=` value --
# your served-model-name -- and dies with RepositoryNotFoundError
# naming that as a missing HF repo, which points nowhere near here.
# An HF repo id or a local snapshot path both work.
# Tokenizer-extended checkpoints need their OWN tokenizer; the base
# tokenizer would mis-tokenize every prompt and score silently wrong.
tokenizer: ${oc.env:EVAL_TOKENIZER,null}
tokenizer_backend: huggingface
tokenized_requests: false
target:
api_endpoint:
# The adapter proxy between the harness and your endpoint. Caching is
# the load-bearing setting: without it the harness holds every request
# and response for a task in memory, and a task past roughly 30k
# requests dies client-side -- on a large CPU shape, while the endpoint
# is still answering 200 to every call. `output_dir` defaults to a
# per-task directory under output_dir when left unset.
adapter_config:
use_caching: true
output_dir: null
use_request_logging: true
max_logged_requests: 10
use_response_logging: true
max_logged_responses: 10
use_progress_tracking: false
tasks:
- name: adlr_arc_challenge_llama_25_shot
- name: hellaswag
# Tiny hosted chat endpoint smoke-test config.
#
# Export endpoint settings before running:
# export NEMO_EVALUATOR_MODEL_ID=<exact model id>
# export NEMO_EVALUATOR_MODEL_URL=<OpenAI-compatible chat completions endpoint URL>
# export NEMO_EVALUATOR_API_KEY_NAME=NVIDIA_API_KEY
# export NEMO_EVALUATOR_ENDPOINT_TYPE=chat
dry_run: false
output_dir: ./results-tiny-chat
task_filters: null
execution:
type: local
mode: sequential
output_dir: ${output_dir}
deployment:
type: none
target:
api_endpoint:
model_id: ${oc.env:NEMO_EVALUATOR_MODEL_ID,''}
url: ${oc.env:NEMO_EVALUATOR_MODEL_URL,''}
api_key_name: ${oc.env:NEMO_EVALUATOR_API_KEY_NAME,NVIDIA_API_KEY}
type: ${oc.env:NEMO_EVALUATOR_ENDPOINT_TYPE,chat}
evaluation:
nemo_evaluator_config:
config:
params:
temperature: 0.0
top_p: 1.0
max_new_tokens: 1024
max_retries: 5
parallelism: 1
request_timeout: 3600
limit_samples: 1
target:
api_endpoint:
adapter_config:
output_dir: /results
use_progress_tracking: false
use_caching: true
caching_dir: /results/cache
use_response_logging: true
max_logged_responses: 5
use_request_logging: true
max_logged_requests: 5
tasks:
- name: mmlu_instruct
# Standard NeMo Evaluator Launcher config for Megatron checkpoint evaluation.
#
# This mirrors the Nano3/Super3 eval shape: the `run` section is used by
# Nemotron for env/profile/artifact interpolation, then removed before handing
# the config to NeMo Evaluator Launcher.
dry_run: false
output_dir: ./results
run:
# No W&B by default: point `deployment.checkpoint_path` at a concrete
# Megatron Bridge iter_* directory. Artifact discovery would otherwise resolve
# a W&B reference here even when checkpoint_path overrides its use, and abort
# with "No API key configured" for anyone without W&B credentials.
# To source the checkpoint from a W&B artifact instead, set:
# model: model:latest # consumed by ${art:model,path}
env:
# OUTER executor: which runspec backend runs this step. `--run/--batch`
# overrides it.
executor: local
# INNER executor: which backend NeMo Evaluator Launcher submits to from
# inside this step. Deliberately a SEPARATE field -- when both read
# `run.env.executor`, submitting the step to Slurm silently asks the
# launcher to submit again from inside that allocation, and there is no
# way to express "outer local, launcher Slurm" at all.
# Supported by the launcher: local, slurm, lepton. There is no Run:ai
# executor -- use mode=direct for that.
launcher_executor: local
container_image: nvcr.io/nvidia/nemo:25.11.nemotron_3_nano
host: ${oc.env:HOSTNAME,localhost}
user: ${oc.env:USER,''}
account: null
partition: null
remote_job_dir: ${oc.env:PWD}/.nemotron
time: "04:00:00"
# Only read by the commented-out `export.wandb` block at the bottom.
# wandb:
# entity: null
# project: null
# `host:VAR` makes VAR mandatory -- the launcher raises if it is unset on the
# submitting host. Only HF_HOME is unconditional here. If your model or dataset
# is gated, add: HF_TOKEN: host:HF_TOKEN
env_vars:
HF_HOME: lit:${run.env.remote_job_dir}/hf
execution:
type: ${oc.select:run.env.launcher_executor,local}
hostname: ${run.env.host}
username: ${run.env.user}
account: ${run.env.account}
partition: ${run.env.partition}
output_dir: ${output_dir}
walltime: ${run.env.time}
num_nodes: ${oc.select:run.env.nodes,1}
deployment:
n_tasks: ${execution.num_nodes}
# W&B export is opt-in. Uncomment to push results, and export WANDB_API_KEY
# (plus WANDB_PROJECT / WANDB_ENTITY if your setup needs them).
# auto_export:
# destinations:
# - wandb
mounts:
deployment: {}
evaluation: {}
mount_home: false
deployment:
type: generic
image: ${run.env.container_image}
checkpoint_path: ${art:model,path}
multiple_instances: false
port: 1235
served_model_name: nemo-model
health_check_path: /v1/health
command: >-
bash -c 'export TRITON_CACHE_DIR=/tmp/triton_cache;
python /opt/Export-Deploy/scripts/deploy/nlp/deploy_ray_inframework.py
--megatron_checkpoint /checkpoint/
--num_gpus ${oc.select:run.env.gpus_per_node,1}
--tensor_model_parallel_size 1
--expert_model_parallel_size 1
--port 1235
--num_replicas 1'
endpoints:
chat: /v1/chat/completions/
completions: /v1/completions/
health: /v1/health
env_vars:
HF_HOME: lit:${run.env.remote_job_dir}/hf
NIM_CACHE_PATH: lit:${run.env.remote_job_dir}/nim
VLLM_CACHE_ROOT: lit:${run.env.remote_job_dir}/vllm
# gated models/datasets also need: HF_TOKEN: host:HF_TOKEN
evaluation:
nemo_evaluator_config:
config:
params:
max_retries: 5
parallelism: 4
request_timeout: 6000
limit_samples: null
extra:
tokenizer: ${deployment.checkpoint_path}/tokenizer
tokenizer_backend: huggingface
target:
api_endpoint:
adapter_config:
output_dir: /results
use_progress_tracking: false
use_caching: true
caching_dir: /results/cache
use_response_logging: true
max_logged_responses: 10
use_request_logging: true
max_logged_requests: 10
tasks:
- name: adlr_mmlu
nemo_evaluator_config:
config:
params:
top_p: 0.0
- name: hellaswag
# W&B export is fully opt-in. `needs_wandb()` treats the mere PRESENCE of an
# `export.wandb` section as a request for credentials, which triggers ambient
# W&B discovery and forwards WANDB_API_KEY to the job -- for a config that never
# asked to export anything. Uncomment this block (and `run.wandb` above, and
# `execution.auto_export`) only when you actually want results pushed.
# export:
# wandb:
# entity: ${run.wandb.entity}
# project: ${run.wandb.project}
Launcher-Only Keys#
Key |
Purpose |
|---|---|
|
The outer scheduler that runs this step; overridden by |
|
The inner scheduler that NeMo Evaluator Launcher submits to: |
|
Image used by the |
|
Slurm connection and allocation values interpolated into |
|
W&B identity, read only by the |
|
Launcher executor type. |
|
Populated from |
|
Allocation and mount settings for the launcher executor. |
|
Optional list of exporters to run after evaluation; commented out by default. |
|
|
|
How the launcher serves a Megatron Bridge checkpoint. |
|
W&B export target. Its presence is treated as a request for W&B credentials, so leave the block commented out unless you intend to export. |
Direct-Only Keys#
Key |
Default in |
Purpose |
|---|---|---|
|
|
The container image that ships the harness. Becomes |
|
|
A non-empty task directory is refused by default. Set |
|
|
Forwards the resolved image into the job so the manifest records it. |
|
see below |
Adapter proxy between the harness and the endpoint. Refer to Adapter Configuration. |
Endpoint Fields#
Field |
Purpose |
|---|---|
|
Exact model id advertised by the endpoint. Must equal the server’s |
|
Full OpenAI-compatible endpoint URL, including |
|
Environment variable name that holds the bearer token. Never put the secret value in config. |
|
|
Each config reads these values from a different set of environment variables.
Field |
|
|
Direct default |
|---|---|---|---|
|
|
|
none; required |
|
|
|
none; required |
|
|
|
|
|
|
|
|
Direct mode resolves ${oc.env:...} inside the job, so the *_eval_direct profile must forward every variable the config reads.
The shipped profiles forward EVAL_ENDPOINT_URL, EVAL_MODEL_HANDLE, EVAL_RESULTS_DIR, EVAL_ENDPOINT_TYPE, EVAL_API_KEY_NAME, EVAL_TOKENIZER, EVAL_LIMIT_SAMPLES, and ENDPOINT_TOKEN.
EVAL_HARNESS_IMAGE is the exception: direct.yaml resolves it into run.env.container_image and forwards the resolved value itself, so the profiles intentionally omit it.
Evaluation Params#
Generation and evaluator controls live under:
evaluation.nemo_evaluator_config.config.params
Field |
|
Purpose |
|---|---|---|
|
unset; |
Harness-level subset for a multi-subset task. Global to the run unless set per task. |
|
unset; |
Sampling temperature for generation tasks. |
|
unset; |
Top-p nucleus sampling. |
|
unset; |
Maximum generated tokens for chat/instruction tasks. |
|
|
Request retry count. |
|
|
Request concurrency where supported. |
|
|
Per-request timeout in seconds. |
|
|
Deterministic first-N sample cap. A limited run is a subset, not a full-split score. |
|
|
Loaded automatically when the served model name is its Hugging Face model ID. Set it for an alias, a custom tokenizer path, or Tokenizer Extension; use the generated tokenizer for Tokenizer Extension. |
|
|
Tokenizer backend. |
|
|
Passed through to the lm-evaluation-harness |
|
unset |
Harness-specific command-line arguments, for example |
Direct mode accepts only task, limit_samples, parallelism, request_timeout, max_retries, temperature, top_p, max_new_tokens, and extra at the top level of params.
Any other key stops the run with unsupported nemo_evaluator_config params.
Harness-specific arguments belong under extra.
Per-task values in evaluation.tasks[].nemo_evaluator_config.config.params override the global values; the merged result per task is recorded in run_manifest.json.
Adapter Configuration#
Direct mode forwards evaluation.nemo_evaluator_config.target.api_endpoint.adapter_config to the harness, which runs an adapter proxy between itself and the endpoint.
Field |
|
Purpose |
|---|---|---|
|
|
Cache requests and responses on disk. Leave enabled: without it the harness holds every request and response for a task in memory. |
|
|
Cache and log location. |
|
|
Log a sample of requests. |
|
|
Number of requests to log. |
|
|
Log a sample of responses. |
|
|
Number of responses to log. |
|
|
Progress reporting from the adapter. |
default.yaml sets the same fields for launcher mode with output_dir: /results and caching_dir: /results/cache.
The adapter configuration is recorded in run_manifest.json, so a cached run and an uncached run are distinguishable afterwards.
Tasks#
Tasks are entries under evaluation.tasks.
In launcher mode, use exact task ids from the launcher registry.
In direct mode, the harness image is authoritative.
uv run nemo-evaluator-launcher ls tasks
uv run nemo-evaluator-launcher ls task mmlu_instruct --json
docker run --rm <harness-image> nemo-evaluator ls
The sample configs define these starting points.
Config |
Tasks |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Do not prepend a harness name unless the launcher lists that exact dotted task id.
A task entry can pin a multi-subset task without affecting other tasks in the same run.
evaluation:
tasks:
- name: mmlu_prox_completions
nemo_evaluator_config: {config: {params: {task: mmlu_prox_hi}}}
Checkpoint Deployment Fields#
The default.yaml config uses launcher-managed deployment for a Megatron Bridge checkpoint.
The most common override is:
deployment.checkpoint_path=/path/to/iter_0001000
Use the concrete iter_* checkpoint directory, not only the parent training output directory.
Keep the tokenizer aligned with the deployed checkpoint through evaluation.nemo_evaluator_config.config.params.extra.tokenizer; default.yaml sets it to ${deployment.checkpoint_path}/tokenizer.
Direct mode has no deployment fields.
It requires target.api_endpoint.url and target.api_endpoint.model_id and exits with direct mode needs target.api_endpoint.url and .model_id when either is unset.
Validation Behavior#
In launcher mode, Nemotron validates only enough to build the launcher config and import NeMo Evaluator Launcher, then runs the launcher’s own schema checks so that dry_run=true fails in the same way as a real run.
Endpoint checks, task validation, result writing, and launcher invocation state are owned by NeMo Evaluator Launcher.
In direct mode, Nemotron validates before any task starts: the endpoint URL and model id are present, the endpoint type is chat or completions, every task name is a plain directory name, every params key is in the supported set, and no target task directory is non-empty unless overwrite=true.
A failed preflight leaves no new output directory behind.