tool:pytorch

PyTorch

A tensor, autograd, neural-network, and distributed-training runtime.

12

Lessons

Formal explanations, examples, simulations, and checkpoints.

Neural networks from scratch

Beyond linear boundaries

Use beyond linear boundaries to move the neural networks production brief toward a defensible release.

Neural networks from scratch

Forward pass, activations, losses, and initialization

Use forward pass, activations, losses, and initialization to move the neural networks production brief toward a defensible release.

Neural networks from scratch

Backpropagation without magic

Use backpropagation without magic to move the neural networks production brief toward a defensible release.

Neural networks from scratch

SGD, momentum, AdamW, and schedules

Use sgd, momentum, adamw, and schedules to move the neural networks production brief toward a defensible release.

Neural networks from scratch

Regularize, normalize, debug, and ship

Use regularize, normalize, debug, and ship to move the neural networks production brief toward a defensible release.

Neural networks from scratch

Activation functions: geometry, gradients, and failure modes

Select activation functions by signal range, gradient flow, architecture, precision, and failure mode; then diagnose saturation and dead units from telemetry.

Neural networks from scratch

Loss functions by task, data, and deployment constraints

Choose and debug training objectives as optimization surrogates for the real task, including imbalance, outliers, uncertainty, ranking, dense prediction, and generation.

Distributed & fault-tolerant training

Choose data, sharded, tensor, or pipeline parallelism

Use choose data, sharded, tensor, or pipeline parallelism to move the distributed training production brief toward a defensible release.

Distributed & fault-tolerant training

DDP under the hood

Use ddp under the hood to move the distributed training production brief toward a defensible release.

Distributed & fault-tolerant training

FSDP and ZeRO-style sharding

Use fsdp and zero-style sharding to move the distributed training production brief toward a defensible release.

Distributed & fault-tolerant training

Distributed checkpoints and fault-tolerant restarts

Use distributed checkpoints and fault-tolerant restarts to move the distributed training production brief toward a defensible release.

Distributed & fault-tolerant training

Hangs, stragglers, and scaling efficiency

Use hangs, stragglers, and scaling efficiency to move the distributed training production brief toward a defensible release.