nv-pre-compile-ops.yml 1.1 KB

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