Skip to content

Commit 5fb943f

Browse files
committed
[CI] Use torch 2.6.0.dev20241001 instead of 20241010 for nvcr 24.11
1 parent b7cdf7b commit 5fb943f

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

.github/workflows/publish.yaml

+8-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
# manylinux docker image, but I haven't figured out how to install CUDA on manylinux.
4545
os: [ubuntu-20.04]
4646
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']
4848
cuda-version: ['11.8.0', '12.3.2']
4949
# We need separate wheels that either uses C++11 ABI (-D_GLIBCXX_USE_CXX11_ABI) or not.
5050
# Pytorch wheels currently don't use it, but nvcr images have Pytorch compiled with C++11 ABI.
@@ -80,6 +80,7 @@ jobs:
8080
echo "MATRIX_CUDA_VERSION=$(echo ${{ matrix.cuda-version }} | awk -F \. {'print $1 $2'})" >> $GITHUB_ENV
8181
echo "MATRIX_TORCH_VERSION=$(echo ${{ matrix.torch-version }} | awk -F \. {'print $1 "." $2'})" >> $GITHUB_ENV
8282
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
8384
8485
- name: Free up disk space
8586
if: ${{ runner.os == 'Linux' }}
@@ -125,7 +126,12 @@ jobs:
125126
print(minv if int(env['MATRIX_CUDA_VERSION']) < 120 else maxv)" \
126127
)
127128
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
129135
else
130136
pip install --no-cache-dir torch==${{ matrix.torch-version }} --index-url https://download.pytorch.org/whl/cu${TORCH_CUDA_VERSION}
131137
fi

mamba_ssm/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "2.2.3.post1"
1+
__version__ = "2.2.3.post2"
22

33
from mamba_ssm.ops.selective_scan_interface import selective_scan_fn, mamba_inner_fn
44
from mamba_ssm.modules.mamba_simple import Mamba

pyproject.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors = [
66
{ name = "Tri Dao", email = "[email protected]" },
77
{ name = "Albert Gu", email = "[email protected]" }
88
]
9-
requires-python = ">= 3.7"
9+
requires-python = ">= 3.9"
1010
dynamic = ["version"]
1111
license = { file = "LICENSE" } # Include a LICENSE file in your repo
1212
keywords = ["cuda", "pytorch", "state-space model"]
@@ -24,7 +24,8 @@ dependencies = [
2424
"packaging",
2525
"setuptools>=61.0.0",
2626
]
27-
urls = { name = "Repository", url = "https://github.com/state-spaces/mamba"}
27+
[project.urls]
28+
Repository = "https://github.com/state-spaces/mamba"
2829

2930
[project.optional-dependencies]
3031
causal-conv1d = [

0 commit comments

Comments
 (0)