compare-results
Establish baseline-vs-candidate evaluation plans, delegate missing evaluations, compare validated results, and decide quantization feasibility. Use when the user asks to compare baseline vs quantized runs, explain an accuracy drop/regression, verify whether a quantized checkpoint is acceptable, or compare NEL/MLflow evaluation outputs. Do NOT use for generic single-model evaluation without comparison intent (use evaluation), live NEL status/debugging (use launching-evals), or generic MLflow browsing without a comparison goal (use accessing-mlflow).
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-11
- Stars
- ★ 5.6k
- Forks
- 806
01 前言 Front Matter
- name
- compare-results
- license
- Apache-2.0
- description
- Establish baseline-vs-candidate evaluation plans, delegate missing evaluations, compare validated results, and decide quantization feasibility. Use when the user asks to compare baseline vs quantized runs, explain an accuracy drop/regression, verify whether a quantized checkpoint is acceptable, or compare NEL/MLflow evaluation outputs. Do NOT use for generic single-model evaluation without comparison intent (use evaluation), live NEL status/debugging (use launching-evals), or generic MLflow browsing without a comparison goal (use accessing-mlflow).
02 资源文件 2
- 参考文档references/assess-results.md2.6 KB
- 参考文档tests/evals.json2.9 KB
03 SKILL.md 正文
Compare Results
Use this to plan and complete a baseline-vs-candidate comparison. The baseline is the reference checkpoint, and the candidate is the checkpoint whose accuracy change is being measured, typically a further quantized version of the baseline.
Workflow
- Establish the candidate checkpoint/run and the matching baseline. Infer the baseline from the PTQ source model/checkpoint in the workspace or config used to create the candidate. If it cannot be inferred, ask the user for the baseline checkpoint or an existing baseline invocation/run path.
- If a required baseline or candidate evaluation is missing, delegate to the evaluation skill to create, run, and verify it. The companion evaluation config should match benchmark versions, task configs, serving args, token limits, dataset setup, credentials, cluster, and container as closely as possible; change only the model/checkpoint and checkpoint-specific serving or quantization flags.
- Fetch the baseline and candidate task list, configs, score artifacts, and logs. If the user provides MLflow runs or invocation IDs, use the accessing-mlflow skill to fetch configs and artifacts.
- Confirm each run passed evaluation Step 9, "Verify completed evaluation run", before comparing scores. If not, validate logs, server health, judge/code-execution status, sample accounting, and reasoning parsing before computing deltas.
- For each task, use the canonical score field from the matching evaluation
skill task recipe,
recipes/tasks/<task>.md, under Score Extraction. - Use the evaluation skill's
references/run-validation.mdto perform the External Baseline Sanity Check. Record each source URL, protocol difference, and task status before applying the candidate-delta gate. A failed baseline blocks a success verdict; correct and rerun it first. If no credible comparable reference exists, label the baseline externally unverified rather than claiming the check passed, then continue using the validated measured baseline. - Follow Assess results to compute deltas and uncertainty; mark unavailable uncertainty explicitly.
- Report comparability, external baseline sanity, and quantized-feasibility verdicts before interpreting the delta as model quality. If the user did not provide an acceptance threshold, report feasibility as inconclusive instead of inventing one.
Comparability Checklist
Before treating a baseline-vs-quantized delta as a model quality result, verify the validated runs are comparable:
- Prompt text, system prompt, chat template, and rendered messages match.
- Task name, benchmark version, dataset split, container, harness, and task fragment match.
- Generation settings match, including temperature, top_p, top_k, max tokens, stop strings, repetition detection, chat-template kwargs, reasoning mode/budget, and task-specific overrides.
- Reasoning traces are enabled, disabled, parsed, stripped, or ignored consistently between runs.
- The number of evaluated and scored samples/repeats matches for each task and split.
- Judge-backed or simulator-backed tasks use the same judge/user model, endpoint class, prompt, and scoring config.
- The same accuracy metric and score field is used for both runs.
- Timeout policies, effective limits, and failure scoring/exclusions match.
Apply Timeout and Output-Limit Accounting in the evaluation skill's
references/run-validation.mdto both runs; matching limits alone cannot rule out serving-speed effects on scores. - Baseline precision matches the gate. A
<1pp vs BF16gate requires a true full-precision (BF16) baseline. Many models ship natively quantized (e.g. INT4W4A16or block-wise FP8) with no BF16 release — a quant-to-quant comparison against the released precision (e.g. INT4 vs NVFP4, as for Kimi-K2.6) is still a valid result. State which precision the baseline is and apply only an acceptance criterion explicitly defined for that precision. If the requested gate is relative to BF16 and no BF16 baseline is available, report that gate as inconclusive; do not reinterpret it as an FP8/INT4 gate.
For SciCode, keep num_repeats: 1 and require at least 8 runs per side, comparing
the two means — see the evaluation skill's recipes/tasks/aa/scicode.md. Fewer
than 8 valid runs on a side is INDETERMINATE, not a delta.
If any item differs, either rerun with matched settings or label the result as not an apples-to-apples quantization comparison.
These checks compare the baseline and candidate to each other. The external
baseline check in the evaluation skill's references/run-validation.md
separately tests whether the baseline's absolute score is credible; both guards
must be reported.
Report Format
Include:
- Baseline and candidate identifiers.
- Per-task metric path, baseline and candidate scores with SEs, signed loss
(
Candidate - Baselinefor accuracy; negative is worse), confidence intervals and method, sample/run counts, and an Assessment column. Mark unavailable uncertainty explicitly; keep the assessment concise, not a statistics tutorial. - Per-task external reference score, source URL, known protocol differences,
percentage-point difference, and sanity status (
verified,failed, orexternally unverified). - Comparability status for prompt/template, generation settings, sample counts, reasoning handling, judge/simulator setup, and score field.
- Per-task timeout and output-limit counts/rates for both runs, explicit
denominators, telemetry coverage, effective limits, and unresolved effects on
the score. Unknown accounting or unresolved infrastructure effects prevent an
acceptablequantization-feasibility verdict. - Comparability verdict: comparable, not comparable, or inconclusive.
- Quantization feasibility verdict: acceptable, not acceptable, or inconclusive.
Never report
acceptablewhen external baseline sanity failed. An externally unverified baseline does not blockacceptable; apply the candidate-delta gate and report the missing external corroboration.
04 同仓库更多 Skills
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 ptq) or serving a checkpoint (use deployment).
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.
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".
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 ptq), serving (use deployment), creating/running evals (use evaluation or launching-evals), monitoring jobs (use monitor), MLflow browsing (use accessing-mlflow), or comparing completed baseline-vs-candidate scores only (use compare-results).
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.
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 quant-recipe-search).