~/talk

Taming the Machine: Basics of ML Models Training and Inference Optimization

slides:none on file

Covers concrete knobs and measured wins: mixed precision (≈3× speedup, sometimes 5×), batch-size + optimizer tuning, gradient accumulation and checkpointing to trade memory for scale, and ZeRO for multi‑GPU memory savings. Shows torch.compile (claimed ≈51% training speedup), ONNX Runtime and NVIDIA TensorRT for inference with INT8 quantization and quantization‑aware training, Triton for serving, and Mojo as a promising Python‑like path to C++ performance on Llama‑7B benchmarks.

AI-written summary · about

  1. 0:00Introduction
  2. 1:46Training versus inference overview
  3. 3:31Mixed precision training
  4. 4:56Batch size optimizer
  5. 6:40Gradient checkpointing
  6. 7:45Data preloading
  7. 8:27Compiler optimization
  8. 10:35TorchCompile
  9. 11:39Multi-GPU training
  10. 13:22ZeRO optimization
  11. 14:48Production ML code
  12. 16:35Inference optimization
  13. 17:18ONNX for sharing
  14. 18:24ONNX Runtime
  15. 19:27Quantization for edge
  16. 20:52TensorRT for NVIDIA
  17. 21:35Scalable ML serving
  18. 23:43Python limits and Mojo
  19. 25:51Mojo acceleration
  20. 27:20Q&A
  21. 29:49CPU versus GPU costs
  22. 31:16Closing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.