Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lecture_02.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def main():
text("Summary:")
text("- Everything is operations on tensors (parameters, gradients, activations, optimizer states, data)")
text("- einops: better way to think about tensor operations")
text("- 6 (# data points) (# parameters) FLOPs per training step")
text("- 6 (# batch size) (# sequnce length) (# parameters) FLOPs per training step")
text("- Arithmetic intensity / roofline analysis: compute-bound or memory-bound?")
text("- Matrix multiplications are compute-bound, elementwise operations are memory-bound")
text("- Gradient accumulation, activation checkpointing: reduce memory to use bigger batch sizes")
Expand Down