diff --git a/README.md b/README.md index 3854d97..2e88e28 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ https://pytorch.org/get-started/locally/ https://pytorch-lightning.readthedocs.io/en/latest/bolts.html - Useful pl.Trainer() parameters: + - accumulate_grad_batches=5 - perform optimisation after accumulating gradient from 5 batches - accumulate_grad_batches={5: 3, 10: 20} - no accumulation for epochs 1-4. accumulate 3 for epochs 5-10. accumulate 20 after that - auto_scale_batch_size='power' - automatically find the largest batch size that fits into memory and is power of 2 (requires calling trainer.tune(model, datamodule)) - check_val_every_n_epoch=10 - run validation loop every 10 training epochs @@ -39,6 +40,5 @@ https://pytorch-lightning.readthedocs.io/en/latest/bolts.html - gradient_clip_val=0.5 - gradient clipping value (0 means don’t clip), helps with exploding gradient issues - profiler=SimpleProfiler() - print execution time info for each method used - weights_summary='full' - print model info - - accumulate_grad_batches=5 - perform optimisation after accumulating gradient from 5 batches - amp_backend='apex' - apex backend for mixed precision training https://github.com/NVIDIA/apex