CLI Reference#
This page documents the CLI surface for nemotron steps run eval/model_eval.
The flags are shared by every Nemotron step.
The override examples are specific to the eval/model_eval YAML schema.
Syntax#
uv run nemotron steps run eval/model_eval [FLAGS] [-t TASK ...] [HYDRA_OVERRIDES...]
Run the command from the repository root after uv sync --extra evaluator.
Pass the configuration name with -c, task names with repeatable -t, per-step overrides as key=value dotlists, and optional execution flags.
The config selected with -c decides the execution mode: default and tiny_chat run in launcher mode; direct and the suite configs (base_en, instruct_en, mmlu_prox, mmlu_prox_chat, milu) run in direct mode.
Refer to Choose A Mode.
Flags#
Flag |
Long form |
Purpose |
|---|---|---|
|
|
Config name inside |
|
|
Task name to run. Repeatable. Direct mode runs exactly the supplied list, including names absent from |
|
|
Attached execution by using an environment profile defined in |
|
|
Detached execution by using an environment profile defined in |
|
|
Compile the Nemotron job config and exit without dispatching. |
|
Force re-squash of the container image when the selected backend builds one. |
Invoking the command without -c resolves the runspec default, default.yaml.
Direct-Mode Environment Variables#
direct.yaml and the suite configs read these variables with ${oc.env:...} when the config is resolved inside the job.
The *_eval_direct profiles forward the endpoint, tokenizer, result, limit, and credential variables plus ENDPOINT_TOKEN from the submitting shell into the job.
direct.yaml resolves and forwards EVAL_HARNESS_IMAGE itself.
Variable |
Required |
Purpose |
|---|---|---|
|
yes |
Full OpenAI-compatible URL, |
|
yes |
Model id; must equal the server’s |
|
when the model name is an alias, the tokenizer is at a custom path, or Tokenizer Extension was used |
Hugging Face repo id or local path. Tokenizer Extension must use the generated tokenizer. |
|
yes |
Durable output root; becomes |
|
no; default |
Name of the variable that holds the bearer token, not the token. |
|
when the endpoint is authenticated |
The token, under the default |
|
no; default |
|
|
no; default |
Harness image; pin by digest for published results. |
|
no; default unset |
Deterministic first-N sample cap per task. |
|
no; default |
Language subset for the |
|
no; default |
Target language for the |
Common Overrides#
Override |
Purpose |
|---|---|
|
Base output directory. In launcher mode the runtime also writes this into |
|
Step-level dry run. Launcher mode passes it to NeMo Evaluator Launcher; direct mode prints each harness command and writes |
|
Direct mode only. Replace non-empty task directories instead of refusing. |
|
Task names as a list; equivalent to repeated |
|
Pin a multi-subset task, for example |
|
OpenAI-compatible endpoint URL for hosted evaluation when |
|
Exact model id advertised by the hosted endpoint. |
|
Name of the environment variable holding the bearer token. This is the variable name, not the secret. |
`target.api_endpoint.type=<chat |
completions>` |
|
Per-task sample cap for verification runs. |
|
Concurrent requests issued by the evaluator where supported. |
|
Per-request timeout in seconds. |
|
Explicit tokenizer for a model alias, custom tokenizer path, or tokenizer-extended model. |
|
Direct mode only. Harness image; overrides |
|
Megatron Bridge checkpoint path used by |
|
Container image used by the launcher deployment in |
Discovery Commands#
uv run --no-sync nemotron steps list --category eval --json
uv run --no-sync nemotron steps show eval/model_eval --json
nemotron steps show eval/model_eval --json prints the full step contract, including consumes, produces, parameters, strategies, and errors.
Examples#
Direct-Mode Verification Run#
: "${EVAL_ENDPOINT_URL:?Set the completions endpoint URL}"
: "${EVAL_MODEL_HANDLE:?Set the served model name}"
: "${EVAL_RESULTS_DIR:?Set a durable results directory}"
: "${ENDPOINT_TOKEN:?Set the endpoint token}"
EVAL_LIMIT_SAMPLES=5 uv run nemotron steps run eval/model_eval \
-c direct --batch slurm_eval_direct \
-t hellaswag
Direct-Mode Suite With A Pinned Subset#
uv run nemotron steps run eval/model_eval -c direct --batch lepton_eval_direct \
-t mmlu_prox_completions \
evaluation.nemo_evaluator_config.config.params.task=mmlu_prox_hi
Direct-Mode Dry Run#
uv run nemotron steps run eval/model_eval -c base_en --batch slurm_eval_direct dry_run=true
Hosted Chat Verification Run (Launcher Mode)#
: "${NVIDIA_API_KEY:?Set NVIDIA_API_KEY}"
: "${NEMO_EVALUATOR_MODEL_URL:?Set the chat-completions endpoint URL}"
: "${NEMO_EVALUATOR_MODEL_ID:?Set the endpoint model id}"
uv run --no-sync nemotron steps run eval/model_eval \
-c tiny_chat \
output_dir=./output/eval-tiny-chat \
target.api_endpoint.url="$NEMO_EVALUATOR_MODEL_URL" \
target.api_endpoint.model_id="$NEMO_EVALUATOR_MODEL_ID" \
target.api_endpoint.api_key_name=NVIDIA_API_KEY \
target.api_endpoint.type=chat \
evaluation.nemo_evaluator_config.config.params.limit_samples=1
Megatron Checkpoint Evaluation Config#
Use default.yaml when NeMo Evaluator Launcher should deploy a Megatron Bridge checkpoint and then run the configured tasks.
uv run --no-sync nemotron steps run eval/model_eval \
-c default \
output_dir=./output/eval-megatron \
deployment.checkpoint_path=/path/to/checkpoint/iter_0001000 \
evaluation.nemo_evaluator_config.config.params.limit_samples=1
Compile Without Dispatching#
uv run --no-sync nemotron steps run eval/model_eval -d -c tiny_chat \
target.api_endpoint.url="$NEMO_EVALUATOR_MODEL_URL" \
target.api_endpoint.model_id="$NEMO_EVALUATOR_MODEL_ID"
Launcher Dry Run#
uv run --no-sync nemotron steps run eval/model_eval -c tiny_chat dry_run=true