nv-torch110-p40.yml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. name: nv-torch110-p40
  2. on:
  3. schedule:
  4. - cron: "0 0 * * *"
  5. workflow_dispatch:
  6. concurrency:
  7. group: ${{ github.workflow }}-${{ github.ref }}
  8. cancel-in-progress: true
  9. permissions:
  10. contents: read
  11. issues: write
  12. jobs:
  13. unit-tests:
  14. runs-on: [self-hosted, nvidia, cu111, p40]
  15. steps:
  16. - uses: actions/checkout@v3
  17. - id: setup-venv
  18. uses: ./.github/workflows/setup-venv
  19. - name: Install pytorch
  20. run: |
  21. 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
  22. python -c "import torch; print('torch:', torch.__version__, torch)"
  23. python -c "import torch; print('CUDA available:', torch.cuda.is_available())"
  24. - name: Install transformers
  25. run: |
  26. git clone https://github.com/huggingface/transformers
  27. cd transformers
  28. # if needed switch to the last known good SHA until transformers@master is fixed
  29. # git checkout 1cc453d33
  30. git rev-parse --short HEAD
  31. pip install .
  32. - name: Install deepspeed
  33. run: |
  34. pip install .[dev,1bit,autotuning] --no-build-isolation
  35. ds_report
  36. - name: Python environment
  37. run: |
  38. pip list
  39. - name: Unit tests
  40. run: |
  41. unset TORCH_CUDA_ARCH_LIST # only jit compile for current arch
  42. cd tests
  43. pytest $PYTEST_OPTS --forked -n 4 unit/ --torch_ver="1.10" --cuda_ver="11.1"
  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