Skip to main content

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.

v1.0.0New

Unsigned, install at your own risk

Unverified

This skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.

Install this skill

No account required. Pick your tool, or use the command that detects it for you.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install skills-nim-benchmark
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/skills-nim-benchmark/SKILL.md

Setup guide →
0Save

Instructions

NIM benchmark

Hard rules

  1. Never send load or start a container before the user approved the plan id that --dry-run printed. The guard hook (references/hook.md) blocks a direct aiperf, gym or docker run.
  2. 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).
  3. Never show a score without its 95% range, and never call inconclusive a pass: say "not proven".
  4. Trust the files the script checked, not an exit code. A run counts only when the script counted it.
  5. Ask for a baseline once, at intake. With one, give its verdict. Without one, give the numbers and no verdict.
  6. Never use a baseline the script refused (baseline_mismatch). Report without a verdict, or measure the baseline again with this setup.
  7. 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).
  8. 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

namerequiredhow to getask if missing
endpointyesthe user, an OpenAI-compatible URL"Which endpoint URL serves the NIM?"
modelyes/v1/models of the endpoint"Which served model name?"
modeyesthe user: speed (perf), accuracy (accuracy) or both"Speed, accuracy, or both?"
model kindyesthe user: a text model, or a vision-language model (VLM) that reads images"Does the model read images?"
baselinenothe user: another endpoint URL, or a finished run folder"Do you have a baseline to compare against?"
tokenizerperfthe user, a Hugging Face id that matches the model"Which tokenizer matches the model?"
clientperfdocker (default), local (aiperf on this host) or kubernetes (a pod that has aiperf)"Where may the load client run?"
imagesVLM perfthe user: images per request, and their size (default 512 x 512)"How many images per request, and how large?"
judgeVLM accuracythe 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 imageaccuracythe user, NeMo Gym pinned as name@sha256:..."Which NeMo Gym image, pinned by digest?"
key variableif the endpoint needs a keythe user, the NAME of a variable"Which variable holds the API key?"
run folderyesruns/RUN, one folder for the whole benchmark"Where should the results go?"

Steps

stepcommandon successon failure
intakeRecord the inputs; ask about the baselinecheckask for the missing inputs together
checkscripts/nimbench.py check --endpoint URL --model NAMEplanendpoint_unreachable, model_not_served: follow the fix
plan perfscripts/nimbench.py perf --endpoint URL --model NAME --tokenizer TOK --out runs/RUN --dry-run; for a VLM add --images-per-request Napprovefix each errors[].fix
plan accuracyscripts/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 NAMEapproveimage_not_pinned, docker_missing, judge_required, self_judging: follow the fix
approveShow 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 yesrunstop
runThe approved planning command with --dry-run replaced by --approved PLAN_ID; keep every baseline option unchangedreportOn failure below
comparescripts/nimbench.py compare runs/RUN --baseline runs/OLD for two finished foldersreportbaseline_mismatch: rule 6
reportRead runs/RUN/report.md; show the numbers, the ranges and each verdictdoneOn 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. These two options have no effect on a folder baseline; omit them when comparing saved runs.

Run perf and accuracy into the same --out for "both": one manifest, one report. Each needs its own approval, because each has its own plan id.

For a Kubernetes performance client, add --client kubernetes --namespace NS --pod POD
to both check and perf. Endpoint and baseline probes run inside that pod, so in-cluster
Service names work without a host route to the cluster. The pod needs python3 and AIPerf;
API key variables must be set in the pod. See references/perf.md.

What the modes do

modetoolwhat it measuresdefaults
perfAIPerf 0.13.0 in a client container, pod or this hostTTFT and ITL (average and p99), request time, tokens/s at each load1024 in and 256 out tokens, loads 8, 32 and 128, 3 repeats, fixed seeds, a fresh cache salt per run; a VLM also gets new random images per request
accuracyNeMo Gym, in its own Docker containerthe score of each test set, with its 95% rangetext: gsm8k, ifeval, mmlu_pro (2,000 items); VLM (--vlm): labbench2_vlm, gdp_pdf; temperature 0; --full runs every item

Read references/perf.md for the workload, clients, images and AIPerf's known bugs. Read references/accuracy.md for the test sets, the judge for vision sets, the paired verdict and why answers get cut off.

Verdicts

