Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 28 additions & 31 deletions skills/modelopt-compare-results/evals/evals.json
Original file line number Diff line number Diff line change
@@ -1,45 +1,42 @@
[
{
"name": "baseline-vs-quantized-delta",
"skills": ["modelopt-compare-results"],
"query": "Compare the baseline and quantized NEL runs and tell me the accuracy drop",
"files": [],
"id": "baseline-vs-quantized-delta",
"question": "Compare supplied synthetic evaluation evidence for source-BF16 (baseline) and export-NVFP4 (candidate). Scores are percentages, metric accuracy.mean, higher is better. Both runs passed log/server/judge/reasoning validation. Prompt/template, benchmark version/split/harness/container, generation/reasoning settings, sample/repeat counts, judge setup, metric, timeout/output limits and failure scoring match. Complete telemetry shows zero timeouts, output-limit hits or exclusions on both sides (1000/1000 scored per run/task). Each task has eight independent full runs per side. No credible external baseline reference is supplied; do not browse or invent one. Gate: each task's two-sided 95% CI for candidate-minus-baseline must lie strictly above -1 percentage point. Task A baseline=75, candidate=74.6, delta CI=[-0.8,0.0]; task B baseline=60, candidate=58.5, delta CI=[-1.9,-1.1]. SEs are not supplied. Give a compact per-task delta/assessment table, comparability and external-sanity status, and overall feasibility. Arithmetic in a small script is allowed; do not run evaluations or claim publication.",
"expected_skill": "modelopt-compare-results",
"expected_script": null,
"ground_truth": "Use source-BF16 as baseline and export-NVFP4 as candidate with accuracy.mean percentages. Candidate-minus-baseline is -0.4 pp for A and -1.5 pp for B. Supplied 95% delta intervals make A Within margin and B Substantial regression against -1 pp, so overall quantization feasibility is not acceptable. The supplied validation, matched settings, eight runs/side and complete zero-failure telemetry establish comparability. External baseline sanity is externally unverified, not failed or verified; missing corroboration alone does not invalidate the measured baseline. SEs are unavailable. No evaluation or publication is performed.",
"expected_behavior": [
"Establishes the baseline and candidate before computing deltas",
"Identifies baseline and candidate run artifacts before computing deltas",
"Checks that both runs were validated before accepting scores",
"Uses task recipe Score Extraction sections for canonical score fields",
"Verifies prompt/template, generation settings, reasoning handling, sample counts, judge/simulator setup, and score field comparability",
"Computes exact per-task deltas outside the chat context when there are multiple tasks or repeated runs",
"Labels the result as not apples-to-apples if comparability checks fail",
"Reports quantization feasibility as inconclusive when no acceptance threshold is provided"
"Identifies source-BF16 and export-NVFP4 with metric accuracy.mean, computes candidate-minus-baseline A=-0.4 pp and B=-1.5 pp, and does not confuse percentage points with relative percent.",
"Uses the supplied delta CIs against the strict -1 pp gate: A Within margin, B Substantial regression, overall feasibility not acceptable.",
"Reports the runs comparable from the supplied validation and matched settings, including eight independent runs per side, complete scored samples and zero timeout/output-limit/exclusion telemetry.",
"Labels external baseline sanity externally unverified because no credible reference is supplied; does not invent references or SEs, or treat missing external corroboration alone as a failed baseline.",
"Uses only supplied evidence (arithmetic scripts allowed); does not fetch runs, execute evaluations, claim publication or fabricate measurements."
]
},
{
"name": "missing-baseline",
"skills": ["modelopt-compare-results", "modelopt-evaluation"],
"query": "Is this quantized eval good enough if I only have the quantized run?",
"files": [],
"id": "missing-baseline",
"question": "I only have a quantized candidate's accuracy.mean=72.4% on 1000 samples. Its source-checkpoint metadata and baseline run are absent, as are validation logs and timeout/output-limit accounting. Is it good enough? Give a brief comparison-readiness response: identify missing baseline/source/precision, matching evaluation settings, validation/accounting, acceptance threshold and external-reference evidence; state feasibility and the future skill handoff for missing evaluations. Do not invent data or a threshold, fetch runs, launch jobs, or execute evaluations.",
"expected_skill": "modelopt-compare-results",
"expected_script": null,
"ground_truth": "Feasibility is inconclusive: a standalone 72.4% candidate score is not a validated baseline delta. Request source checkpoint and precision or a matching baseline run, the acceptance threshold, validation artifacts, failure/timeout/output-limit accounting and external-reference evidence. A future modelopt-evaluation handoff should obtain and validate missing runs with matched prompt/template, task/dataset/version, generation/reasoning, judge, metric and sample settings, changing only checkpoint-specific settings. Do not invent the baseline, threshold or missing telemetry or start evaluation.",
"expected_behavior": [
"Does not treat a standalone quantized score as a release-ready delta",
"Establishes the matching baseline from the PTQ source model/checkpoint or asks the user for one",
"Delegates missing baseline or candidate evaluations to the evaluation skill",
"Explains that the baseline config must match task versions, serving args, dataset setup, credentials, cluster, and container except for the checkpoint/model"
"Reports quantization feasibility inconclusive and does not treat 72.4% alone as evidence of an acceptable quantization delta.",
"Requests or identifies the missing source checkpoint/baseline and precision, acceptance threshold, run-validation artifacts, timeout/output-limit accounting and external-reference evidence without inventing them.",
"Names the future modelopt-evaluation handoff (or unambiguous evaluation skill alias) for missing validated baseline/candidate runs, with matching task/dataset/version, prompt/template, generation/reasoning, judge, metric and sample settings.",
"Does not fetch runs, launch jobs, execute evaluations or claim publication."
]
},
{
"name": "interval-based-assessments",
"skills": ["modelopt-compare-results"],
"query": "Compare seven validated, comparable accuracy tasks using signed loss Candidate - Baseline in pp and margin M=-1 pp. The supplied CIs are valid two-sided 95% intervals from independent planned runs: A mean=-0.5, CI=[-1.5,0.5]; B mean=-3, CI=[-8,2]; C mean=-0.3, CI=[-0.8,0.2]; D mean=-3, CI=[-4,-2]; E has one full run per side and no task-specific uncertainty method; F mean=-0.5, CI=[-1,0]; G has independent baseline runs [60,60] and candidate runs [59.5,59.5]. What are their assessments?",
"files": [],
"id": "interval-based-assessments",
"question": "Assess seven supplied synthetic accuracy comparisons using signed loss Candidate - Baseline in percentage points and margin M=-1 pp. Assume validated comparable runs and valid two-sided 95% signed-loss CIs from independent planned runs unless noted: A mean=-0.5 CI=[-1.5,0.5]; B mean=-3 CI=[-8,2]; C mean=-0.3 CI=[-0.8,0.2]; D mean=-3 CI=[-4,-2]; E has one full run per side and no uncertainty method; F mean=-0.5 CI=[-1,0]; G has independent baseline runs [60,60] and candidate runs [59.5,59.5]. Give a compact assessment table and explain the margin boundary and unavailable uncertainty. Do not infer missing CIs, recommend a stopping plan, run evaluations, or claim publication.",
"expected_skill": "modelopt-compare-results",
"expected_script": null,
"ground_truth": "A and B are Inconclusive because their signed-loss CIs span the -1 pp margin and zero. C is Within margin; D is Substantial regression. E has unavailable uncertainty from a single run/side without an uncertainty method. F is unresolved/Inconclusive: its lower bound equals -1 pp, whereas Within margin requires a strictly higher lower bound. G has a -0.5 pp point delta but unavailable uncertainty because its run variances are degenerate; no zero-width confidence interval or confidence-based acceptance. Do not infer significance from overlapping separate score CIs or a test against zero, or prescribe a stopping plan.",
"expected_behavior": [
"Classifies A and B as Inconclusive despite their means falling on opposite sides of the margin",
"Classifies C as Within margin and D as Substantial regression",
"Reports E uncertainty unavailable due to insufficient samples, without treating in-run repeats as independent full runs",
"Leaves F unresolved because equality at the margin is not Within margin",
"Reports G uncertainty unavailable as a degenerate case, not a zero-width confidence interval or confidence-based acceptance",
"Does not infer significance from overlapping individual score intervals or substitute a p-value against zero for the margin assessment",
"Explains how the evidence compares without prescribing reruns or a stopping plan"
"Classifies both A and B as Inconclusive despite their means lying on opposite sides of the margin; C Within margin and D Substantial regression.",
"Leaves F unresolved/Inconclusive because equality at the margin does not satisfy the strict Within margin criterion.",
"Marks E uncertainty unavailable from insufficient independent runs and G uncertainty unavailable from degenerate variance; does not manufacture CIs or accept either with confidence.",
"Uses supplied signed-loss CIs against M=-1 pp, without substituting individual score-interval overlap or a p-value against zero; gives no stopping plan, evaluation execution or publication claim."
]
}
]
1 change: 0 additions & 1 deletion skills/modelopt-compare-results/tests/evals.json

