Turns a plain-language weather question into a working Earth2Studio inference script — picks the AI forecast model, a compatible data source, an IO backend, and the step count.
NVIDIA Warp Gradient DebuggingSkill
Summary
Diagnoses wrong gradients in differentiable NVIDIA Warp programs by measuring first — comparing autodiff against finite differences on a shrunk reproduction before proposing any fix.
Features
- Compares autodiff against finite differences on a shrunk reproduction
- Uses the signature of the wrongness to prune hypotheses before reading code
- Maps surface symptoms (diverging training, biased fits) to gradient causes
- Covers wp.Tape issues, gradcheck failures and NaN/zero/exploding gradients
- Documents Warp 1.17 behaviour changes with workarounds for older versions
Install This Skill
Add this skill to your favorite AI agent in a few steps.
Skill Content
Description
Anything trained, optimised, calibrated or fitted through NVIDIA Warp kernels depends on wp.Tape gradients. When such a workflow misbehaves, the forward simulation usually looks perfectly healthy while the backward pass silently reads clobbered values, skips arrays or double-counts adjoints — so engineers spend days tuning physics constants and loss functions when the real cause is a two-line taping-pattern fix.
This skill exists to find that fix with evidence. Its central discipline is measure before hypothesising: run a shrunk reproduction, compare autodiff against finite differences, and let the signature of the wrongness prune the hypothesis space. NVIDIA's guidance is explicit that plausible-looking diagnoses read off the source are very often wrong, and that an unverified "fix" which merely perturbs the numbers wastes everyone's time.
The leap it is built to make. Users rarely say the word "gradient" — they say "the sim explodes" or "the fit gets dragged toward outliers". The skill treats the surface symptom as a gradient problem until proven otherwise: training that diverges, NaNs or will not train at all; loss that stalls or plateaus above the expected value; fits that converge to a wrong or biased answer or underperform a reference implementation; pipelines that work at small scale but fail at production scale or fail a QA recheck. It also handles the explicit symptoms — exploding, NaN/inf, zero or subtly wrong gradients, and wp.autograd.gradcheck failures.
Version sensitivity is documented. Warp 1.13 is the minimum and 1.17+ is recommended for reliable verification: copy-adjoint accumulation, overwrite-warning call sites, read-flag lifetime and gradcheck's restore_inputs all changed in 1.17, and the references carry version caveats plus workarounds for older releases.
Out of scope: forward-only Warp work, build and install problems, and autograd issues in other frameworks that do not involve Warp. Authored by the NVIDIA Warp team, Apache-2.0.
Related Skills
Skill: NVIDIA CUDA-Q Onboarding
by NVIDIA
NVIDIA's official onboarding skill for CUDA-Q — installs the platform, writes your first quantum kernel, picks a GPU simulator and routes you to real QPU hardware.
Skill: NVIDIA NeMo Data Designer
by NVIDIA
NVIDIA's official skill for building synthetic datasets with NeMo Data Designer — describe the data you want and the agent writes a declarative generation pipeline, column by column.
Skill: Portfolio Optimization with cuOpt
by NVIDIA
GPU-accelerated Mean-CVaR and Mean-Variance portfolio construction with NVIDIA cuOpt: scenario generation, variance-capped SOCP allocations, efficient frontiers, backtests and rebalancing.