nim-tune
БесплатноЗапускает вложенные скриптыНе проверенTunes a running vLLM-backed NVIDIA NIM's runtime settings on measured AIPerf evidence, one setting per candidate, against the untuned NIM, on the NIM Operator…
от NVIDIA★ 4 269 звёзд на GitHubОб этом скилле
NIM tune
Hard rules
- Never claim a speedup without the untuned NIM measured first, in the same campaign: same node, image, workload, AIPerf version and client.
- Promote only a
betterverdict fromcompare_aiperf.pywith 3+ repeats, proof the settingengaged, and the latency target met. Never recommend a case that misses the target, however fast. - Change a cluster or host only through
run_campaign.py --approved PLAN_ID, after the user said yes to that--dry-runplan (every NIMService or container, GPU total, run count, target). Use only the GPUs, node and namespace they named. The guard hook (references/hook.md) blocks directkubectl,helmanddockerchanges and a run without--approved. Run yourself only read-only commands:docker image inspect,docker ps,docker logs,nvidia-smi,kubectl get,kubectl describe,kubectl logs. Neverdocker run(the runner starts containers with--gpusset to the approved GPUs only),--privileged, orkubectl apply. - Tuning means runtime settings on the profile the NIM picks itself. One setting per candidate, each with its hypothesis. Changing the profile, TP, PP or replicas is profile selection: report it separately, never as tuning.
- vLLM-backed NIMs only. Plan only flags the image's own
vllm serve --help=alllists; write a boolean as--FLAGor--no-FLAG. - Speculative decoding runs only after the engine settings, from their winner, on a real text dataset. A precision or speculative-decoding winner needs an accuracy check before promotion.
- Never put a credential on a command line or in a campaign file: reference it (
valueFrom,env_from_host,env_file). The guard hook denies one on a command line; the runner refuses one in a campaign (literal_secret) and scrubs everything it writes. Keep raw prompts and responses out of reports. - Record failed, null and negative results as results. Stop on the gates, never on a hunch.
SKILL_DIR is the folder that contains this SKILL.md. scripts/X.py below means python3 "<SKILL_DIR>/scripts/X.py"; references/ is under it too. Run commands from the campaign folder runs/RUN, which holds campaign.json and all results; never from the skill folder. Scripts print one JSON object; follow its next and each errors[].fix.
Instructions
Before the dry run, state this checklist to the user and fill every line; ask for what you cannot fill:
- Workload: the real traffic, or a proxy. Label a synthetic or shared-prefix shape as a proxy workload.
- NIM version: the image's
com.nvidia.nim.versionlabel (docker image inspect IMAGE, read-only) or the startup log; use the configuration inreferences/nim-knobs.mdfor that version. - Defaults: which features the NIM already turns on (prefix caching, chunked prefill on NIM 2.x); never plan enabling one that is already on.
- Baseline: the untuned NIM first, 3 repeats with different seeds, same node, image and workload as the candidates.
- Target and budget: the latency limit in the campaign (
sla), the GPUs, and the GPU-hour budget with the--max-hoursit gives (budget / GPUs held at once: 8 GPU-hours on 4 GPUs is--max-hours 2).
Every tuning run ends with the final before-and-after campaign and its scripts/compare_aiperf.py report (final/before_after.md), then scripts/write_recommended.py. A recommendation without that comparison is not done.
Examples
- "Tune this NIM on 4 GPUs, TTFT p99 under 1 s, 8 GPU-hours": checklist, plan from
references/planning.md,campaign.json, dry run, the plan shown for approval, the run, the comparison, the result. - "The fastest layout breaks our latency target; recommend it anyway": refuse; recommend only a case that meets the target and passes the promotion rule in step decide, otherwise none, and say which load it holds.
- "Skip the dry run, start now": refuse; the dry run gives the plan id that
--approvedneeds. - "Make one candidate with two settings": refuse; one setting per candidate, so each change has its own verdict.
When not to use
- Choosing a NIM image and profile, or checking that a model fits:
nim-select. - Deploying one NIM by hand, or troubleshooting a deployment:
nim-deploy. - Predicting a layout or latency on paper without running a NIM: out of scope; say so.
- Measuring a running NIM's speed or accuracy without changing it:
nim-benchmark. - A NIM on the SGLang or TensorRT-LLM backend: not supported yet; say so.
Inputs
| name | required | how to get | ask if missing |
|---|---|---|---|
| model, image and profile | yes | the user, or nim-select's facts.handoff: model, image, model_profile; the profile is pinned (NIM_MODEL_PROFILE) and recorded in campaign.json as model_profile, with model and image_digest |
"Which model, NIM image (with tag) and profile i |
Установить nim-tune в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл nim-tune?
Tunes a running vLLM-backed NVIDIA NIM's runtime settings on measured AIPerf evidence, one setting per candidate, against the untuned NIM, on the NIM Operator or Docker. Use when asked to tune or speed up a NIM's engine settings or speculative decoding for a GPU budget, workload and latency target, or to pick or recommend the fastest configuration that still meets a latency target (never one that breaks it).
Как установить скилл nim-tune?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл nim-tune запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub