home/categories/machine-learning/deepmodeling-deepmd-kit-github-skills-debug-gradient-flow-skill-md
machine-learningdata-ai

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
maintainer
deepmodeling
更新于 3/3/2026
星标
1909
分支
607
quick start

Installation and usage

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.

安装
$ install --globalskills.sh
使用

安装后,您可以通过在终端运行以下命令来使用此技能:

skills use debug-gradient-flow