validate-performance-quality

von nvidia

Entwerfen Sie Benchmark-, Qualitäts- und Dokumentationsvalidierung für FlashDreams-artige Leistungsänderungen. Verwenden Sie dies beim Hinzufügen oder Aktualisieren von Sweep-Befehlen, Profiler-Sonden, …

npx skills add https://github.com/nvidia/flashdreams --skill validate-performance-quality

Validate performance quality

Use this skill after apply-inference-optimizations changes a runtime path. Performance changes are not complete until they have a reproducible benchmark, the right quality reference, and documentation that explains defaults versus validated opt-in paths.

Benchmark contract

Every benchmark or summary should make these facts recoverable:

  • exact command and commit;
  • model, checkpoint, precision, input, prompt/control schedule, seed, resolution, chunk/window sizes, and all performance flags;
  • GPU model, number of GPUs, driver, CUDA, PyTorch, cuDNN, and relevant compiler cache state;
  • warmup policy, number of measured chunks, first-visible/startup timing, and steady-state timing;
  • median and p90 total chunk time, stage timings, throughput/FPS, memory when available, and any warnings or fallback kernels.

Use fresh processes when measuring compile/autotune, persistent compiler cache, attention backend selection, or startup behavior. Use a long enough run to separate cache fill and steady state.

Quality contract

Choose the reference that isolates the behavior being changed:

  • Decoder changes: decode the same latent tensors through reference and candidate decoders.
  • Cache changes: compare against the original cache path before and after the rolling-window boundary, including reset behavior.
  • Model compile, CUDA graph, or attention backend changes: use short static or controlled schedules first, then motion-heavy smoke tests.
  • Integration ports: compare against upstream or an existing FlashDreams baseline with matched inputs, weights, scheduler, seed, and decode path.
  • Presentation changes: validate ordered frame continuity and queue latency; do not treat dropped-frame smoothness as quality equivalence.

Useful artifacts: per-candidate videos, side-by-side videos, amplified diff videos, contact sheets, metrics JSON, Markdown summaries, logs, profiler traces, and worst-frame samples. Useful metrics include PSNR, MAE, RMSE, sharpness, high-frequency energy, temporal MAE, and LPIPS or domain-specific scores when already available.

Long moving autoregressive rollouts are good smoke tests, but they are weak strict metrics because speed or numerical drift can change the content being compared. Prefer short static clips and same-latent comparisons for acceptance.

Harness design

  • Provide a CLI that can run a baseline and one or more candidates in a stable order, with labels derived from settings.
  • Save raw per-step records as JSON and a compact Markdown summary for humans.
  • Include stage timing fields, settings, artifact paths, and quality metrics in machine-readable output.
  • Support warmup exclusion and optional comparison-video generation.
  • Capture failed optional candidates without losing successful rows.
  • Add CPU tests for label generation, argument validation, matrix construction, and summary parsing. Mark real generation, profiler, and quality-regression runs as manual or GPU-only according to repo convention.
  • Keep benchmark outputs, checkpoints, traces, and generated videos out of git unless the repo explicitly tracks small reference artifacts.

Acceptance table

Summarize decisions in a table or bullets with these statuses:

  • Recommended: quality passed, speed or latency improved materially, startup and reset behavior are acceptable, and the fallback remains documented.
  • Useful opt-in: good for a specific target, but has a clear tradeoff such as startup cost, latency, memory, quality, hardware dependence, or manual prewarm.
  • Rejected: speed was too small, quality regressed, output diverged unacceptably, state/reset behavior was unsafe, or complexity outweighed gain.
  • Deferred: promising but requires a larger architecture, serving, hardware, training, or validation effort.

Documentation update

Update the docs that future agents and users will read:

  • README or demo docs: current recommended command, required hardware, caveats, expected startup behavior, and known fallbacks.
  • Performance summary: what worked, what is opt-in, what failed, headline numbers, quality evidence, and remaining bottleneck.
  • Model card or benchmark page: methodology, stack-matched comparisons, artifact links, and hardware/software environment.
  • Plan or learnings note: hypotheses tested, interpretation, and deferred work.

Do not overgeneralize single-hardware results. Write them as evidence from the measured stack, not universal guarantees.

If validation cannot be run

When the current host lacks GPU access, checkpoints, credentials, or time:

  • add CPU-verifiable tests for command construction and metadata;
  • write exact GPU/manual commands with expected artifact paths;
  • mark the final answer and docs clearly as "not run here";
  • avoid promoting defaults until the missing validation is actually complete.

Mehr Skills von nvidia

compileiq-debug
nvidia
Verwenden, wenn etwas nicht stimmt: Search() hängt, alle Evaluierungen geben INVALID_SCORE zurück, Scores verbessern sich nicht, jede Konfiguration liefert dieselbe Zahl, ptxas-Fehler…
create-github-pr
nvidia
Erstelle GitHub-Pull-Requests mit der gh CLI. Verwende, wenn der Benutzer einen neuen PR erstellen, Code zur Überprüfung einreichen oder einen Pull-Request öffnen möchte. Auslöser-Schlüsselwörter -…
nemoclaw-maintainer-cross-issue-sweep
nvidia
Scannt andere offene Issues, um solche zu finden, die ein bestimmter PR möglicherweise ebenfalls behebt oder versehentlich kaputt macht. Gibt benachbarte Fix-Möglichkeiten und Widerspruchsrisiken mit Datei:Zeile… aus.
fhir-basics
nvidia
Bringt Agenten bei, wie FHIR R4 APIs funktionieren, welche Ressourcen verfügbar sind, wie man sie mit Suchparametern abfragt und wie man alle Antwortformate korrekt parst…
compileiq-validate-result
nvidia
Verwende NACH Abschluss einer Suche und VOR dem Einfordern eines Speedups oder dem Versand eines ACF. Lädt die dump_results CSV, extrahiert Top-K-Kandidaten (Einzelziel)...
changelog-audit
nvidia
Auditiere die CHANGELOG.md vor einem Release: stelle verlorene Einträge wieder her, sortiere nach Benutzerauswirkung, verfeinere die Sprache der Einträge, führe Zeilenumbrüche durch und (im Release-Branch-Modus) erhöhe die Vergleichsnummer…
maintain-dynamic-plugins
nvidia
Verwalte NeMo Relay dynamische Plugin-Lader, Manifeste, Rust native SDKs, gRPC Worker-Protokoll, Python Worker-SDK, Dokumentation, Tests und Abdeckung des Release-Workflows
dgx-diagnose
nvidia
Diagnostizieren Sie häufige DGX Station GB300-Probleme – CUDA-Abstürze, falsche GPU-Zuweisung, vLLM/SGLang-Container-Fehler, MIG-Status-Probleme, NVLink/Fabric-Manager-Fehler,…