nv-torch110-v100.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. name: nv-torch110-v100
  2. on:
  3. schedule:
  4. - cron: "0 0 * * *"
  5. concurrency:
  6. group: ${{ github.workflow }}-${{ github.ref }}
  7. cancel-in-progress: true
  8. permissions:
  9. contents: read
  10. issues: write
  11. jobs:
  12. unit-tests:
  13. runs-on: [self-hosted, nvidia, cu111, v100]
  14. steps:
  15. - uses: actions/checkout@v3
  16. - id: setup-venv
  17. uses: ./.github/workflows/setup-venv
  18. - name: Install pytorch
  19. run: |
  20. pip install -U --cache-dir $TORCH_CACHE torch==1.10.0+cu111 torchvision==0.11.0+cu111 -f https://download.pytorch.org/whl/torch_stable.html
  21. python -c "import torch; print('torch:', torch.__version__, torch)"
  22. python -c "import torch; print('CUDA available:', torch.cuda.is_available())"
  23. - name: Install transformers
  24. run: |
  25. git clone https://github.com/huggingface/transformers
  26. cd transformers
  27. # if needed switch to the last known good SHA until transformers@master is fixed
  28. # git checkout 1cc453d33
  29. git rev-parse --short HEAD
  30. pip install .
  31. - name: Install deepspeed
  32. run: |
  33. pip install .[dev,1bit,autotuning] --no-build-isolation
  34. ds_report
  35. - name: Python environment
  36. run: |
  37. pip list
  38. - name: Unit tests
  39. run: |
  40. unset TORCH_CUDA_ARCH_LIST # only jit compile for current arch
  41. cd tests
  42. pytest $PYTEST_OPTS --forked -n 4 unit/ --torch_ver="1.10" --cuda_ver="11"
  43. pytest $PYTEST_OPTS --forked -m 'sequential' unit/ --torch_ver="1.10" --cuda_ver="11"
  44. - name: Open GitHub issue if nightly CI fails
  45. if: ${{ failure() && (github.event_name == 'schedule') }}
  46. uses: JasonEtco/create-an-issue@v2
  47. env:
  48. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  49. with:
  50. filename: .github/ISSUE_TEMPLATE/ci_failure_report.md
  51. update_existing: true