Skip to content

Commit ff8f8ca

Browse files
committed
upgrade torch to 12.8
1 parent 34887b4 commit ff8f8ca

File tree

9 files changed

+25
-25
lines changed

9 files changed

+25
-25
lines changed

.devcontainer/manylinux/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FROM ${BASE_IMAGE}
44
ARG USER=vscode
55
ARG UID=1000
66
ARG GID=1000
7-
ARG TORCH_VERSION=2.7.1
7+
ARG TORCH_VERSION=2.8.0
88
ARG CUDA_VERSION=12.8
99
ARG PYTHON_VERSION=3.12
1010

.devcontainer/manylinux/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"dockerfile": "Dockerfile",
66
"args": {
77
"BASE_IMAGE": "vectorchai/scalellm_manylinux2_28:cuda12.8",
8-
"TORCH_VERSION": "2.7.1",
8+
"TORCH_VERSION": "2.8.0",
99
"CUDA_VERSION": "12.8",
1010
"USER": "${localEnv:USER:vscode}",
1111
"UID": "${localEnv:UID:1000}",

.github/workflows/create_release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ jobs:
2424
fail-fast: false
2525
matrix:
2626
python: ["3.9", "3.10", "3.11", "3.12"]
27-
cuda: ["11.8", "12.6", "12.8"]
28-
torch: ["2.7.1"]
27+
cuda: ["12.6", "12.8", "12.9"]
28+
torch: ["2.8.0"]
2929
runs-on: [self-hosted, linux]
3030
env:
3131
PYTHON_VERSION: ${{ matrix.python }}

.github/workflows/pkg_build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
matrix:
4141
python: ["3.12"]
4242
cuda: ["12.8"]
43-
torch: ["2.7.1"]
43+
torch: ["2.8.0"]
4444
runs-on: [self-hosted, linux]
4545
env:
4646
PYTHON_VERSION: ${{ matrix.python }}
@@ -92,7 +92,7 @@ jobs:
9292
matrix:
9393
python: ["3.12"]
9494
cuda: ["12.8"]
95-
torch: ["2.7.1"]
95+
torch: ["2.8.0"]
9696
runs-on: [self-hosted, linux, gpu]
9797
env:
9898
PYTHON_VERSION: ${{ matrix.python }}

.github/workflows/pkg_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
matrix:
2222
python: ["3.9", "3.10", "3.11", "3.12"]
2323
cuda: ["12.8"]
24-
torch: ["2.7.1"]
24+
torch: ["2.8.0"]
2525
runs-on: [self-hosted, linux]
2626
env:
2727
PYTHON_VERSION: ${{ matrix.python }}
@@ -74,7 +74,7 @@ jobs:
7474
matrix:
7575
python: ["3.9", "3.10", "3.11", "3.12"]
7676
cuda: ["12.8"]
77-
torch: ["2.7.1"]
77+
torch: ["2.8.0"]
7878
runs-on: [self-hosted, linux, gpu]
7979
env:
8080
PYTHON_VERSION: ${{ matrix.python }}

.github/workflows/publish_pypi.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
strategy:
2323
matrix:
2424
python: ["3.9", "3.10", "3.11", "3.12"]
25-
cuda: ["12.6"]
26-
torch: ["2.7.1"]
25+
cuda: ["12.8"]
26+
torch: ["2.8.0"]
2727
runs-on: [self-hosted, linux]
2828
env:
2929
PYTHON_VERSION: ${{ matrix.python }}
@@ -89,7 +89,7 @@ jobs:
8989
matrix:
9090
python: ["3.9", "3.10", "3.11", "3.12"]
9191
cuda: ["12.6"]
92-
torch: ["2.7.1"]
92+
torch: ["2.8.0"]
9393
runs-on: [self-hosted, linux, gpu]
9494
env:
9595
PYTHON_VERSION: ${{ matrix.python }}

CMakeLists.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -175,14 +175,14 @@ if (DEFINED ENV{LIBTORCH_ROOT})
175175
else()
176176
include(FetchContent)
177177
if (CUDAToolkit_VERSION VERSION_GREATER_EQUAL 12.8)
178-
# download libtorch 2.7.1 with cuda 12.8 from pytorch.org
179-
set(LIBTORCH_URL "https://download.pytorch.org/libtorch/cu128/libtorch-cxx11-abi-shared-with-deps-2.7.1%2Bcu128.zip")
178+
# download libtorch 2.8.0 with cuda 12.8 from pytorch.org
179+
set(LIBTORCH_URL "https://download.pytorch.org/libtorch/cu128/libtorch-cxx11-abi-shared-with-deps-2.8.0%2Bcu128.zip")
180180
elseif(CUDAToolkit_VERSION VERSION_GREATER_EQUAL 12.6)
181-
# download libtorch 2.7.1 with cuda 12.6 from pytorch.org
182-
set(LIBTORCH_URL "https://download.pytorch.org/libtorch/cu126/libtorch-cxx11-abi-shared-with-deps-2.7.1%2Bcu126.zip")
181+
# download libtorch 2.8.0 with cuda 12.6 from pytorch.org
182+
set(LIBTORCH_URL "https://download.pytorch.org/libtorch/cu126/libtorch-cxx11-abi-shared-with-deps-2.8.0%2Bcu126.zip")
183183
elseif(CUDAToolkit_VERSION VERSION_GREATER_EQUAL 11.8)
184-
# download libtorch 2.7.1 with cuda 11.8 from pytorch.org
185-
set(LIBTORCH_URL "https://download.pytorch.org/libtorch/cu118/libtorch-cxx11-abi-shared-with-deps-2.7.1%2Bcu118.zip")
184+
# download libtorch 2.8.0 with cuda 11.8 from pytorch.org
185+
set(LIBTORCH_URL "https://download.pytorch.org/libtorch/cu118/libtorch-cxx11-abi-shared-with-deps-2.8.0%2Bcu118.zip")
186186
else()
187187
# error out if cuda version is not supported
188188
message(FATAL_ERROR "Unsupported CUDA version: ${CUDAToolkit_VERSION}")
@@ -201,7 +201,7 @@ else()
201201
FetchContent_MakeAvailable(libtorch)
202202

203203
find_package(Torch REQUIRED PATHS ${libtorch_SOURCE_DIR} NO_DEFAULT_PATH)
204-
message(STATUS "Downloading and using libtorch 2.7.1 for cuda ${CUDAToolkit_VERSION} at ${libtorch_SOURCE_DIR}")
204+
message(STATUS "Downloading and using libtorch 2.8.0 for cuda ${CUDAToolkit_VERSION} at ${libtorch_SOURCE_DIR}")
205205
endif()
206206

207207
# carry over torch flags to the rest of the project

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ScaleLLM is available as a Python Wheel package on `PyPI <https://pypi.org/proje
1212

1313
.. code-block:: bash
1414
15-
# Install ScaleLLM with CUDA 12.6 and Pytorch 2.7.1
15+
# Install ScaleLLM with CUDA 12.6 and Pytorch 2.8.0
1616
$ pip install -U scalellm
1717
1818

docs/source/quick_start.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,31 +25,31 @@ If you want to install ScaleLLM with different versions of CUDA and PyTorch, you
2525

2626
.. tabs::
2727

28-
.. tab:: PyTorch 2.7.1
28+
.. tab:: PyTorch 2.8.0
2929

3030
.. code-block:: bash
3131
32-
$ pip install -U scalellm -i https://whl.vectorch.com/cu128/torch2.7.1/
32+
$ pip install -U scalellm -i https://whl.vectorch.com/cu128/torch2.8.0/
3333
3434
.. tab:: CUDA 12.6
3535

3636
.. tabs::
3737

38-
.. tab:: PyTorch 2.7.1
38+
.. tab:: PyTorch 2.8.0
3939

4040
.. code-block:: bash
4141
42-
$ pip install -U scalellm -i https://whl.vectorch.com/cu126/torch2.7.1/
42+
$ pip install -U scalellm -i https://whl.vectorch.com/cu126/torch2.8.0/
4343
4444
.. tab:: CUDA 11.8
4545

4646
.. tabs::
4747

48-
.. tab:: PyTorch 2.7.1
48+
.. tab:: PyTorch 2.8.0
4949

5050
.. code-block:: bash
5151
52-
$ pip install -U scalellm -i https://whl.vectorch.com/cu118/torch2.7.1/
52+
$ pip install -U scalellm -i https://whl.vectorch.com/cu118/torch2.8.0/
5353
5454
5555
Build from source

0 commit comments

Comments
 (0)