From f53794cf8928909f8fe4ea1b7ede79ecd613c8f9 Mon Sep 17 00:00:00 2001 From: hobogalaxy Date: Tue, 10 Nov 2020 13:09:56 +0100 Subject: [PATCH] explain more more more in readme --- README.md | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 0e4a45d..b3703b0 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # Hackathon template -A convenient starting template for any deep learning hackathon. Built with PyTorch Lightning and Weights&Biases(wandb). +A convenient starting template for most deep learning projects. Built with PyTorch Lightning and Weights&Biases (wandb). + +### Install anaconda +https://docs.conda.io/projects/conda/en/latest/user-guide/install/download.html ### Create conda env @@ -15,20 +18,16 @@ https://pytorch.org/get-started/locally/ ### Clone repo ``` git clone https://github.com/kinoai/hackathon-template +``` +### Install requirements with pip +``` cd hackathon-template pip install -r requirements.txt ``` ### Useful tips -- PyTorch Lightning Bolts is official collection of prebuilt models across many research domains: - - https://pytorch-lightning.readthedocs.io/en/latest/bolts.html - - https://github.com/PyTorchLightning/pytorch-lightning-bolts -- Pre-trained pytorch model repository designed for research exploration: - - https://pytorch.org/hub/ -- List of all tools in PyTorch ecosystem: - - https://pytorch.org/ecosystem/ - - Useful pl.Trainer() parameters: + - gpus=-1 - use all gpus available on your machine - 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)) @@ -46,4 +45,12 @@ https://pytorch.org/get-started/locally/ - profiler=SimpleProfiler() - print execution time info for each method used - weights_summary='full' - print model info - amp_backend='apex' - apex backend for mixed precision training https://github.com/NVIDIA/apex + +- PyTorch Lightning Bolts is official collection of prebuilt models across many research domains: + - https://pytorch-lightning.readthedocs.io/en/latest/bolts.html + - https://github.com/PyTorchLightning/pytorch-lightning-bolts +- Pre-trained pytorch model repository designed for research exploration: + - https://pytorch.org/hub/ +- List of all tools in PyTorch ecosystem: + - https://pytorch.org/ecosystem/