Backends
warning
Backends
What is a backend?
The backend decides where and how tensor math runs. Models are backend-agnostic GGUF files; the same model can run on CPU, Vulkan or CUDA. Backend choice affects speed and memory placement, not capabilities.
Auto selection (default)
auto picks the first available of CUDA → Vulkan → CPU, with CPU as permanent fallback:
powershell
botconnector runtime use autoPinning a backend
powershell
botconnector runtime use cuda
botconnector runtime use vulkan
botconnector runtime use cpuVerify what is active:
powershell
botconnector runtime statusBackend pages
GPU offload
GPU backends move layers to VRAM ("offload"). Options at load time:
- Full offload — all layers on GPU; fastest; needs VRAM ≥ model + KV cache.
- Partial offload — some layers on GPU, rest on CPU; uses both.
- No offload — CPU only.
Larger offload is not always faster when PCIe transfer dominates; measure with your model. See Context and memory.
Switching backends
Changing the backend requires a reload: botconnector unload then botconnector run <model>.
Troubleshooting
Backend-specific failures: GPU problems and Runtime problems.