From dc88fa10e0c069f1963205844e614a7f7432a4c2 Mon Sep 17 00:00:00 2001 From: Tri Dao Date: Mon, 29 Jan 2024 17:51:25 -0800 Subject: [PATCH] Use URL to install torch.20231106dev --- .github/workflows/publish.yml | 7 ++++--- fast_hadamard_transform/__init__.py | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6341d64..95faa2c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -44,7 +44,7 @@ jobs: # manylinux docker image, but I haven't figured out how to install CUDA on manylinux. os: [ubuntu-20.04] python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] - torch-version: ['1.12.1', '1.13.1', '2.0.1', '2.1.1', '2.2.0.dev20231127'] + torch-version: ['1.12.1', '1.13.1', '2.0.1', '2.1.1', '2.2.0.dev20231106'] cuda-version: ['11.8.0', '12.2.0'] # We need separate wheels that either uses C++11 ABI (-D_GLIBCXX_USE_CXX11_ABI) or not. # Pytorch wheels currently don't use it, but nvcr images have Pytorch compiled with C++11 ABI. @@ -60,7 +60,7 @@ jobs: python-version: '3.7' - torch-version: '2.1.1' python-version: '3.7' - - torch-version: '2.2.0.dev20231127' + - torch-version: '2.2.0.dev20231106' python-version: '3.7' # Pytorch <= 2.0 only supports CUDA <= 11.8 - torch-version: '1.12.1' @@ -83,6 +83,7 @@ jobs: run: | echo "MATRIX_CUDA_VERSION=$(echo ${{ matrix.cuda-version }} | awk -F \. {'print $1 $2'})" >> $GITHUB_ENV echo "MATRIX_TORCH_VERSION=$(echo ${{ matrix.torch-version }} | awk -F \. {'print $1 "." $2'})" >> $GITHUB_ENV + echo "MATRIX_PYTHON_VERSION=$(echo ${{ matrix.python-version }} | awk -F \. {'print $1 $2'})" >> $GITHUB_ENV - name: Free up disk space if: ${{ runner.os == 'Linux' }} @@ -124,7 +125,7 @@ jobs: # This code is ugly, maybe there's a better way to do this. export TORCH_CUDA_VERSION=$(python -c "import os; minv = {'1.12': 113, '1.13': 116, '2.0': 117, '2.1': 118, '2.2': 118}[os.environ['MATRIX_TORCH_VERSION']]; maxv = {'1.12': 116, '1.13': 117, '2.0': 118, '2.1': 121, '2.2': 121}[os.environ['MATRIX_TORCH_VERSION']]; print(max(min(int(os.environ['MATRIX_CUDA_VERSION']), maxv), minv))") if [[ ${{ matrix.torch-version }} == *"dev"* ]]; then - pip install --no-cache-dir --pre torch==${{ matrix.torch-version }} --index-url https://download.pytorch.org/whl/nightly/cu${TORCH_CUDA_VERSION} + 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 else pip install --no-cache-dir torch==${{ matrix.torch-version }} --index-url https://download.pytorch.org/whl/cu${TORCH_CUDA_VERSION} fi diff --git a/fast_hadamard_transform/__init__.py b/fast_hadamard_transform/__init__.py index 6d09250..6d2bfc5 100644 --- a/fast_hadamard_transform/__init__.py +++ b/fast_hadamard_transform/__init__.py @@ -1,3 +1,3 @@ -__version__ = "1.0.3" +__version__ = "1.0.3.post1" from fast_hadamard_transform.fast_hadamard_transform_interface import hadamard_transform