Skip to content

Latest commit

 

History

History
 
 

README.md

Catalyst tests and docs

We train a number of different models for various of tasks:

During the tests, we compare their convergence metrics in order to verify the correctness of the training procedure and its reproducibility.

Catalyst CI performs tests under various trainer conditions:

  • CPU only
  • 1 GPU
  • 2 GPUs
  • 1 GPU with fp16 training
  • 2 GPUs with fp16 training
  • 2 GPUs with fp16 distributed training

This provides testing for most combinations of important settings. The tests expect the model to perform to a reasonable degree of testing accuracy to pass.

Running tests

To run all tests do the following:

git clone https://github.com/catalyst-team/catalyst
cd catalyst

# install develop dependencies
pip install -r requirements/requirements.txt -r requirements/requirements-cv.txt -r requirements/requirements-nlp.txt -r requirements/requirements-ecosystem.txt -r requirements/requirements-dev.txt

# run python tests
pytest .

# run deep learning tests
## CPU
bash ./teamcity/dl_cpu.sh
## GPU
bash ./teamcity/dl_gpu.sh
## GPUs
bash ./teamcity/dl_gpu2.sh

To test models that require GPU make sure to run the above command on a GPU machine. The GPU machine may have:

  1. At least 1 GPU.
  2. NVIDIA-apex installed.

Running docs

git clone https://github.com/catalyst-team/catalyst
cd catalyst

# install develop dependencies
pip install -r requirements/requirements.txt -r requirements/requirements-cv.txt -r requirements/requirements-nlp.txt -r requirements/requirements-ecosystem.txt -r requirements/requirements-dev.txt -r docs/requirements.txt

# run docs
rm -rf ./builds; REMOVE_BUILDS=0 make check-docs
# open docs
open ./builds/index.html