Debug Gradient Flow

Diagnose gradient flow issues in training, especially for compiled models (torch.compile/make_fx). Systematically isolates which loss components (energy, force, virial) contribute gradients to which parameters, and identifies where the gradient chain breaks.

deepmodeling f85be55 2 files · 17.2 KB Updated

File contents

deepmodeling/deepmd-kit/tree/main/.github/skills/debug-gradient-flow commit f85be554a8

Frequently asked questions

npx skillmds@latest add deepmodeling/debug-gradient-flow