For GGUF offload in KoboldCpp, start with CUDA in the main build for NVIDIA or Vulkan in the nocuda build for AMD or Intel. Vulkan is also an option on NVIDIA cards that support it. GPU backends
Choose the Windows or Linux release file
Download the file that matches your system. KoboldCpp v1.125.1 release
| When to use it | Windows x64 | Linux x64 | Included GPU backends |
|---|---|---|---|
| NVIDIA on a newer PC | koboldcpp.exe | koboldcpp-linux-x64 | CUDA 12 and Vulkan. Release files |
| AMD or Intel with Vulkan, or any Vulkan-capable card when you don’t need CUDA | koboldcpp-nocuda.exe | koboldcpp-linux-x64-nocuda | Vulkan. Release files |
| Older NVIDIA card or older processor if the main build crashes | koboldcpp-oldpc.exe | koboldcpp-linux-x64-oldpc | CUDA 11 and Vulkan. Release files |
For Vulkan on a CPU with AVX but no AVX2, select Use Vulkan (Old CPU). On a CPU with SSE3 and SSSE3 but no AVX, use the oldpc build and select Use Vulkan (Older CPU). Release files
Offload layers in the launcher
Start KoboldCpp without a model to open the launcher. Launcher tour
On Linux, first run chmod +x on the downloaded file, as shown in the terminal examples below. Linux installation
- On Quick Launch, set Backend to Use CUDA or Use Vulkan. Under GPU ID, pick your card by ID and check the name next to it. GPU backends
- Set GPU Layers to
-1for autofit or enter a positive count to set the number of GPU layers manually. A value of0disables layer offload. GPU layers - Next to GGUF Text Model, click Browse and select your local
.gguffile. Launcher tour - For same-computer access, set Host to
127.0.0.1on the Network tab. Click Launch to start with the current settings. Launcher tour
Start KoboldCpp from a terminal
Run one example from the folder containing your downloaded binary. Replace mymodel.gguf with your GGUF filename or path. Use the filename of the build you downloaded. Command line
The examples select GPU ID 0, use autofit with --gpulayers -1, and restrict access to the same computer with --host 127.0.0.1. Flag reference
Change the ID to match your card. For Vulkan, a set GGML_VK_VISIBLE_DEVICES takes priority over the ID in the command. Flag reference
Windows Command Prompt
CUDA
koboldcpp.exe --usecuda 0 --model mymodel.gguf --gpulayers -1 --host 127.0.0.1
Vulkan
koboldcpp-nocuda.exe --usevulkan 0 --model mymodel.gguf --gpulayers -1 --host 127.0.0.1
Linux terminal
On Linux, use chmod +x with the filename of the build you downloaded to make it executable. Linux installation
CUDA
chmod +x koboldcpp-linux-x64
./koboldcpp-linux-x64 --usecuda 0 --model mymodel.gguf --gpulayers -1 --host 127.0.0.1
Vulkan
chmod +x koboldcpp-linux-x64-nocuda
./koboldcpp-linux-x64-nocuda --usevulkan 0 --model mymodel.gguf --gpulayers -1 --host 127.0.0.1
For the Use Vulkan (Old CPU) equivalent, add --noavx2 to the Vulkan command. For Use Vulkan (Older CPU), use the oldpc binary and add --failsafe. Release files
Confirm offload in the console
- Check that the console reports your chosen backend. Look for the device in the model load log, such as
CUDA0orVulkan0. GPU troubleshooting · GPU backends - If you used autofit, read the value after
-nglinAutofit Result. A positive number is the chosen GPU layer count, and-1means all layers. GPU layers - Check how many layers the console reports went to the GPU during model load. GPU troubleshooting
If you see Auto Selected Default Backend, KoboldCpp selected the CPU. Choose the GPU backend explicitly and check that GPU Layers is set to -1 or a positive count. GPU troubleshooting · GPU layers
On NVIDIA, if Use CUDA is missing, check that you downloaded the main build or the oldpc build for an older card. If the correct backend loads but the console still reports zero offloaded layers, try a positive manual count. GPU troubleshooting
Recover from a VRAM error
| Console error | Meaning |
|---|---|
cudaMalloc failed: out of memory | CUDA failed to allocate GPU memory. Out of memory errors |
ErrorOutOfDeviceMemory | Vulkan failed to allocate GPU memory. Out of memory errors |
Relaunch after each change below. Out of memory errors
- If you entered a layer count manually, try autofit or reduce the count by a few layers. If loading fails after autofit, switch to a manual count in GPU Layers or
--gpulayersand lower it by a few layers if loading still fails. GPU layers · Out of memory errors - Lower Context Size on Quick Launch, or pass a smaller value with
--contextsize. Launcher tour · Out of memory errors - Close other programs using the graphics card. Out of memory errors
Evidence and limits
This guide uses the KoboldCpp v1.125.1 release notes and the project’s documentation, including its flag reference for 1.122.1. Release notes · Flag reference
The documentation was checked on November 27, 2026. The guide covers setup and troubleshooting for one GPU. No hands-on testing was performed for this guide.