/modelopt:modelopt-quant-recipe-searchfrom ModelOpt
Guides iterative search for optimal quantization recipes, managing multi-candidate loops, success metrics, and recipe deltas for ModelOpt PTQ.
Ships in ModelOpt. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill when quantization is an iterative recipe search, not a one-off PTQ run. The skill owns strategy: define success, choose the search space, sequence candidates, and decide the next iteration. It delegates checkpoint generation, serving, evaluation, monitoring, and metric comparison to the existing execution skills.
Treat a direct request such as "find the best quantization recipe and generate a PTQ checkpoint for this model" as enough to start. Recover local state first, then ask only for missing decisions that change the search.
modelopt-ptq to produce and validate checkpoints.modelopt-deployment to serve checkpoints and debug serving-specific flags.modelopt-evaluation to create NEL configs and submit evals.modelopt-launching-evals to run, resume, debug, and analyze NEL runs.modelopt-monitor for active job tracking.modelopt-accessing-mlflow for MLflow artifact lookup.modelopt-compare-results for validated baseline-vs-candidate deltas and score-field comparability.Do not duplicate those workflows here. This skill should leave the user with a clear recipe portfolio, success metric, experiment sequence, and next decision.
The task is to find the best recipe for a user-defined target, not merely to produce a quantized checkpoint. A generated PTQ checkpoint is only a candidate. It becomes a recommended recipe only after evaluation and comparison against the matching baseline.
Required inputs before planning candidates:
If any of these are missing, ask for them. Do not silently default to FP8/W8A8 or call a checkpoint "best" before evaluation.
Default success rule: maximize the chosen performance objective while keeping each benchmark within 1 percentage point of the matching BF16/FP16 baseline. Near-threshold or noisy regressions require reruns before making a decision.
Keep the search space explicit. A candidate recipe is a tuple across these axes:
lm_head, adapters, vision encoders, and model-specific modules.linear_attn.in_proj_qkvz
and fused MoE expert projections such as gate/up (w1/w3).Do not collapse the search to one dimension such as numeric format only. Read
references/recipe_iteration.md when choosing concrete axes or candidates.
Recover state
modelopt-monitor, modelopt-launching-evals, or modelopt-compare-results to recover active
job state and completed metrics when needed.Define the target
Pick baselines and first candidates
modelopt_recipes: model-specific recipes
first, then general PTQ presets or recipe fragments.Generate candidates
modelopt-ptq.Gate before scaling
modelopt-deployment / modelopt-debug for small
patches or flags, then rerun a pipe-clean check.modelopt-compare-results shows no failed external sanity check,
the candidate is comparable to the validated measured baseline, and the
user-defined goal is met. An externally unverified baseline is non-blocking.When the user has authorized QAD, a candidate is a recipe plus the QAD settings
from the modelopt-qad skill's recipe loop, which ends each recipe with a pass or a
clear miss. A PTQ recipe that already meets the threshold counts as a pass.
Step the layout from that outcome:
in_proj only, or attention linear_qkv only).
Find and evaluate the new layout's best PTQ recipe, starting from the
passing recipe's calibration, before its QAD. Step one layout at a time;
the modelopt-qad recipe loop runs its knob variants in parallel.Maintain a recipe portfolio table with recipe name, objective, active-cost estimate, calibration notes, checkpoint path, eval/log references, accuracy, verbosity, positional exclusions, and decision.
references/recipe_iteration.md.references/qwen36_case_study.md only
when Qwen3.5/Qwen3.6 details are relevant.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub nvidia/model-optimizer --plugin modelopt32 skills in this plugin
/accessing-mlflowCompatibility name for modelopt-accessing-mlflow. Browse ModelOpt evaluation runs and artifacts in MLflow./benchmark-model-kernelsCompatibility name for modelopt-benchmark-model-kernels. Inspect model shapes and benchmark GEMM or fused-MoE kernels./commonShared ModelOpt support files. Use only when another ModelOpt skill directs you here./compare-resultsCompatibility name for modelopt-compare-results. Compare baseline and quantized evaluation results./day0-releaseCompatibility name for modelopt-day0-release. Run the full ModelOpt day-0 quantization and validation workflow./debugCompatibility name for modelopt-debug. Run commands through the remote Docker debugger relay.Other plugins' skills for the same job