nv-lightning-v100.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. name: nv-lightning-v100
  2. on:
  3. push:
  4. branches:
  5. - 'master'
  6. - 'staging**'
  7. paths-ignore:
  8. - 'docs/**'
  9. pull_request:
  10. paths-ignore:
  11. - 'docs/**'
  12. concurrency:
  13. group: ${{ github.workflow }}-${{ github.ref }}
  14. cancel-in-progress: true
  15. jobs:
  16. unit-tests:
  17. runs-on: [self-hosted, nvidia, cu111, v100]
  18. steps:
  19. - uses: actions/checkout@v2
  20. - name: environment
  21. run: |
  22. nvidia-smi
  23. which python
  24. python --version
  25. which nvcc
  26. nvcc --version
  27. pip install --upgrade pip
  28. pip uninstall --yes torch torchvision
  29. pip install torch==1.9.1+cu111 torchvision==0.10.1+cu111 torchaudio==0.9.1 -f https://download.pytorch.org/whl/torch_stable.html
  30. python -c "import torch; print('torch:', torch.__version__, torch)"
  31. python -c "import torch; print('CUDA available:', torch.cuda.is_available())"
  32. - name: Python environment
  33. run: |
  34. pip list
  35. - name: Install deepspeed
  36. run: |
  37. pip uninstall --yes deepspeed
  38. pip install .[dev,autotuning]
  39. ds_report
  40. - name: PyTorch Lightning Tests
  41. run: |
  42. if [[ -d ./torch-extensions ]]; then rm -rf ./torch-extensions; fi
  43. pip uninstall --yes pytorch-lightning
  44. pip install pytorch-lightning
  45. pip install "protobuf<4.21.0"
  46. cd tests
  47. TORCH_EXTENSIONS_DIR=./torch-extensions pytest --color=yes --durations=0 --verbose lightning/