|
44 | 44 | # manylinux docker image, but I haven't figured out how to install CUDA on manylinux. |
45 | 45 | os: [ubuntu-20.04] |
46 | 46 | python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] |
47 | | - torch-version: ['2.1.2', '2.2.2', '2.3.1', '2.4.0', '2.5.1', '2.6.0.dev20241010'] |
| 47 | + torch-version: ['2.1.2', '2.2.2', '2.3.1', '2.4.0', '2.5.1', '2.6.0.dev20241001'] |
48 | 48 | cuda-version: ['11.8.0', '12.3.2'] |
49 | 49 | # We need separate wheels that either uses C++11 ABI (-D_GLIBCXX_USE_CXX11_ABI) or not. |
50 | 50 | # Pytorch wheels currently don't use it, but nvcr images have Pytorch compiled with C++11 ABI. |
|
80 | 80 | echo "MATRIX_CUDA_VERSION=$(echo ${{ matrix.cuda-version }} | awk -F \. {'print $1 $2'})" >> $GITHUB_ENV |
81 | 81 | echo "MATRIX_TORCH_VERSION=$(echo ${{ matrix.torch-version }} | awk -F \. {'print $1 "." $2'})" >> $GITHUB_ENV |
82 | 82 | echo "WHEEL_CUDA_VERSION=$(echo ${{ matrix.cuda-version }} | awk -F \. {'print $1'})" >> $GITHUB_ENV |
| 83 | + echo "MATRIX_PYTHON_VERSION=$(echo ${{ matrix.python-version }} | awk -F \. {'print $1 $2'})" >> $GITHUB_ENV |
83 | 84 |
|
84 | 85 | - name: Free up disk space |
85 | 86 | if: ${{ runner.os == 'Linux' }} |
@@ -125,7 +126,12 @@ jobs: |
125 | 126 | print(minv if int(env['MATRIX_CUDA_VERSION']) < 120 else maxv)" \ |
126 | 127 | ) |
127 | 128 | if [[ ${{ matrix.torch-version }} == *"dev"* ]]; then |
128 | | - pip install --no-cache-dir --pre torch==${{ matrix.torch-version }} --index-url https://download.pytorch.org/whl/nightly/cu${TORCH_CUDA_VERSION} |
| 129 | + # pip install --no-cache-dir --pre torch==${{ matrix.torch-version }} --index-url https://download.pytorch.org/whl/nightly/cu${TORCH_CUDA_VERSION} |
| 130 | + # Can't use --no-deps because we need cudnn etc. |
| 131 | + # Hard-coding this version of pytorch-triton for torch 2.6.0.dev20241001 |
| 132 | + pip install jinja2 |
| 133 | + pip install https://download.pytorch.org/whl/nightly/pytorch_triton-3.1.0%2Bcf34004b8a-cp${MATRIX_PYTHON_VERSION}-cp${MATRIX_PYTHON_VERSION}-linux_x86_64.whl |
| 134 | + pip install --no-cache-dir --pre https://download.pytorch.org/whl/nightly/cu${TORCH_CUDA_VERSION}/torch-${{ matrix.torch-version }}%2Bcu${TORCH_CUDA_VERSION}-cp${MATRIX_PYTHON_VERSION}-cp${MATRIX_PYTHON_VERSION}-linux_x86_64.whl |
129 | 135 | else |
130 | 136 | pip install --no-cache-dir torch==${{ matrix.torch-version }} --index-url https://download.pytorch.org/whl/cu${TORCH_CUDA_VERSION} |
131 | 137 | fi |
|
0 commit comments