lightning/tests
William Falcon 57a99e2aa5 updated test docs 2019-07-24 10:30:41 -04:00
..
README.md updated test docs 2019-07-24 10:09:47 -04:00
debug.py updated test docs 2019-07-24 10:30:41 -04:00
test_models.py updated test docs 2019-07-24 10:24:15 -04:00

README.md

Pytorch-Lightning Tests

Running tests

To run all tests do the following:

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 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.
  4. Multiple (2) GPUs using DDP.
  5. Multiple (2) GPUs using DP + apex (for 16-bit precision).
  6. Multiple (2) GPUs using DDP + apex (for 16-bit precision).