training-models
Staged setup and silent-failure diagnosis for neural network training. Use when you start a new training pipeline, when you review a training loop, or when a run goes wrong — the loss does not decrease, accuracy stalls, gradients explode or vanish, train and eval disagree, inference is wrong, or a one-batch overfit fails. Chinese triggers include 从零搭训练流程, 检查训练循环, loss 不下降, acc 卡住, 梯度异常, 训练验证不一致, and 推理错误. Do not use for experiment orchestration, ablation matrices, or result tables.
- License
- MIT
- Compatibility
- Sample code and the sanity check require PyTorch.
Pinned to revision f389027de1e8, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/training-models/SKILL.md
- skills/training-models/references/checklist.md
- skills/training-models/references/karpathy-recipe.md
- skills/training-models/scripts/correct_training_loop.py
- skills/training-models/scripts/extra_pitfalls_before_after.py
- skills/training-models/scripts/sanity_check.py
- skills/training-models/scripts/six_pitfalls_before_after.py
- skills/training-models/tests/test_sanity_check.py
- skills/training-models/tests/verify_on_colab.ipynb
Every link opens the file at its source, pinned to the revision this page describes.