Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/build_wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
matrix:
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
cuda: ["11.8", "12.1", "12.4"]
torch: ["2.4.1", "2.5.0"]
exclude: # torch 2.5.0 dropped support for python 3.8
torch: ["2.4.1", "2.5.1"]
exclude: # torch 2.5.1 dropped support for python 3.8
- python: "3.8"
torch: "2.5.0"
torch: "2.5.1"
runs-on: [self-hosted, linux, release]
env:
PYTHON_VERSION: ${{ matrix.python }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/package_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
matrix:
python: ["3.12"]
cuda: ["12.4"]
torch: ["2.5.0"]
torch: ["2.5.1"]
runs-on: [self-hosted, linux, build]
env:
PYTHON_VERSION: ${{ matrix.python }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
matrix:
python: ["3.9", "3.10", "3.11", "3.12"]
cuda: ["12.4"]
torch: ["2.5.0"]
torch: ["2.5.1"]
runs-on: [self-hosted, linux, release]
env:
PYTHON_VERSION: ${{ matrix.python }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
matrix:
python: ["3.9", "3.10", "3.11", "3.12"]
cuda: ["12.4"]
torch: ["2.5.0"]
torch: ["2.5.1"]
runs-on: [self-hosted, linux, release]
env:
PYTHON_VERSION: ${{ matrix.python }}
Expand Down
20 changes: 10 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -194,25 +194,25 @@ if (DEFINED ENV{LIBTORCH_ROOT})
else()
include(FetchContent)
if (CUDAToolkit_VERSION VERSION_GREATER_EQUAL 12.4)
# download libtorch 2.5.0 with cuda 12.4 from pytorch.org
# download libtorch 2.5.1 with cuda 12.4 from pytorch.org
if (USE_CXX11_ABI)
set(LIBTORCH_URL "https://download.pytorch.org/libtorch/cu124/libtorch-cxx11-abi-shared-with-deps-2.5.0%2Bcu124.zip")
set(LIBTORCH_URL "https://download.pytorch.org/libtorch/cu124/libtorch-cxx11-abi-shared-with-deps-2.5.1%2Bcu124.zip")
else()
set(LIBTORCH_URL "https://download.pytorch.org/libtorch/cu124/libtorch-shared-with-deps-2.5.0%2Bcu124.zip")
set(LIBTORCH_URL "https://download.pytorch.org/libtorch/cu124/libtorch-shared-with-deps-2.5.1%2Bcu124.zip")
endif()
elseif(CUDAToolkit_VERSION VERSION_GREATER_EQUAL 12.1)
# download libtorch 2.5.0 with cuda 12.1 from pytorch.org
# download libtorch 2.5.1 with cuda 12.1 from pytorch.org
if (USE_CXX11_ABI)
set(LIBTORCH_URL "https://download.pytorch.org/libtorch/cu121/libtorch-cxx11-abi-shared-with-deps-2.5.0%2Bcu121.zip")
set(LIBTORCH_URL "https://download.pytorch.org/libtorch/cu121/libtorch-cxx11-abi-shared-with-deps-2.5.1%2Bcu121.zip")
else()
set(LIBTORCH_URL "https://download.pytorch.org/libtorch/cu121/libtorch-shared-with-deps-2.5.0%2Bcu121.zip")
set(LIBTORCH_URL "https://download.pytorch.org/libtorch/cu121/libtorch-shared-with-deps-2.5.1%2Bcu121.zip")
endif()
elseif(CUDAToolkit_VERSION VERSION_GREATER_EQUAL 11.8)
# download libtorch 2.5.0 with cuda 11.8 from pytorch.org
# download libtorch 2.5.1 with cuda 11.8 from pytorch.org
if (USE_CXX11_ABI)
set(LIBTORCH_URL "https://download.pytorch.org/libtorch/cu118/libtorch-cxx11-abi-shared-with-deps-2.5.0%2Bcu118.zip")
set(LIBTORCH_URL "https://download.pytorch.org/libtorch/cu118/libtorch-cxx11-abi-shared-with-deps-2.5.1%2Bcu118.zip")
else()
set(LIBTORCH_URL "https://download.pytorch.org/libtorch/cu118/libtorch-shared-with-deps-2.5.0%2Bcu118.zip")
set(LIBTORCH_URL "https://download.pytorch.org/libtorch/cu118/libtorch-shared-with-deps-2.5.1%2Bcu118.zip")
endif()
else()
# error out if cuda version is not supported
Expand All @@ -232,7 +232,7 @@ else()
FetchContent_MakeAvailable(libtorch)

find_package(Torch REQUIRED PATHS ${libtorch_SOURCE_DIR} NO_DEFAULT_PATH)
message(STATUS "Downloading and using libtorch 2.5.0 for cuda ${CUDA_VERSION} at ${libtorch_SOURCE_DIR}")
message(STATUS "Downloading and using libtorch 2.5.1 for cuda ${CUDA_VERSION} at ${libtorch_SOURCE_DIR}")
endif()

# check if USE_CXX11_ABI is set correctly
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ ScaleLLM is currently undergoing active development. We are fully committed to c

ScaleLLM is available as a Python Wheel package on PyPI. You can install it using pip:
```bash
# Install scalellm with CUDA 12.1 and Pytorch 2.4.1
# Install scalellm with CUDA 12.4 and Pytorch 2.5.1
pip install -U scalellm
```

If you want to install ScaleLLM with different version of CUDA and Pytorch, you can pip install it with provding index URL of the version. For example, to install ScaleLLM with CUDA 12.1 and Pytorch 2.2.2, you can use the following command:
If you want to install ScaleLLM with different version of CUDA and Pytorch, you can pip install it with provding index URL of the version. For example, to install ScaleLLM with CUDA 12.1 and Pytorch 2.4.1, you can use the following command:

```bash
pip install -U scalellm -i https://whl.vectorch.com/cu121/torch2.2.2/
pip install -U scalellm -i https://whl.vectorch.com/cu121/torch2.4.1/
```

### Build from source
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ScaleLLM is available as a Python Wheel package on `PyPI <https://pypi.org/proje

.. code-block:: bash

# Install scalellm with CUDA 12.1 and Pytorch 2.4.0
# Install ScaleLLM with CUDA 12.4 and Pytorch 2.5.1
$ pip install -U scalellm


Expand Down
38 changes: 16 additions & 22 deletions docs/source/quick_start.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ScaleLLM is available as a Python Wheel package on `PyPI <https://pypi.org/proje

.. code-block:: bash

# Install ScaleLLM with CUDA 12.1 and Pytorch 2.4.0
# Install ScaleLLM with CUDA 12.4 and Pytorch 2.5.1
$ pip install scalellm

Install other versions
Expand All @@ -25,55 +25,49 @@ If you want to install ScaleLLM with different versions of CUDA and PyTorch, you

.. tabs::

.. tab:: PyTorch 2.4.0
.. tab:: PyTorch 2.5.1

.. code-block:: bash

$ pip install -U scalellm -i https://whl.vectorch.com/cu124/torch2.4.0/
$ pip install -U scalellm -i https://whl.vectorch.com/cu124/torch2.5.1/

.. tab:: CUDA 12.1
.. tab:: PyTorch 2.4.1

.. tabs::
.. code-block:: bash

.. tab:: PyTorch 2.4.0
$ pip install -U scalellm -i https://whl.vectorch.com/cu124/torch2.4.1/

.. code-block:: bash
.. tab:: CUDA 12.1

$ pip install -U scalellm -i https://whl.vectorch.com/cu121/torch2.4.0/
.. tabs::

.. tab:: PyTorch 2.3.1
.. tab:: PyTorch 2.5.1

.. code-block:: bash

$ pip install -U scalellm -i https://whl.vectorch.com/cu121/torch2.3.1/
$ pip install -U scalellm -i https://whl.vectorch.com/cu121/torch2.5.1/

.. tab:: PyTorch 2.2.2
.. tab:: PyTorch 2.4.1

.. code-block:: bash

$ pip install -U scalellm -i https://whl.vectorch.com/cu121/torch2.2.2/
$ pip install -U scalellm -i https://whl.vectorch.com/cu121/torch2.4.1/

.. tab:: CUDA 11.8

.. tabs::

.. tab:: PyTorch 2.4.0

.. code-block:: bash

$ pip install -U scalellm -i https://whl.vectorch.com/cu118/torch2.4.0/

.. tab:: PyTorch 2.3.1
.. tab:: PyTorch 2.5.1

.. code-block:: bash

$ pip install -U scalellm -i https://whl.vectorch.com/cu118/torch2.3.1/
$ pip install -U scalellm -i https://whl.vectorch.com/cu118/torch2.5.1/

.. tab:: PyTorch 2.2.2
.. tab:: PyTorch 2.4.1

.. code-block:: bash

$ pip install -U scalellm -i https://whl.vectorch.com/cu118/torch2.2.2/
$ pip install -U scalellm -i https://whl.vectorch.com/cu118/torch2.4.1/


Build from source
Expand Down