resultmeaningwhat you say
speed better or worsethe repeat ranges do not overlap and the change is over 2%the change in percent, per load
speed within_noise or sameranges overlap, or the change is under 2%no real difference was measured
accuracy passthe whole paired range is above minus the margin (default 1 point)no drop beyond the margin
accuracy failthe whole paired range is below minus the marginaccuracy dropped; do not promote
accuracy inconclusivethe range straddles the margin, or the set has under 30 itemsnot proven; offer more items or sampled repeats
no verdictno baseline, an incomplete load, or a test set that failednumbers only

Outputs

fileholds
manifest.jsontool versions and images, workload, seeds, test sets, items hash, served models, plan ids
perf/cLOAD-rREPEAT/the AIPerf export file and console log of one run
accuracy/SET/Gym rollouts, the aggregate metrics file and scores.json; vision sets keep no rollouts, because they hold the images
baseline/the same files for a baseline endpoint run in this session
compare.json, report.mdthe verdicts, and the report with numbers only: no prompt and no answer

On failure

  1. Read errors[].code, message and fix, or the saved log named in the fix.
  2. Look the code up in references/perf.md or references/accuracy.md.
  3. Retry once with the fix. The same plan id resumes an accuracy run and skips finished sets.
  4. Still failing: stop. Show the user the error and what you tried.

Done means

  • report.md exists, and every score in it has a 95% range.
  • A speed result has 3 counted repeats per load, or the load is listed as incomplete.
  • Each verdict is pass, fail, better, worse, same or within_noise, or the report says why there is none.
  • Nothing the run started is left running.

Common mistakes

mistakedo instead
Run aiperf profile by hand for a quick numberscripts/nimbench.py perf: seeds, repeats, a cache salt and checks come with it
Trust a run because AIPerf exited 0AIPerf can exit 0 with a short export; only the script's count matters
Call a 0.5-point drop on GSM8K a pass or a failThe paired range is about 1.2 points wide at 1,319 items: say inconclusive
Compare a run with last month's folderThe manifest must match; a different AIPerf version or length is refused
Pass the API key as --api-key-env sk-...Put the key in a variable, and pass only the variable's name
Benchmark a shared production endpoint at load 128Ask the endpoint owner first; start with --loads 8
Let the model under test judge the vision setsName a different judge model; the script refuses the same endpoint and model
Compare a text-only speed run with a VLM runThe image settings must match; a different image size or count is refused

References

  • Read references/perf.md for performance mode: loads, clients, the AIPerf bugs and the error codes.
  • Read references/accuracy.md for accuracy mode: test sets, the Gym image, verdict maths and the error codes.
  • Read references/hook.md when installing the skill, or when the guard denied a command.
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
web-performance-auditorAI-powered web performance auditor for frontend and web developers. Use it to audit a website or web app, diagnose poor Core Web Vitals (LCP, CLS, INP) and low Lighthouse scores, review JavaScript bundle size, code splitting, lazy loading, image and font loading, hydration, React rendering, Next.js/Nuxt patterns, network waterfalls, third-party scripts, and caching. Produces a prioritized, senior-engineer performance audit with a score and concrete fixes.12 installsi4h-catheter-navigationOverview of `workflows/catheter_navigation/` (fluorosim DRR, XPBD physics, vasculature digital twin). Use when the user asks what the catheter navigation workflow is, what's supported, or where to start.0 installsmcore-linting-and-formattingLinting and formatting for Megatron-LM. Covers running autoformat.sh, tools (ruff, black, isort, pylint, mypy), and code style rules.0 installsomniverse-content-servicesOmniverse Content Services, also discoverable as Omniverse Content Workspace or USD Content Workspace. Use for USD content collaboration as well as content access. Guide USD workflows on existing infrastructure, USD content versioning, 3D creation pipelines, and data access across distributed and scale-out compute. Use for manufacturing, automotive, factory and digital-twin workflows, architecture and construction, media and 3D content, robotics, fleet simulation, and physical AI content delivery. Discover requirements and route to ovstorage, ovpackage, ovlive, usd-content-workspace, and usd-caches experts.0 installsdoca-rmaxDOCA Rivermax (doca_rmax) receive streams for timing-precise media over IP (SMPTE ST 2110 video / audio, market data, scientific feeds) on a target BlueField DPU (DOCA Rivermax apps run only there), once the Rivermax libraries and license are installed; getting them is doca-setup / doca-public-knowledge-map territory. Trigger on "ST 2110 receive isn't getting frames", "sub-microsecond jitter on my media receiver", "NOT_SUPPORTED from doca_rmax_init", "no recv events after stream start", or "license check failing on a media receiver", even without naming Rivermax. Covers doca_rmax_in_stream sessions, the SDK + license precondition check, doca_rmax_get_*_supported capability queries, pairing with doca-eth queues and doca-flow steering, and DOCA_ERROR_* from Rivermax calls. Refuse and route elsewhere for programming the underlying queue (doca-eth), steering rules (doca-flow), PTP / clock sync (doca-firefly), or best-effort packet I/O.0 installstao-train-segformerSegFormer for semantic segmentation. Lightweight transformer-based architecture with hierarchical feature extraction, efficient for real-time segmentation tasks. Use when training, evaluating, exporting, quantizing, or running inference for a TAO SegFormer model. Trigger phrases include "train SegFormer", "semantic segmentation", "lightweight transformer segmenter", "real-time semantic segmentation".0 installs

