llama.cpp Windows setup: GGUF chat and API

Learn to run GGUF models on Windows with llama.cpp, choose CUDA or CPU builds, load CUDA DLLs, and start a browser chat and OpenAI-compatible API.

Player not loading? Watch on YouTube

This tutorial sets up llama.cpp on 64-bit Windows 10 or 11 to run models locally through a terminal, browser chat, and OpenAI-compatible API. The demonstrated setup uses extracted ZIP files without an installer, administrator rights, or an account.

The presenter uses version 0.6.0, build 11429, and selects CUDA 13 for an RTX 5090. The walkthrough covers the separate CUDA 13.4 DLL download and checks GPU detection with --list-devices. It also explains the Vulkan option for AMD or Intel graphics and a CPU build for computers without a graphics card.

Model loading covers Hugging Face downloads with -hf and reuse of GGUF files already downloaded by LM Studio. A separate vision file enables image input. The llama-server section resolves a conflict on port 8080 by selecting 8081, then demonstrates browser chat, a screenshot question, and a curl.exe request to /v1/chat/completions using body.json.

Performance figures describe the presenter's hardware: about 250 tokens per second for Qwen 3.5 4B on the RTX 5090 and 128 for the Gemma 4 12B packing-list response. The CPU example reaches about 16 tokens per second. Disabling reasoning reduces that example's response time from 78 seconds to five. The tutorial also distinguishes prompt processing from answer generation speed and explains context size and GPU layer controls. Larger models still require capable hardware.