This file was deleted.

72 changes: 28 additions & 44 deletions skills/modelopt-deployment/evals/evals.json
Original file line number Diff line number Diff line change
@@ -1,58 +1,42 @@
[
{
"name": "vllm-fp8-local",
"skills": ["modelopt-deployment"],
"query": "deploy my quantized model at ./qwen3-0.6b-fp8 with vLLM",
"files": [],
"id": "vllm-fp8-local",
"question": "Plan serving ./qwen3-0.6b-fp8 as an OpenAI-compatible API using vLLM on one NVIDIA H100 80GB. Supplied checkpoint metadata: architecture Qwen3ForCausalLM, 0.6B parameters, HF export, hf_quant_config.json quantization.quant_algo=FP8. Assume vLLM 0.10.1 is installed. Use port 8000 and served model name qwen-fp8. Give a launch command, rough weight-memory estimate with overhead caveat, and readiness/model-list/generation checks with success criteria. Keep it brief. Plan only: do not install, download, start a server, inspect GPUs, or run the checks; do not claim measured results.",
"expected_skill": "modelopt-deployment",
"expected_script": null,
"ground_truth": "A planning-only vLLM command serves ./qwen3-0.6b-fp8 using --quantization modelopt, TP=1 (explicit or default), port 8000, served name qwen-fp8. FP8 weights are roughly 0.6 GB before scales, unquantized tensors, KV cache and runtime overhead; this is an estimate, not a measurement. Future checks require HTTP 200 health, the expected model ID at /v1/models, and successful nonempty coherent generation using that ID. Nothing is installed, downloaded, probed, launched or claimed successful.",
"expected_behavior": [
"Identifies ./qwen3-0.6b-fp8 as a local quantized checkpoint",
"Reads hf_quant_config.json and detects FP8 quantization format",
"Confirms vLLM is the chosen framework",
"Checks vLLM is installed and version >= 0.10.1",
"Detects local GPU via nvidia-smi or torch.cuda",
"Estimates GPU memory: 0.6B params x 1 byte (FP8) = ~0.6 GB, fits single GPU",
"Reads references/vllm.md for deployment instructions",
"Uses deploy.sh or runs: python -m vllm.entrypoints.openai.api_server --model ./qwen3-0.6b-fp8 --quantization modelopt --host 0.0.0.0 --port 8000",
"Passes --quantization modelopt (not modelopt_fp4) since checkpoint is FP8",
"Waits for server health check at /health endpoint",
"Verifies /v1/models lists the model",
"Sends test generation request to /v1/completions and confirms coherent output",
"Reports server URL (http://localhost:8000) and port to user"
"Proposes a vLLM launch command for ./qwen3-0.6b-fp8 with FP8 quantization modelopt, one GPU (explicit TP=1 or default), port 8000, and served name qwen-fp8.",
"Estimates approximately 0.6 GB of raw FP8 weights and distinguishes KV cache, metadata/scales or runtime overhead from that estimate.",
"Plans health readiness with HTTP success, /v1/models containing qwen-fp8, and a generation request using that model ID that must succeed with coherent nonempty output before reporting success.",
"Only plans deployment: no model download, installation, GPU probing, service launch, API-check execution, or fabricated success/measurements."
]
},
{
"name": "remote-slurm-deployment",
"skills": ["modelopt-deployment"],
"query": "deploy my quantized model on the SLURM cluster",
"files": [],
"id": "remote-slurm-deployment",
"question": "Plan serving an HF-exported Qwen3-8B NVFP4 checkpoint already at /models/qwen3-8b-nvfp4 on a remote SLURM node with one x86 B300 GPU. Choose a compatible backend and quantization flag, specify image compatibility checks and a launch outline, then state how to verify readiness and generation and report the endpoint. Registry authentication, account/partition, image tag/digest, and allocated hostname are not supplied: leave them as preflight requirements, not invented values. Address whether checkpoint transfer is needed. Keep it brief. Plan only: no SSH, image pull, GPU probes, submission, server launch, downloads, or claims of successful deployment.",
"expected_skill": "modelopt-deployment",
"expected_script": null,
"ground_truth": "Plan a backend supporting ModelOpt HF NVFP4 on x86 B300, such as vLLM with modelopt_fp4 and TP=1. Verify sm_103 kernels, x86 image architecture and CUDA >=13 rather than guessing a tag. Keep registry authentication, account/partition, image tag/digest and allocated hostname as unresolved preflight inputs. Check the remote checkpoint in place; do not transfer it merely because its path is absolute. Outline srun with container image/mounts and serving command, or an equivalent SLURM container launch. Plan health, model discovery and coherent generation checks on the allocated node, then report its hostname/port and cluster-network reachability. No execution or success claims.",
"expected_behavior": [
"Checks for cluster config at ~/.config/modelopt/clusters.yaml, .agents/clusters.yaml, or .claude/clusters.yaml",
"Sources remote_exec.sh from the loaded common skill root",
"Calls remote_load_cluster, remote_check_ssh, remote_detect_env",
"Checks if checkpoint is already on remote (e.g., from prior PTQ run) before syncing; only syncs if local",
"For SLURM: writes a job script with srun --container-image and --container-mounts on srun line (not #SBATCH)",
"Starts vLLM/SGLang server inside the container via srun",
"Gets allocated node hostname from squeue -j $JOBID -o %N",
"Verifies remotely: remote_run 'curl -s http://localhost:8000/health'",
"Reports the remote endpoint (http://<node_hostname>:8000) and notes SLURM network restrictions",
"Reads framework-specific reference (references/vllm.md or references/sglang.md) for deployment flags"
"Chooses a backend supporting HF NVFP4 on B300 and outlines its launch with the existing /models/qwen3-8b-nvfp4 path and appropriate quantization selection (e.g. modelopt_fp4 for vLLM/SGLang).",
"Requires an x86/amd64 B300 sm_103-compatible serving image with CUDA >=13, and leaves its unspecified tag/digest as a preflight choice rather than asserting an unverified image works.",
"Keeps unknown registry authentication, SLURM account/partition and allocated hostname as preflight inputs; checks the existing remote checkpoint in place instead of resyncing it.",
"Outlines SLURM container launch with an image and checkpoint mount, then remote health, model-list and coherent generation checks before reporting an endpoint using the allocated hostname/port and cluster-network access constraints.",
"Only plans: no SSH, image pull, GPU probe, transfer, job submission, service launch, downloads, or fabricated deployment success."
]
},
{
"name": "unquantized-hf-model",
"skills": ["modelopt-deployment"],
"query": "deploy Qwen/Qwen3-0.6B with vLLM",
"files": [],
"id": "unquantized-hf-model",
"question": "Plan an OpenAI-compatible vLLM deployment of Qwen/Qwen3-0.6B on one H100 80GB. For this exercise its supplied config is BF16 with no quantization_config or hf_quant_config.json; assume vLLM 0.10.1 is installed. Use port 8000 and served name qwen-bf16. Give a launch command, approximate weight-memory estimate with runtime overhead caveat, and health/model-list/generation success checks. Brief plan only: do not download, install, probe GPUs, start a server, or execute checks. Do not claim that deployment has succeeded.",
"expected_skill": "modelopt-deployment",
"expected_script": null,
"ground_truth": "Plan vLLM for Qwen/Qwen3-0.6B in the supplied unquantized BF16 configuration, TP=1 (explicit/default), port 8000 and served name qwen-bf16, without a ModelOpt quantization override. Raw weights are about 1.2 GB plus runtime/KV overhead. Future verification requires healthy HTTP status, the expected /v1/models ID and successful coherent nonempty generation using it. Do not download, install, probe, launch, execute checks or claim success.",
"expected_behavior": [
"Identifies Qwen/Qwen3-0.6B as a HuggingFace model ID (not a local path)",
"Detects no quantization format in the model name — treats as unquantized (BF16)",
"Does not pass --quantization flag to vLLM",
"Checks vLLM is installed and GPU is available",
"Estimates memory: 0.6B params x 2 bytes = ~1.2 GB, fits single GPU",
"Starts vLLM server: python -m vllm.entrypoints.openai.api_server --model Qwen/Qwen3-0.6B --host 0.0.0.0 --port 8000",
"Waits for health check at /health endpoint",
"Tests generation via /v1/completions and confirms coherent output",
"Reports server URL to user"
"Proposes a vLLM launch command using Qwen/Qwen3-0.6B, one GPU (explicit TP=1 or default), port 8000 and served name qwen-bf16; does not force ModelOpt/FP8/FP4 quantization onto the supplied BF16 checkpoint.",
"Estimates approximately 1.2 GB of raw BF16 weights and adds a runtime/KV-cache overhead caveat.",
"Plans HTTP health success, /v1/models containing qwen-bf16, and a successful generation request using that ID with coherent nonempty output before reporting success.",
"Only plans: no download, installation, GPU probe, server launch, check execution, or claimed deployment success."
]
}
]
1 change: 0 additions & 1 deletion skills/modelopt-deployment/tests/evals.json

This file was deleted.

Loading