nv-pre-compile-ops #12570
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: nv-pre-compile-ops | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: | |
| '**' | |
| paths-ignore: | |
| - 'docs/**' | |
| - 'blogs/**' | |
| - 'deepspeed/inference/v2/**' | |
| - 'tests/unit/inference/v2/**' | |
| merge_group: | |
| branches: [ master ] | |
| schedule: | |
| - cron: "0 0 * * *" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| unit-tests: | |
| runs-on: ubuntu-24.04 | |
| container: | |
| image: nvidia/cuda:12.6.3-devel-ubuntu22.04 | |
| steps: | |
| - name: Install system dependencies | |
| run: | | |
| apt-get update && apt-get install -y git python3 python3-pip libaio-dev ninja-build | |
| ln -sf /usr/bin/python3 /usr/bin/python | |
| - uses: actions/checkout@v4 | |
| - name: Install PyTorch | |
| run: | | |
| pip install torch==2.10.0 --index-url https://download.pytorch.org/whl/cu126 | |
| - name: environment | |
| run: | | |
| which python | |
| python --version | |
| python -c "import torch; print('torch:', torch.__version__, torch)" | |
| #python -c "import torch; print('CUDA available:', torch.cuda.is_available())" | |
| - name: Compile DeepSpeed Ops | |
| run: | | |
| DS_ACCELERATOR=cuda DS_ENABLE_NINJA=1 TORCH_CUDA_ARCH_LIST="7.0;7.5;8.0;8.6;8.9;9.0" DS_BUILD_OPS=1 DS_BUILD_SPARSE_ATTN=0 DS_BUILD_FP_QUANTIZER=0 DS_BUILD_CUTLASS_OPS=0 DS_BUILD_GDS=0 DS_BUILD_RAGGED_DEVICE_OPS=0 DS_BUILD_EVOFORMER_ATTN=0 DS_BUILD_DEEP_COMPILE=0 pip3 install . | |
| - name: DS Report | |
| run: | | |
| DS_ACCELERATOR=cuda ds_report |