nim-benchmark
БесплатноЗапускает вложенные скриптыНе проверенMeasures a running NIM endpoint, text or vision-language, for speed with AIPerf and for accuracy with NeMo Gym, against an optional baseline, behind an…
от NVIDIA★ 4 269 звёзд на GitHubОб этом скилле
NIM benchmark
Hard rules
- Never send load or start a container before the user approved the plan id that
--dry-runprinted. The guard hook (references/hook.md) blocks a directaiperf,gymordocker run. - Never put a key on a command line: give
--api-key-env NAME, the name of a variable. The script refuses a value (literal_secret). - Never show a score without its 95% range, and never call
inconclusivea pass: say "not proven". - Trust the files the script checked, not an exit code. A run counts only when the script counted it.
- Ask for a baseline once, at intake. With one, give its verdict. Without one, give the numbers and no verdict.
- Never use a baseline the script refused (
baseline_mismatch). Report without a verdict, or measure the baseline again with this setup. - This skill only measures. Never deploy, tune or change a NIM with it. Never let a model judge its own answers: the judge for vision sets is another model (
self_judging). - Pin what you run: AIPerf 0.13.0, and the NeMo Gym image by digest, never a tag like
latest.
SKILL_DIR is the folder that contains this SKILL.md. scripts/X.py below means python3 "<SKILL_DIR>/scripts/X.py". Scripts print one JSON object; follow its next and each errors[].fix. Run them from any folder; --out names the run folder.
When not to use
- Choosing a NIM image and profile, or checking that a model fits:
nim-select. - Deploying a NIM, or troubleshooting a deployment:
nim-deploy. - Changing runtime settings to make a NIM faster:
nim-tune. It hands accuracy checks to this skill. - Predicting latency or a layout on paper, with no running NIM: out of scope; say so.
Inputs
| name | required | how to get | ask if missing |
|---|---|---|---|
| endpoint | yes | the user, an OpenAI-compatible URL | "Which endpoint URL serves the NIM?" |
| model | yes | /v1/models of the endpoint |
"Which served model name?" |
| mode | yes | the user: speed (perf), accuracy (accuracy) or both |
"Speed, accuracy, or both?" |
| model kind | yes | the user: a text model, or a vision-language model (VLM) that reads images | "Does the model read images?" |
| baseline | no | the user: another endpoint URL, or a finished run folder | "Do you have a baseline to compare against?" |
| tokenizer | perf |
the user, a Hugging Face id that matches the model | "Which tokenizer matches the model?" |
| client | perf |
docker (default), local (aiperf on this host) or kubernetes (a pod that has aiperf) |
"Where may the load client run?" |
| images | VLM perf |
the user: images per request, and their size (default 512 x 512) | "How many images per request, and how large?" |
| judge | VLM accuracy |
the user: the URL and served name of a judge model that is not the model measured | "Which model should judge the answers? It sees the prompts, images and answers." |
| gym image | accuracy |
the user, NeMo Gym pinned as name@sha256:... |
"Which NeMo Gym image, pinned by digest?" |
| key variable | if the endpoint needs a key | the user, the NAME of a variable | "Which variable holds the API key?" |
| run folder | yes | runs/RUN, one folder for the whole benchmark |
"Where should the results go?" |
Steps
| step | command | on success | on failure |
|---|---|---|---|
| intake | Record the inputs; ask about the baseline | check | ask for the missing inputs together |
| check | scripts/nimbench.py check --endpoint URL --model NAME |
plan | endpoint_unreachable, model_not_served: follow the fix |
| plan perf | scripts/nimbench.py perf --endpoint URL --model NAME --tokenizer TOK --out runs/RUN --dry-run; for a VLM add --images-per-request N |
approve | fix each errors[].fix |
| plan accuracy | scripts/nimbench.py accuracy --endpoint URL --model NAME --gym-image IMAGE --out runs/RUN --dry-run; for a VLM add --vlm --judge-endpoint URL --judge-model NAME |
approve | image_not_pinned, docker_missing, judge_required, self_judging: follow the fix |
| approve | Show the user the plan and facts.plan_id: the endpoints (and the judge, which sees their data), what runs and how many runs; wait for yes |
run | stop |
| run | The approved planning command with --dry-run replaced by --approved PLAN_ID; keep every baseline option unchanged |
report | On failure below |
| compare | scripts/nimbench.py compare runs/RUN --baseline runs/OLD for two finished folders |
report | baseline_mismatch: rule 6 |
| report | Read runs/RUN/report.md; show the numbers, the ranges and each verdict |
done | On failure below |
If a baseline was given, include --baseline URL_OR_FOLDER during both planning and execution. For a URL baseline, keep --baseline-model NAME and --baseline-api-key-env VARIABLE unchanged: changing them changes the plan id and needs a new approval
Установить nim-benchmark в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл nim-benchmark?
Measures a running NIM endpoint, text or vision-language, for speed with AIPerf and for accuracy with NeMo Gym, against an optional baseline, behind an approved plan id. Use when asked to benchmark a NIM, measure its latency or throughput, or check its accuracy.
Как установить скилл nim-benchmark?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл nim-benchmark запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic