nvidia/profile-model-performance
> Inspect and baseline performance for FlashDreams-style model integrations and build focused probes, and identify whether decode, model/denoise, cache, data transfer, or presentation dominates. Use when starting performance work on an existing model runner, demo, serving path, or downstream integration before implementing speedups. Pair with `apply-inference-optimizations` after the bottleneck is known and `validate-performance-quality` for benchmark and quality gates.
npx skills add https://github.com/NVIDIA/flashdreams --skill profile-model-performance
Use this skill before changing runtime behavior. The goal is to produce a
defensible bottleneck map and a short list of candidate optimizations, not to
guess from code shape alone.
script, notebook, or downstream adapter.
model or denoise loop, cache update/finalize, decode, transfer, encode, and
presentation.
flashdreams-integrations before changing framework boundaries orconfig contracts. Keep this skill focused on measurement and diagnosis.
--help,--no-instantiate, static runner wiring, and small CPU tests.
settings, checkpoint source, and device.
steady-state chunks.
compile cache state, and checkpoint identifiers.
timing. Do not average cold compile or cache-fill chunks into the headline
steady-state metric.
attributing GPU time.
update submit, cache update wait, decode, GPU-to-CPU transfer,
frame/materialization, image/video encode, queue wait, present pacing, and
end-to-end chunk time.
from the flags that produced them.
dynamic shapes, SDPA backend selection, torch.compile, CUDA graph
capture, or copy/layout inside the model step.
cost, cache update synchronization, reset/scene-switch rebuild behavior, or
stale state after async work.
conversions, convolution/elementwise hot blocks, lightweight decoder
quality tradeoffs, or unsafe whole-decoder compilation.
browser/server queue backlog, rate limiting, frame pacing, or display
latency.
state, device-to-device transfers, per-rank persistence, and scheduler or
presenter behavior outside a single-process demo.
mode, graph mode, decoder choice, decoder layout, presentation queue, or
attention backend.
persistent compiler cache effects are visible.
drift cannot explain quality differences.
time as perturbed attribution evidence, not the headline benchmark.
the next optimization candidates.
validation was not run, say so and provide the exact command to run later.
confirm with profiler kernels or explicit runtime logging.
different speeds or kernels can shift camera position or content. Use them as
smoke tests.
same-latent comparison against the quality decoder.
reset, and scene-switch behavior are acceptable for the target workflow.
diagnose backlog separately, then tune ordered pacing and backpressure.
A good profiling pass leaves behind:
Take nvidia/profile-model-performance from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.