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
Mis à jour 3/3/2026
Étoiles
1909
Forks
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.

Installation
$ install --globalskills.sh
Utilisation

Après l'installation, vous pouvez utiliser ce skill en exécutant la commande suivante dans votre terminal :

skills use debug-gradient-flow