From cfbf305c9c344bc9b5933a527eb288d05d0b2616 Mon Sep 17 00:00:00 2001 From: William Falcon Date: Wed, 24 Jul 2019 10:09:47 -0400 Subject: [PATCH] updated test docs --- tests/README.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 tests/README.md diff --git a/tests/README.md b/tests/README.md new file mode 100644 index 0000000000..d7eb4f92ae --- /dev/null +++ b/tests/README.md @@ -0,0 +1,35 @@ +# Pytorch-Lightning Tests + +## Running tests + +To run all tests do the following: +```bash +git clone https://github.com/williamFalcon/pytorch-lightning +cd pytorch-lightning + +# install module locally +pip install -e . + +# install dev deps +pip install -r requirements.txt + +# run tests +py.test +``` + +To test models that require GPU make sure to run the above command on a GPU machine. +The GPU machine must have: +1. At least 2 GPUs. +2. [NVIDIA-apex](https://github.com/NVIDIA/apex#linux) installed. + + +### test_models.py +This file fits a tiny model on MNIST using these different set-ups. +1. CPU only. +2. Single GPU with DP. +3. Multiple (2) GPUs using DP. +3. Multiple (2) GPUs using DDP. +3. Multiple (2) GPUs using DP + apex (for 16-bit precision). +3. Multiple (2) GPUs using DDP + apex (for 16-bit precision). + +