extra credit Search 85,062 technologies ⌘K Download for Mac

PyTorch

Category
AI and LLMs
Docs outline
16 sections

Official docs outline

docs.pytorch.org
  1. Tensors

    torch.Tensor, dtypes, devices, shapes, views and strides, in-place ops, indexing.

  2. Autograd mechanics

    Reverse-mode automatic differentiation, requires_grad, computation graph, backward, no_grad, gradient accumulation, custom Functions.

  3. torch.nn modules

    nn.Module, parameters, layers, loss functions, forward, state_dict, train/eval mode, initialization.

  4. torch.optim

    Optimizers (SGD, Adam, AdamW), learning rate schedulers, zero_grad/step, parameter groups.

  5. Data loading

    Dataset, DataLoader, samplers, batching, collate_fn, workers, shuffling.

  6. Saving and loading

    torch.save/load, state_dict checkpoints, weights_only safety, resuming training.

  7. CUDA semantics

    GPU devices, asynchronous execution, streams, memory management, pinned memory, moving data to device.

  8. Automatic mixed precision

    autocast, GradScaler, float16 vs bfloat16, speed and memory tradeoffs.

  9. Broadcasting semantics

    Shape broadcasting rules for tensor operations.

  10. torch.compile

    TorchDynamo graph capture, Inductor, graph breaks, recompilation, speeding up models.

  11. Distributed training

    torch.distributed, process groups, backends (NCCL, Gloo), collectives, init_process_group.

  12. DistributedDataParallel

    Data parallel training across GPUs/nodes, gradient all-reduce, DistributedSampler, launching with torchrun.

  13. Fully Sharded Data Parallel

    Sharding parameters, gradients and optimizer states, memory-efficient large-model training.

  14. Profiler

    torch.profiler, tracing CPU/GPU ops, finding bottlenecks, TensorBoard traces.

  15. Quantization

    Post-training and quantization-aware training, int8, reduced precision inference.

  16. torch.export

    Ahead-of-time capture of full graphs, ExportedProgram, dynamic shapes, deployment.

Each section links to the official page. Titles and summaries by Extra Credit; the docs belong to their authors.

All 39
↑↓ move ↵ open