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 Updated

File contents

deepmodeling/deepmd-kit commit f85be554a8

Frequently asked questions

npx get-skill add deepmodeling/debug-gradient-flow