Warp gradient debugging
Diagnoses wrong gradients in NVIDIA Warp programs by measuring first, so you learn why training fails.
Claude's review
7/10 Strong measure first method for Warp gradient bugs, relying on reference files that are not included.
We asked Claude the question you would ask: would I be glad I installed this? We only sell skills it rates 7 or higher.
In detail
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.
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: warp-debug-gradients
description: >-
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.
license: Apache-2.0
compatibility: Requires a working NVIDIA Warp installation (>= 1.13 minimum; >= 1.17 recommended for reliable verification — copy-adjoint accumulation, overwrite-warning call sites, read-flag lifetime, and gradcheck's restore_inputs changed in 1.17 and are version-caveated in the references; on older versions a fixed bug class still exists and some tools need workarounds). Diagnosis runs the user's reproduction, so a functioning device (CPU or CUDA) is needed.
metadata:
author: "Warp Team <warp-python@nvidia.com>"
version: "0.1.0"
tags:
- warp
- autodiff
- gradients
- differentiable-simulation
- debugging
upstream: https://github.com/NVIDIA/warp
---
# 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
...From NVIDIA's repository, Apache-2.0 licence.
Related skills
-
Checked
Kotlin Toolchain CLI
Builds, tests and packages Kotlin projects with the new JetBrains Kotlin Toolchain CLI, formerly called Amper.
7/101 credit -
Checked
Rust best practices
Writes and reviews idiomatic, maintainable Rust code and runs a checklist before handing it back to you.
7/101 credit -
Checked
Port code to Rust
Ports C, C++, Python, Go or JavaScript code into idiomatic Rust, with tests that prove it behaves the same.
9/101 credit -
Checked
Rust code review
Reviews Rust code for idiom, errors, safety and API design, with a ranked report and a fix for every finding.
8/101 credit -
Checked
Multi axis code review
Reviews a diff for correctness, design, tests and security with severity labels, so only solid code merges.
8/101 credit -
Checked
Python games with pygame
Builds and debugs 2D pygame games with a proper loop and delta time, so they run the same on any PC.
8/101 credit