@@ -9,14 +9,14 @@ description: CUDA support in node-llama-cpp
99and these are automatically used when CUDA is detected on your machine.
1010
1111To 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
1414If 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.
1616Building 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.
2020If you have an older version of CUDA Toolkit installed on your machine,
2121consider updating it to avoid having to wait the long build time.
2222
@@ -42,7 +42,7 @@ You should see an output like this:
4242If 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
8383To fix this issue you have to set the ` CUDACXX ` environment variable to the path of the ` nvcc ` compiler,
8484and 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