More from skills

View source →
nvidia-appNVIDIA App MCP: drivers, games, laptops, overlay. Check drivers, manage and optimize games, configure laptop features.3 installsnvidia-ontology-setupSet up or troubleshoot the Auto Ontology runtime. Use for Helm (the official install), Docker Compose, developer setup, and MCP connection to an existing deployment.1 installstao-run-automlRun container-backed AutoML / hyperparameter optimization (HPO) for NVIDIA TAO networks using AutoMLRunner. Handles algorithm selection (bayesian, hyperband, asha, bohb, llm, hybrid, autoresearch), WandB experiment tracking, job execution on any TAO SDK platform, result interpretation, and per-rec custom evaluation hooks. Use when the user mentions TAO AutoML, hyperparameter optimization, HPO, automl, automl_settings, AutoMLRunner, tao_automl, bayesian search, hyperband, ASHA, LLM-guided search, autoresearch, or wants to tune train/evaluate/inference/distill/prune/quantize for a TAO network. Model actions use the resolved image; venv training requires an explicit request. Platform-agnostic — runs on any SDK (Brev, SLURM, Kubernetes, Docker). Do not use generic "keep improving" language alone to override a matching domain-specific DEFT workflow; attribute-labelled CLIP / SigLIP image-retrieval loops belong to tao-run-deft-pas unless HPO is explicit.1 installsrunai-diagnose-failed-workloadUse to diagnose failed, crashed, stopped, OOMKilled, CrashLoopBackOff, ImagePullBackOff, init, mount, node, or policy-terminated Run:ai workloads. Investigate one workload's failure; use other skills for workload health summaries, cluster health, scheduling-only Pending, or inference latency without a confirmed failure.1 installscdf-event-video-generationRun the CDF Orchestration Event Video Generation DAG on Kubernetes or OSMO - image-to-video anomaly generation, auto-labeling, and anomaly dataset generation. Select for requests about event video generation, anomaly video generation, image-to-video synthesis, Cosmos3 image2video, anomaly dataset creation, safety/surveillance SDG, or generating person-falling, person-climbing, person-running, fighting, smoking/vaping, fire/smoke, or shoplifting video clips from a seed image. Covers both event_video_generation_dag_k8s and the external-endpoints-only event_video_generation_dag_osmo. Runs environment setup first when controller readiness is unknown. Not for person-crop clothing/attribute augmentation (that is cdf-image-attribute-augmentation) and not for video style transfer.1 installsnvidia-skill-finderUse for NVIDIA-related requests where an NVIDIA skill might help, even if the user did not ask for a skill. Trigger on NVIDIA products, hardware, software, SDKs, GPUs, Jetson/JetPack/L4T/BSP/SDK Manager/driver/flashing/setup, CUDA, NIM, NeMo, Omniverse/OpenUSD/SimReady, Isaac, RAPIDS/cuDF, cuPyNumeric, cuOpt, Dynamo, Holoscan, TensorRT, DeepStream, VSS, TAO, NGC/NVCF. Do not use for generic non-NVIDIA route, optimize, deploy, AI, video, data, or infrastructure tasks.1 installs

More Build skills

Browse category →
senior-frontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend code review.641 installsui-design-systemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.544 installsfrontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.353 installssenior-backendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or service scaffolded.252 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check memory health.179 installsusing-superpowersUse when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions146 installs

Frequently asked questions about nim-benchmark

What does the nim-benchmark skill do?

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. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the nim-benchmark skill?

Run `npx @skills-hub-ai/cli install skills-nim-benchmark` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/skills-nim-benchmark/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does nim-benchmark work with?

nim-benchmark runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the nim-benchmark skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use nim-benchmark after installing it?

In Claude Code, type `/skills-nim-benchmark` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the nim-benchmark skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.