Skip to content

Commit 4551282

Browse files
committed
fix: build the prebuilt binaries with CUDA 13.1
1 parent 046df64 commit 4551282

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,11 @@ jobs:
131131
132132
cmake --version
133133
134-
- name: Install Cuda 13.0 on Windows (1)
134+
- name: Install Cuda 13.1 on Windows (1)
135135
if: matrix.config.name == 'Windows (1)'
136136
uses: Jimver/cuda-toolkit@v0.2.30
137137
with:
138-
cuda: '13.0.0'
138+
cuda: '13.1.0'
139139
method: 'network'
140140
sub-packages: '["nvcc", "cudart", "cublas", "cublas_dev", "thrust", "visual_studio_integration"]'
141141
use-local-cache: false
@@ -149,11 +149,11 @@ jobs:
149149
sub-packages: '["nvcc", "cudart", "cublas", "cublas_dev", "thrust", "visual_studio_integration"]'
150150
use-local-cache: false
151151

152-
- name: Install Cuda 13.0 on Ubuntu (1)
152+
- name: Install Cuda 13.1 on Ubuntu (1)
153153
if: matrix.config.name == 'Ubuntu (1)'
154154
uses: Jimver/cuda-toolkit@v0.2.30
155155
with:
156-
cuda: '13.0.0'
156+
cuda: '13.1.0'
157157
method: 'network'
158158

159159
- name: Install Cuda 12.4 on Ubuntu (2)

docs/guide/CUDA.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ description: CUDA support in node-llama-cpp
99
and these are automatically used when CUDA is detected on your machine.
1010

1111
To use `node-llama-cpp`'s CUDA support with your NVIDIA GPU,
12-
make sure you have [CUDA Toolkit](https://developer.nvidia.com/cuda-downloads) 12.4 or higher installed on your machine.
12+
make sure you have [CUDA Toolkit](https://developer.nvidia.com/cuda-downloads) 13.1 or higher installed on your machine.
1313

1414
If the pre-built binaries don't work with your CUDA installation,
1515
`node-llama-cpp` will automatically download a release of `llama.cpp` and build it from source with CUDA support.
1616
Building from source with CUDA support is slow and can take up to an hour.
1717

18-
The pre-built binaries are compiled with CUDA Toolkit 12.4,
19-
so any version of CUDA Toolkit that is 12.4 or higher should work with the pre-built binaries.
18+
The pre-built binaries are compiled with CUDA Toolkits 12.4 and 13.1,
19+
so any CUDA Toolkit 12 that's on version 12.4 or higher or CUDA Toolkit 13 on version 13.1 or higher should work with the pre-built binaries.
2020
If you have an older version of CUDA Toolkit installed on your machine,
2121
consider updating it to avoid having to wait the long build time.
2222

@@ -42,7 +42,7 @@ You should see an output like this:
4242
If you see `CUDA used VRAM` in the output, it means that CUDA support is working on your machine.
4343

4444
## Prerequisites
45-
* [CUDA Toolkit](https://developer.nvidia.com/cuda-downloads) 12.4 or higher
45+
* [CUDA Toolkit](https://developer.nvidia.com/cuda-downloads) 13.1 or higher
4646
* [NVIDIA Drivers](https://www.nvidia.com/en-us/drivers/)
4747
* [`cmake-js` dependencies](https://github.com/cmake-js/cmake-js#:~:text=%5Bstring%5D-,Requirements%3A,-CMake)
4848
* [CMake](https://cmake.org/download/) 3.26 or higher (optional, recommended if you have build issues)
@@ -83,21 +83,21 @@ To build `node-llama-cpp` with any of these options, set an environment variable
8383
To fix this issue you have to set the `CUDACXX` environment variable to the path of the `nvcc` compiler,
8484
and the `CUDA_PATH` environment variable to the path of the CUDA home directory that contains the `nvcc` compiler.
8585

86-
For example, if you have installed CUDA Toolkit 12.4, you have to run a command like this:
86+
For example, if you have installed CUDA Toolkit 13.1, you have to run a command like this:
8787
::: code-group
8888
```shell [Linux]
89-
export CUDACXX=/usr/local/cuda-12.4/bin/nvcc
90-
export CUDA_PATH=/usr/local/cuda-12.4
89+
export CUDACXX=/usr/local/cuda-13.1/bin/nvcc
90+
export CUDA_PATH=/usr/local/cuda-13.1
9191
```
9292

9393
```cmd [Windows (cmd)]
94-
set CUDACXX=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\bin\nvcc.exe
95-
set CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4
94+
set CUDACXX=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.1\bin\nvcc.exe
95+
set CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.1
9696
```
9797

9898
```cmd [Windows (PowerShell)]
99-
$env:CUDACXX="C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\bin\nvcc.exe"
100-
$env:CUDA_PATH="C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4"
99+
$env:CUDACXX="C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.1\bin\nvcc.exe"
100+
$env:CUDA_PATH="C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.1"
101101
```
102102
:::
103103

0 commit comments

Comments
 (0)