Discover The Model Evaluation Step#

This guide shows how to find eval/model_eval in the step catalog, how to read its contract, and how to decide whether it applies.

Prerequisites#

  • The Nemotron repository is synced.

  • A local checkout is sufficient; discovery reads local step.toml files only.

List Eval-Category Steps#

uv run --no-sync nemotron steps list --category eval --json

The response includes eval/model_eval, which supports launcher-managed and direct execution.

Inspect The Step Contract#

uv run --no-sync nemotron steps show eval/model_eval --json

The response contains the fields declared in src/nemotron/steps/eval/model_eval/step.toml.

Field

What It Tells You

consumes

Optional input artifact type. This step accepts checkpoint_megatron.

produces

Output artifact type. This step produces eval_results.

parameters

Documented knobs such as target.api_endpoint.*, deployment.checkpoint_path, task_filters, and launcher params.

strategies

Rules for hosted verification runs, checkpoint evaluation, endpoint/task pairing, and task-name selection.

errors

Named failure modes and recovery guidance.

reference

Upstream NeMo Evaluator Launcher references.

Read The Sample Files#

The step provides eight config files under src/nemotron/steps/eval/model_eval/config/.

Mode

Purpose

Configs

Launcher

Hosted verification or launcher-managed checkpoint deployment.

tiny_chat.yaml, default.yaml

Direct

Run the harness in a Nemotron job against an endpoint you host.

direct.yaml, base_en.yaml, mmlu_prox.yaml, milu.yaml, instruct_en.yaml, mmlu_prox_chat.yaml

# 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

tiny_chat.yaml is the hosted chat verification config. It sets deployment.type: none, reads target.api_endpoint.* from environment variables, and runs mmlu_instruct with limit_samples: 1.

# 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}

default.yaml is the Megatron Bridge checkpoint evaluation config. It uses NeMo Evaluator Launcher deployment and evaluates the configured tasks entries.

direct.yaml is the base for the direct-mode suites. The remaining direct configs select task families, endpoint types, and harness images; Configuration Reference summarizes each one.

Decide Whether It Applies#

eval/model_eval applies when the following statements are true.

  • The model is already available as an OpenAI-compatible endpoint, or NeMo Evaluator Launcher can deploy the checkpoint from the selected config.

  • In launcher mode, the tasks you need are in the installed NeMo Evaluator Launcher registry; in direct mode, they are in the selected harness image.

  • The endpoint type matches the selected task family.

eval/model_eval is not the right step when the evaluation needs a custom scorer that neither the launcher registry nor the selected harness image provides. Write a dedicated evaluation step in that case, modeled on the contract layout under src/nemotron/steps/.