Perlmutter NeMo Eval
Use this skill for benchmark evaluation jobs only:
ns eval(standard benchmark, single prompt config)ns robust_eval(prompt-robustness evaluation across multiple prompt configs)server_type=openai- Perlmutter
executor: slurm - Perlmutter
runtime: podman-hpc - external OpenAI-compatible endpoint
Do not use this skill for ns generate, sidecars, self-hosted vLLM, or multi-component jobs.
For raw generation use the sibling perlmutter-nemo-generate skill.
Inputs
The user must provide:
- an absolute local env file path
- a benchmark name (e.g.
gsm8k,gpqa,human-eval) - a supported
model - for
robust_evalonly: an absolute localprompt_set_config.yamlpath
Supported models live in config/supported_models.txt.
Env var contract
Require the same core variables as the generate skill, plus:
BENCHMARK— benchmark name passed tons eval(e.g.gsm8k); also used to locate the pre-bundled data at$NEMO_SKILLS_REPO_DIR/nemo_skills/dataset/$BENCHMARK/
Optional vars (with defaults):
JOB_TYPEdefaulteval—evalorrobust_evalNUM_SAMPLESdefault0— number of random seeds;0= full dataset; use e.g.8for robust_evalMAX_CONCURRENT_REQUESTSdefault32— parallel API requests during eval; consider16for robust_evalNEMO_SKILLS_DATA_DIRdefault/workspace/ns-data— container-side path wherens prepare_datadownloads benchmark data; maps to$REMOTE_RUN_DIR/ns-dataNERSC_HOSTdefaultperlmutter.nersc.govSSH_IDENTITYdefaults to<SSH_LOGIN_IDENTITY>-cert.pubNODESdefault1NTASKS_PER_NODEdefault1DEFAULT_TIMEOUTdefault00:20:00HF_HOME_IN_WORKSPACEdefault/workspace/hf-cacheREMOTE_IMAGE_BUILD_DIRdefault$HOME/ns-image-buildSTATUS_POLL_INTERVALdefault30PERLMUTTER_BASE_IMAGEdefaultdocker.io/library/python:3.11PERLMUTTER_AGENT_RUNS_DIRto override where local run artifacts are storedPERLMUTTER_AGENT_STATE_DIRto override where the managed local virtualenv is stored
Source of truth
Same as the generate skill — resolve from NEMO_SKILLS_REPO_DIR:
<repo_dir>/docs/basics/perlmutter.md<repo_dir>/nemo_skills/pipeline/eval.py<repo_dir>/nemo_skills/pipeline/robust_eval.py<repo_dir>/ns-tests/quick_bench.sh<repo_dir>/ns-tests/quick_robust.sh
Workflow
-
Validate inputs.
- Require absolute local paths for the env file.
- Require
BENCHMARKandMODEL. - If
JOB_TYPE=robust_eval, also require an absolute local path forprompt_set_config.yaml. - Reject unsupported models with the allowlist file.
-
Validate the explicit repo path from the env file.
- Load
NEMO_SKILLS_REPO_DIRfrom the env file. - Reject the run if the repo path is missing, not absolute, or does not contain the required Perlmutter-enabled files.
- Never assume a sibling
Skills/checkout. - Never clone or install the repo automatically.
- Load
-
Ensure MFA-backed SSH access is live.
- Run scripts/ensure_sshproxy.sh.
- Treat
sshproxyas interactive and wait for the user to complete MFA.
-
Run preflight checks before every submission.
- Run scripts/check_remote_access.sh without
--require-image. - Then run it with
--require-image. - If it exits with code
3, the target image is missing.
- Run scripts/check_remote_access.sh without
-
If the image is missing, build it.
- Run scripts/build_remote_image.sh.
- Re-run the image preflight check after build and migration.
-
Prepare the run bundle.
- Run scripts/prepare_run.sh with
--benchmark,--model, and optionally--job-type,--num-samples,--max-concurrent-requests,--prompt-set-config. - This renders:
perlmutter.yamlrun.sh(callsns evalorns robust_eval)manifest.json
- Run scripts/prepare_run.sh with
-
Stage config files.
- Run scripts/stage_inputs.sh.
- Creates remote eval output directories.
- For
robust_evalonly: uploadsprompt_set_config.yamlto the remote workspace.
-
Submit the job.
-
Poll until completion.
- Run scripts/check_status.sh with
--wait. - Primary success signal:
metrics.jsonwritten by thesummarize_resultsSlurm job (second of two jobs submitted byns eval). - Fallback: if that exact path is absent but
metrics.jsonis found anywhere underremote_output_dir(maxdepth 4), treat as complete and warn.
- Run scripts/check_status.sh with
-
Fetch outputs.
- Run scripts/fetch_results.sh.
- Downloads the full eval output directory recursively (includes
metrics.json,output*.jsonl, and for robust_eval thesummarize_robustness/aggregation).
Behavior constraints
- Never print the contents of the env file.
- Never echo secret values from API keys or SSH settings.
- Always keep
perlmutter.yamlrun-specific; do not edit shared checked-in templates in place. - Always mount the run-specific remote directory to
/workspace. - The
run.shtemplate usescd /tmpbefore invokingns eval/ns robust_eval. Do not change this — same CWD constraint as the generate skill applies. - Preflight checks are mandatory on every run. Do not treat them as optional.
NEMO_SKILLS_DATA_DIRdefaults to/workspace/ns-data, which maps to$REMOTE_RUN_DIR/ns-datainside the container. Benchmark data (pre-bundled*.jsonlfiles from the localNEMO_SKILLS_REPO_DIR/nemo_skills/dataset/tree) is staged to the remote workspace via SCP duringstage_inputs.sh, before job submission.
Final response
The final user-facing reply must include:
- whether the job succeeded or failed
- the local
results/eval-output/directory path - the path to
metrics.json(or thesummarize_robustness/directory for robust_eval) - the local log directory or submission log path
- the image tag used
- a short failure summary if any step failed


