Skip to content

Commit 0405263

Browse files
Add CUDA 12.4 to docs/install helper (#1136)
* Add CUDA 12.4 download to utility script, docs * (ci) Add CUDA 12.4.0 build to workflow * Apply ruff format to install_cuda.py
1 parent 5b35624 commit 0405263

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

docs/source/installation.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Then locally install the CUDA version you need with this script from bitsandbyte
8484
```bash
8585
wget https://raw.githubusercontent.com/TimDettmers/bitsandbytes/main/install_cuda.sh
8686
# Syntax cuda_install CUDA_VERSION INSTALL_PREFIX EXPORT_TO_BASH
87-
# CUDA_VERSION in {110, 111, 112, 113, 114, 115, 116, 117, 118, 120, 121, 122, 123}
87+
# CUDA_VERSION in {110, 111, 112, 113, 114, 115, 116, 117, 118, 120, 121, 122, 123, 124}
8888
# EXPORT_TO_BASH in {0, 1} with 0=False and 1=True
8989

9090
# For example, the following installs CUDA 11.7 to ~/local/cuda-11.7 and exports the path to your .bashrc

install_cuda.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"121": "https://developer.download.nvidia.com/compute/cuda/12.1.1/local_installers/cuda_12.1.1_530.30.02_linux.run",
1818
"122": "https://developer.download.nvidia.com/compute/cuda/12.2.2/local_installers/cuda_12.2.2_535.104.05_linux.run",
1919
"123": "https://developer.download.nvidia.com/compute/cuda/12.3.2/local_installers/cuda_12.3.2_545.23.08_linux.run",
20+
"124": "https://developer.download.nvidia.com/compute/cuda/12.4.0/local_installers/cuda_12.4.0_550.54.14_linux.run",
2021
}
2122

2223

@@ -76,7 +77,9 @@ def main():
7677
download_path = "/tmp" # default download path
7778

7879
if len(sys.argv) < 2:
79-
print("Usage: python install_cuda.py <version/all> [user/system] [download_path]")
80+
print(
81+
"Usage: python install_cuda.py <version/all> [user/system] [download_path]"
82+
)
8083
sys.exit(1)
8184

8285
version = sys.argv[1]
@@ -97,7 +100,9 @@ def main():
97100
elif version in cuda_versions:
98101
install_cuda(version, base_path, download_path)
99102
else:
100-
print(f"Invalid CUDA version: {version}. Available versions are: {', '.join(cuda_versions.keys())}")
103+
print(
104+
f"Invalid CUDA version: {version}. Available versions are: {', '.join(cuda_versions.keys())}"
105+
)
101106
sys.exit(1)
102107

103108

install_cuda.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ URL120=https://developer.download.nvidia.com/compute/cuda/12.0.1/local_installer
1111
URL121=https://developer.download.nvidia.com/compute/cuda/12.1.1/local_installers/cuda_12.1.1_530.30.02_linux.run
1212
URL122=https://developer.download.nvidia.com/compute/cuda/12.2.2/local_installers/cuda_12.2.2_535.104.05_linux.run
1313
URL123=https://developer.download.nvidia.com/compute/cuda/12.3.2/local_installers/cuda_12.3.2_545.23.08_linux.run
14-
14+
URL124=https://developer.download.nvidia.com/compute/cuda/12.4.0/local_installers/cuda_12.4.0_550.54.14_linux.run
1515

1616
CUDA_VERSION=$1
1717
BASE_PATH=$2
@@ -57,8 +57,11 @@ if [[ -n "$CUDA_VERSION" ]]; then
5757
elif [[ "$CUDA_VERSION" -eq "123" ]]; then
5858
URL=$URL123
5959
FOLDER=cuda-12.3
60+
elif [[ "$CUDA_VERSION" -eq "124" ]]; then
61+
URL=$URL124
62+
FOLDER=cuda-12.4
6063
else
61-
echo "argument error: No cuda version passed as input. Choose among versions 92 to 123"
64+
echo "argument error: No cuda version passed as input. Choose among versions 110 to 124"
6265
fi
6366
else
6467
echo "argument error: No cuda version passed as input. Choose among versions 92 to 123"

0 commit comments

Comments
 (0)