nv-mii.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. name: nv-mii
  2. on:
  3. pull_request:
  4. paths-ignore:
  5. - 'docs/**'
  6. - 'blogs/**'
  7. merge_group:
  8. branches: [ master ]
  9. schedule:
  10. - cron: "0 0 * * *"
  11. concurrency:
  12. group: ${{ github.workflow }}-${{ github.ref }}
  13. cancel-in-progress: true
  14. jobs:
  15. unit-tests:
  16. runs-on: [self-hosted, nvidia, cu116, v100]
  17. steps:
  18. - uses: actions/checkout@v3
  19. - id: setup-venv
  20. uses: ./.github/workflows/setup-venv
  21. - name: Install pytorch
  22. run: |
  23. pip3 install -U --cache-dir $TORCH_CACHE torch --index-url https://download.pytorch.org/whl/cu118
  24. python -c "import torch; print('torch:', torch.__version__, torch)"
  25. python -c "import torch; print('CUDA available:', torch.cuda.is_available())"
  26. - name: Install transformers
  27. run: |
  28. git clone https://github.com/huggingface/transformers
  29. cd transformers
  30. # if needed switch to the last known good SHA until transformers@master is fixed
  31. # git checkout 1cc453d33
  32. git rev-parse --short HEAD
  33. pip install .
  34. - name: Install deepspeed
  35. run: |
  36. pip install .[dev]
  37. ds_report
  38. - name: Python environment
  39. run: |
  40. pip list
  41. - name: MII unit tests
  42. run: |
  43. git clone https://github.com/microsoft/DeepSpeed-MII.git
  44. cd DeepSpeed-MII
  45. pip install .[dev]
  46. unset TORCH_CUDA_ARCH_LIST # only jit compile for current arch
  47. cd tests/legacy
  48. pytest $PYTEST_OPTS --forked -m "deepspeed" ./