/inferencekit:profile <command that runs steady-state decode or prefill> [--kernel <name for ncu>] | <existing .nsys-rep, .sqlite, .ncu-rep or torch trace>from inferencekit
Profiles an inference step using Nsight Systems/Nsight Compute or PyTorch profiler, producing a ranked critical-path analysis with Amdahl bounds. Accepts a command or existing trace files.
Ships in inferencekit. Installing the plugin adds it to Claude Code.
Profile this workload: $ARGUMENTS
Follow the profiling skill. Read ${CLAUDE_PLUGIN_ROOT}/skills/profiling/SKILL.md (in a checkout of this repo: plugin/skills/profiling/SKILL.md) and its references before capturing.
Steps:
intake.yaml budget.approved: true, or an explicit yes to the cost); analysing existing .nsys-rep / .sqlite / .ncu-rep files or torch traces needs none, so start with the person's own files for this workload.HF_HUB_OFFLINE=1), nothing else uses the GPU (inferencekit doctor), and the benchmark's ms/token (or TTFT) for the same workload is at hand.inferencekit nsys capture -- <command> (nsys under env -i with an allowlisted environment), never a raw nsys profile: .nsys-rep files embed the shell environment, secrets included.inferencekit nsys analyze <rep or sqlite from the record>; a profiled step more than a few percent off the benchmark's ms/token measures something else.kernel_sum_us / span_us > 1, kernels overlap (programmatic dependent launch, streams): rank only by critical-path shares (critical_pct_of_step), never by summed kernel time.inferencekit ncu capture with an anchored --kernel-regex and a --launch-skip past warmup, then inferencekit ncu summarize --peak-gbs <measured bandwidth evidence>; label the bound (memory / compute / latency) as inferred.profile-analyst agent, never timed with it on; the person's own profiles; the platform's profiler).A profile ranks where time went; it proves no speedup. Never attach or upload .nsys-rep, .ncu-rep, .sqlite or trace files without the user checking them first.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub kittenml/inferencekit --plugin inferencekit4 commands in this plugin
/benchBenchmark inference speed with inferencekit - single-user TTFT/TPOT/decode tok/s per input bucket, or capacity (N*, goodput, $/1M tokens) under an SLO, with gates and % of ceiling. Needs GPU approval./optimize-inferenceOptimize InferenceMake a model faster, use less memory or run on cheaper hardware. Ask a few simple questions, research and implement optimizations, and prove the result against a tuned baseline within the approved budget./perf-reportPerf ReportTurn inferencekit evidence into a performance claim with verdicts (PASS / FAIL / UNPROVEN / NOT RUN) and a review page, or audit an existing claim. Needs no GPU.Other plugins' commands for the same job