nv-nightly.yml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. name: nv-nightly
  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, cu116, 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.13.1 torchvision --extra-index-url https://download.pytorch.org/whl/cu116
  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,inf]
  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 -m 'nightly' unit/ --torch_ver="1.13" --cuda_ver="11.6"
  43. - name: Open GitHub issue if nightly CI fails
  44. if: ${{ failure() && (github.event_name == 'schedule') }}
  45. uses: JasonEtco/create-an-issue@v2
  46. env:
  47. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  48. with:
  49. filename: .github/ISSUE_TEMPLATE/ci_failure_report.md
  50. update_existing: true