nv-pre-compile-ops.yml 986 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. name: nv-pre-compile-ops
  2. on:
  3. pull_request:
  4. branches:
  5. '**'
  6. paths-ignore:
  7. - 'docs/**'
  8. - 'blogs/**'
  9. merge_group:
  10. branches: [ master ]
  11. schedule:
  12. - cron: "0 0 * * *"
  13. concurrency:
  14. group: ${{ github.workflow }}-${{ github.ref }}
  15. cancel-in-progress: true
  16. jobs:
  17. build-ops:
  18. runs-on: ubuntu-20.04
  19. container:
  20. image: deepspeed/gh-builder:ubuntu1804-py38-torch1131-cu116
  21. steps:
  22. - uses: actions/checkout@v3
  23. - name: environment
  24. run: |
  25. which python
  26. python --version
  27. python -c "import torch; print('torch:', torch.__version__, torch)"
  28. #python -c "import torch; print('CUDA available:', torch.cuda.is_available())"
  29. - name: Compile DeepSpeed Ops
  30. run: |
  31. TORCH_CUDA_ARCH_LIST="7.0;7.5;8.0" DS_BUILD_OPS=1 DS_BUILD_SPARSE_ATTN=0 DS_BUILD_EVOFORMER_ATTN=0 pip3 install .
  32. - name: DS Report
  33. run: |
  34. ds_report