modelopt-evaluation
Evaluates accuracy of quantized or unquantized LLMs using NeMo Evaluator Launcher (NEL). Triggers on "evaluate model", "benchmark accuracy", "run MMLU", "evaluate quantized model", "run nel". Handles deployment, config generation, and evaluation execution. Always load when validating completed runs or reporting evaluation scores, including standalone modelopt-launching-evals analysis. Not for quantizing models (use modelopt-ptq), standalone serving (use modelopt-deployment), or comparing completed baseline-vs-quantized results (use modelopt-compare-results).
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 5.6k
- Forks
- 806
01 前言 Front Matter
- name
- modelopt-evaluation
- license
- Apache-2.0
- description
- Evaluates accuracy of quantized or unquantized LLMs using NeMo Evaluator Launcher (NEL). Triggers on "evaluate model", "benchmark accuracy", "run MMLU", "evaluate quantized model", "run nel". Handles deployment, config generation, and evaluation execution. Always load when validating completed runs or reporting evaluation scores, including standalone modelopt-launching-evals analysis. Not for quantizing models (use modelopt-ptq), standalone serving (use modelopt-deployment), or comparing completed baseline-vs-quantized results (use modelopt-compare-results).
02 资源文件 34
- 其他recipes/env.example2.8 KB
- 参考文档recipes/examples/example_eval_next.yaml8.3 KB
- 参考文档recipes/examples/example_eval.yaml11.2 KB
- 参考文档recipes/examples/gym/example_mrcr.yaml18.2 KB
- 参考文档recipes/tasks/aa_next/swebench_verified.md9.4 KB
- 参考文档recipes/tasks/aa_next/terminal_bench_2_1.md9.2 KB
- 参考文档recipes/tasks/aa/gpqa_diamond.md808 B
- 参考文档recipes/tasks/aa/hle.md1.6 KB
- 参考文档recipes/tasks/aa/ifbench.md585 B
- 参考文档recipes/tasks/aa/lcr.md3.0 KB
- 参考文档recipes/tasks/aa/mmmu_pro.md546 B
- 参考文档recipes/tasks/aa/omniscience.md2.1 KB
- 参考文档recipes/tasks/aa/scicode.md3.6 KB
- 参考文档recipes/tasks/aa/tau2_bench_telecom.md3.1 KB
- 参考文档recipes/tasks/aime_2025.md1.5 KB
- 参考文档recipes/tasks/gym/mrcr.md12.3 KB
- 参考文档recipes/tasks/livecodebench.md1.6 KB
- 参考文档recipes/tasks/mmlu_pro.md735 B
- 参考文档references/doom_loops.md3.8 KB
- 参考文档references/gym.md9.9 KB
- 参考文档references/launcher-workflow.md38.0 KB
- 参考文档references/model-card-research.md6.9 KB
- 参考文档references/multi-node.md1.7 KB
- 参考文档references/nel-next.md16.1 KB
- 参考文档references/nvfp4-modelcard-sampling.md9.1 KB
- 参考文档references/parallelism.md8.6 KB
- 参考文档references/quantization-benchmarks.md7.0 KB
- 参考文档references/run-validation.md12.3 KB
- 参考文档references/slurm.md1.6 KB
- 脚本scripts/nel-gym.sh1.2 KB
- 脚本scripts/nel-next.sh7.8 KB
- 参考文档tests/evals.json20.8 KB
- 脚本tests/test_example_mrcr.py6.1 KB
- 脚本tests/test_nel_gym.py1.6 KB
03 SKILL.md 正文
NeMo Evaluator Launcher Assistant
Guide the user through creating NEL YAML configs, running evaluations, and monitoring progress. NEL manages serving for canaries and full runs; see Step 3's serving-handoff check for external endpoints.
Completed-run analysis
For completed runs, skip launch/config; use launching-evals for artifacts/analysis and apply run-validation.md before scores. Its policy overrides blanket uncapping and fixed token/context limits.
Workspace integration
If MODELOPT_WORKSPACE_ROOT is set, use the common skill's workspace-management.md and reuse existing workspaces (PTQ → checkpoint smoke test → NEL evaluation; carry compatibility requirements into NEL's deployment config).
Workflow
- [ ] Step 0: Check workspace (if MODELOPT_WORKSPACE_ROOT set)
- [ ] Step 1: Check `nel` install + existing config; set up `.env` (+ `modelopttools:eval-config` for judge-scored runs)
- [ ] Step 2: Build base config (5-question flow OR shortcut)
- [ ] Step 3: Configure deployment (model path, params, cross-check)
- [ ] Step 4: Fill remaining ??? values
- [ ] Step 5: Confirm tasks (iterative)
- [ ] Step 6: Multi-node (if needed)
- [ ] Step 7: Interceptors (if needed)
- [ ] Step 7.5: Container auth (SLURM private images)
- [ ] Step 8: Dry-run → canary → full run
- [ ] Step 9: Verify completed run
nel-next path (Terminal-Bench 2.x, SWE-bench, …) — branch here FIRST
A few agentic AA benchmarks do not run on the currently validated
nemo-evaluator-launcher 0.2.6 path (Steps 1–9 don't apply). They run on nel-next
(nemo-evaluator[harbor] 0.4.x) — a separate package, CLI (nel eval run), -O
overrides, and services/benchmarks/cluster/output schema. If the user asks
for one, do not add it to a 0.2.6 evaluation.tasks list — instead:
- Read
references/nel-next.md(shared: venv, schema, AWS creds, architecture, timeout strategy, MLflow, run flow) + the per-benchmark reciperecipes/tasks/aa_next/{terminal_bench_2_1,swebench_verified}.md; start fromrecipes/examples/example_eval_next.yaml. Read model-card research for generation settings; consult task-specific policy before selecting published budgets or fallbacks. - Isolated nel-next venv:
"$SKILL_DIR/scripts/nel-next.sh" --setup-only(keeps 0.2.6neluntouched). - Run
modelopttools:eval-config(Step 3b) to write the AWS-sandbox creds + harbor infra rows (${NEL_NEXT_EVAL_IMAGE},${HARBOR_*_ECR_REPOSITORY},${HARBOR_ECS_REGION}) into.env; always include theoutput.export_config.mlflowblock. - Dry-run → canary → full (
nel-next.sh eval run), then push to MLflow — SLURM doesn't auto-export, so runnel-next.sh mlflow-push -r <run_id> -c <cfg>after (config-driven; seereferences/nel-next.md). - Before reporting a full-run score, apply
references/run-validation.md, including its benchmark-specific checks.
Steps 1–9 below are currently validated with 0.2.6 — use them for everything else.
MRCR (NeMo Gym simple_agent) path — branch here too
MRCR does run on the currently validated 0.2.6 nel launcher (as a nemo_gym
task, not nel-next), so Steps 1–9 apply — but it is mechanically special and
standalone (one gym eval per config; never mix it with aa/ tasks). It is
simple as gym tasks go: simple_agent, no judge — deterministic prefix-gated
grading, HF_TOKEN the only secret. Not an AA benchmark — never generate it
for an "AA" request. If the user asks for MRCR:
- Read
references/gym.md(pinned launcher, gym prepare/reap machinery, pin↔container coupling, preflight gaps, failure modes) +recipes/tasks/gym/mrcr.md; start fromrecipes/examples/gym/example_mrcr.yaml(1M variant, like the golden). - Pick the variant first (
config_n3_1m/config_n3_128k/config) — it sets the context cap, dataset and metric prefix; the three are not comparable; set it in bothdata_prep_paramsandcollect_rollout_params. Take the largest variant within the checkpoint's trained context — see the recipe. .env:HF_TOKEN(dataset + n3 tokenizer are gated) plusNEMO_EVALUATOR_TRUST_PRE_CMD=1(thepre_cmdinstallstiktoken+transformers; prepare fails without it) andNEMO_EVALUATOR_TRUST_UNLISTED_TASKS=1(nemo_gymis not in the FDF map).- MRCR needs a git-backed Gym image. The pin is newer than any image's baked
Gym and must apply, so the template's
container:is???and the bootstrap exits 1 on a non-git/opt/Gym(the publiceval-factory/nemo-gym:*images). NVIDIA-internal:modelopttools:eval-configStep 3d names a working image. - Long-context deploy: for 1M,
--max-model-len 1100000+VLLM_ALLOW_LONG_MAX_MODEL_LEN=1; for 128K,--max-model-lenat the checkpoint's trained context (room for the answer above 131,072) and no override. 1M also needsgpu_memory_utilization: 0.95. Both: multi-instance fan-out; never cap output tokens; report the needle-count strata alongsidepass@1/accuracy. - Run both dry-run and launch through
"$SKILL_DIR/scripts/nel-gym.sh"; it enforces the currently validated 0.2.6 launcher even ifnelon PATH is stale and avoids an unsetNEL_INVOCATION_IDfailure before client startup. Canary withlimit_samples— the MRCR template forwards it as++limit(see the recipe's Canary section); the prepare pass still runs in full.
Detailed launcher instructions live in launcher-workflow.md. Read only the sections needed for the current stage; retain the dry-run → canary → full-run gates. Existing configs must pass Step 3's serving-handoff check before Step 8. Paths in that reference are relative to this skill directory.
Step 1 — Prerequisites
Read Step 1.
Step 2 — Build base config (when not using shortcut)
Read Step 2.
Step 3 — Configure deployment
Read Step 3.
Step 4 — Fill remaining ??? values
Read Step 4.
Step 5 — Confirm tasks (iterative)
Read Step 5.
Step 6 — Multi-node
Read Step 6.
Step 7 — Interceptors
Read Step 7.
If the user asks to avoid doom loops (looping reasoning), or a canary under a long
max_new_tokens runs far longer than expected, read doom_loops.md.
Step 7.5 — Container registry auth (SLURM private images only)
Read Step 7.5.
Step 8 — Run evaluation (gated dry-run → canary → full)
Read Step 8.
Step 9 — Verify completed run
Apply run-validation.md's Bounded Evaluation-Failure
Policy and Timeout and Output-Limit Accounting before reporting scores. For
comparisons, also apply its External Baseline Sanity Check, then use
modelopt-compare-results.
Issues: https://github.com/NVIDIA-NeMo/Evaluator/issues · https://github.com/NVIDIA-NeMo/Evaluator/discussions
04 同仓库更多 Skills
modelopt-speculative-decoding
Train, debug, and validate a speculative decoding draft model (EAGLE3, DFlash, DSpark, Domino) through the ModelOpt launcher pipeline. Use when the user wants to add a new model to a draft-training pipeline, asks why a pipeline run failed, wants experiment logs reviewed, or wants to check whether a run's acceptance rate meets threshold. Triggers on "EAGLE3", "DFlash", "DSpark", "Domino", "draft model", "acceptance rate", "speculative decoding pipeline". Do NOT use for quantizing a model (use modelopt-ptq) or serving a checkpoint (use modelopt-deployment).
modelopt-run-agentx
Run the AgentX agentic serving benchmark with the SemiAnalysis harness. Use for AgentX setup, dataset downloads, concurrency sweeps, or serving latency and throughput comparisons.
modelopt-release-cherry-pick
Audit merged bug-fix PRs and release NVBugs for missing cherry-pick labels, then cherry-pick labeled PRs into a release branch and open a PR. Use when asked to "cherry-pick PRs for release/X.Y.Z", "pick PRs to release branch", "verify cherry-pick labels", or "cherry-pick labeled PRs".
modelopt-quant-recipe-search
Use when the user asks to find, search for, or optimize the best quantization recipe for a model, including direct requests like "find the best quantization recipe and generate a PTQ checkpoint." Guides the multi-candidate loop: choose compute-vs-memory success metrics, select ModelOpt recipe baselines, design AutoQuant/manual recipe deltas, interpret sensitivity, and decide next candidates. Do NOT use for a single known PTQ recipe run (use modelopt-ptq), serving (use modelopt-deployment), creating/running evals (use modelopt-evaluation or modelopt-launching-evals), monitoring jobs (use modelopt-monitor), MLflow browsing (use modelopt-accessing-mlflow), or comparing completed baseline-vs-candidate scores only (use modelopt-compare-results).
modelopt-qad
Run explicitly requested ModelOpt Quantization-Aware Distillation (QAD) through Megatron Bridge (recommended) or Hugging Face Transformers to recover a measured BF16-to-PTQ accuracy gap. Use only when the user explicitly asks for QAD, including its topology, data preparation, launch, resume, checkpoint export, or recovery decisions.
modelopt-ptq
Use when the user asks to "quantize a model", "run PTQ", "post-training quantization", "NVFP4 quantization", "FP8 quantization", "INT8 quantization", "INT4 AWQ", "quantize LLM", "quantize MoE", "quantize VLM", or needs to produce a quantized HuggingFace checkpoint from a pretrained model using ModelOpt. Do NOT use for multi-candidate recipe exploration or optimization (use modelopt-quant-recipe-search).