Path: blob/master/chapter18_best-practices-for-the-real-world.ipynb
709 views
Kernel: Python 3
This is a companion notebook for the book Deep Learning with Python, Third Edition. For readability, it only contains runnable code blocks and section titles, and omits everything else in the book: text paragraphs, figures, and pseudocode.
If you want to be able to follow what's going on, I recommend reading the notebook side by side with your copy of the book.
The book's contents are available online at deeplearningwithpython.io.
In [0]:
In [0]:
In [0]:
Best practices for the real world
Getting the most out of your models
Hyperparameter optimization
Using KerasTuner
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
The art of crafting the right search space
The future of hyperparameter tuning: automated machine learning
Model ensembling
Scaling up model training with multiple devices
Multi-GPU training
Data parallelism: Replicating your model on each GPU
Model parallelism: Splitting your model across multiple GPUs
Distributed training in practice
Getting your hands on two or more GPUs
Using data parallelism with JAX
Using model parallelism with JAX
The DeviceMesh API
The LayoutMap API
TPU training
Using step fusing to improve TPU utilization
Speeding up training and inference with lower-precision computation
Understanding floating-point precision
Float16 inference
Mixed-precision training
Using loss scaling with mixed precision
Beyond mixed precision: float8 training
Faster inference with quantization
In [0]:
In [0]:
In [0]:
In [0]:
In [0]: