Skip to main content
Jeden Skill in Manus ausführen
mit einem Klick

pytorch-patterns

Sterne2
Forks0
Aktualisiert9. Juli 2026 um 00:38

Idiomatic PyTorch for robust, reproducible, memory-conscious training pipelines: device-agnostic placement, full seed control, explicit tensor shape tracking, clean nn.Module construction, weight initialisation, correct train/eval mode discipline, the standard training and validation loops, efficient Dataset/DataLoader configuration, variable-length collation, resumable checkpointing, and the performance levers (mixed precision, gradient checkpointing, torch.compile). Front-loads the autograd- and correctness-breaking anti-patterns: forgetting eval() at validation, in-place ops severing the graph, .item() before backward, moving the model to GPU inside the loop, and the pickle-RCE risk of loading checkpoints without weights_only. Use when writing or reviewing models, training scripts, or data pipelines, or when tuning GPU memory and speed.

Installation

Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.

SKILL.md
readonly