Individual skill
warp-debug-gradients
Use to diagnose and fix incorrect gradients in differentiable Warp programs. Anything trained, optimized, calibrated, or fit through Warp kernels depends on wp.Tape gradients, so treat any misbehavior of such a workflow as a gradient problem until proven otherwise — use this when training diverges or NaNs, won't train at all, stalls or plateaus above the expected loss, converges to a wrong or biased answer, is worse than a reference implementation, works at small scale but fails at production scale, or fails a QA/validation recheck. Also for explicit symptoms — exploding, NaN/inf, zero, or subtly wrong gradients, suspected wp.Tape/backward issues, gradcheck failures — but users usually describe only the surface symptom ("the sim explodes", "the fit gets dragged toward outliers") without mentioning gradients: make that leap. Not for forward-only Warp work, build/install problems, or autograd issues in other frameworks without Warp.
skills/warp-debug-gradients/SKILL.md
Source commit 25340619336e89bcc40365c28bfe9e790430468e
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Network or broad shell
- Last checked
- Nov 2, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 3,888
- Repository last updated
- Nov 6, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- agent-skills Repository topic
- agentic-ai Repository topic
- ai-agents Repository topic
- claude-code Repository topic
- codex Repository topic
- coding-agents Repository topic
- cuda Repository topic
- developer-tools Repository topic
- llm Repository topic
- omniverse Repository topic
- warp Declared skill tag
- autodiff Declared skill tag
- gradients Declared skill tag
- differentiable-simulation Declared skill tag
- debugging Declared skill tag
- testing Derived category
- operations Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
BENCHMARK.mddoc · 4,462 bytesSKILL.mdcore · 19,170 bytesSKILL.mdcore · 19,170 bytesSKILL.mdcore · 19,170 bytesevals/EVAL.mddoc · 10,648 bytesevals/evals-full.jsonasset · 70,599 bytesevals/evals.jsonasset · 13,991 bytesevals/files/checkpoint_control.pyruns · 3,942 bytesevals/files/compound/objective.pyruns · 702 bytesevals/files/compound/physics.pyruns · 2,350 bytesevals/files/compound/state.pyruns · 1,785 bytesevals/files/compound/train.pyruns · 3,085 bytesevals/files/compreassign/model.pyruns · 2,113 bytesevals/files/compreassign/train.pyruns · 3,189 bytesevals/files/contact.pyruns · 2,384 bytesevals/files/dac.pyruns · 1,764 bytesevals/files/deblur.pyruns · 2,374 bytesevals/files/dynloop/model.pyruns · 1,765 bytesevals/files/dynloop/train.pyruns · 2,810 bytesevals/files/emitters.pyruns · 2,544 bytesevals/files/funcgradassign/model.pyruns · 1,448 bytesevals/files/funcgradassign/train.pyruns · 2,134 bytesevals/files/gain_train.pyruns · 1,963 bytesevals/files/heightfit.pyruns · 2,655 bytesevals/files/huber_fit.pyruns · 2,235 bytesevals/files/inplacemul/model.pyruns · 1,254 bytesevals/files/inplacemul/train.pyruns · 1,991 bytesevals/files/lattice.pyruns · 2,717 bytesevals/files/lens_calibrate.pyruns · 2,079 bytesevals/files/missingzero/model.pyruns · 1,879 bytesevals/files/missingzero/train.pyruns · 1,117 bytesevals/files/nangrad/model.pyruns · 1,465 bytesevals/files/nangrad/train.pyruns · 1,226 bytesevals/files/optlib.pyruns · 881 bytesevals/files/replaycounter/sim.pyruns · 2,690 bytesevals/files/replaycounter/train.pyruns · 1,537 bytesevals/files/retaingrad/model.pyruns · 2,342 bytesevals/files/retaingrad/train.pyruns · 2,222 bytesevals/files/sensor_train.pyruns · 1,327 bytesevals/files/solver_design.pyruns · 2,883 bytesevals/files/springs.pyruns · 3,579 bytesevals/files/stiffcontrol/sim.pyruns · 2,674 bytesevals/files/stiffcontrol/train.pyruns · 1,327 bytesevals/files/structwar/sim.pyruns · 5,828 bytesevals/files/structwar/train.pyruns · 2,818 bytesevals/files/tapescope/sim.pyruns · 3,199 bytesevals/files/tapescope/train.pyruns · 1,843 bytesevals/files/torch_train.pyruns · 1,008 bytesevals/files/walker/sim.pyruns · 5,597 bytesevals/files/walker/train.pyruns · 4,193 bytesevals/files/warp_layer.pyruns · 1,466 bytesevals/files/writeback/solver.pyruns · 1,636 bytesevals/files/writeback/train.pyruns · 3,397 bytesevals/files/zerograds/pipeline.pyruns · 3,027 bytesevals/files/zerograds/train.pyruns · 1,417 bytesreferences/case-studies.mddoc · 6,968 bytesreferences/custom-gradients.mddoc · 4,514 bytesreferences/quick-checks.mddoc · 18,145 bytesreferences/verification.mddoc · 8,939 bytesskill-card.mddoc · 4,245 bytesskill.oms.sigasset · 17,621 bytes
Read excerpt
# Debugging Gradients in Warp
Gradient bugs in Warp are almost never math bugs. The forward simulation looks
perfectly healthy while the backward pass silently reads clobbered values,
skips arrays, or double-counts adjoints. Users routinely burn days tuning
physics knobs, loss functions, and assets when the real cause is a two-line
taping-pattern fix. Your job is to find that fix with evidence, not intuition.
The single most important discipline: **measure before hypothesizing**. It is
cheap for you to run a shrunk reproduction and compare autodiff against finite
differences. The *way* the gradient is wrong (its signature) prunes the
hypothesis space far faster than reading code ever will. Do not start
proposing fixes from code reading alone — plausible-looking diagnoses of
differentiability bugs are very often wrong, and an unverified "fix" that