Skip to content

Commit 12e531b

Browse files
committed
update pytorch version in workflow nv-pre-compile-ops.yml
1 parent 4e7c6f0 commit 12e531b

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/nv-pre-compile-ops.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,20 @@ jobs:
2323
unit-tests:
2424
runs-on: ubuntu-24.04
2525
container:
26-
image: deepspeed/gh-builder:ubuntu1804-py38-torch1131-cu116
26+
image: nvidia/cuda:12.6.3-devel-ubuntu22.04
2727

2828
steps:
29+
- name: Install system dependencies
30+
run: |
31+
apt-get update && apt-get install -y git python3 python3-pip libaio-dev ninja-build
32+
ln -sf /usr/bin/python3 /usr/bin/python
33+
2934
- uses: actions/checkout@v4
3035

36+
- name: Install PyTorch
37+
run: |
38+
pip install torch==2.10.0 --index-url https://download.pytorch.org/whl/cu126
39+
3140
- name: environment
3241
run: |
3342
which python
@@ -36,7 +45,7 @@ jobs:
3645
#python -c "import torch; print('CUDA available:', torch.cuda.is_available())"
3746
- name: Compile DeepSpeed Ops
3847
run: |
39-
DS_ACCELERATOR=cuda DS_ENABLE_NINJA=1 TORCH_CUDA_ARCH_LIST="7.0;7.5;8.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 .
48+
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 .
4049
- name: DS Report
4150
run: |
42-
ds_report
51+
DS_ACCELERATOR=cuda ds_report

0 commit comments

Comments
 (0)