Audio version — Estimated duration: 1 min 54 sec

Troubleshooting

Running into problems? This section covers the most common issues encountered when building and running llama.cpp.

📄 Pages in This Section

ProblemLikely Fix
cmake not foundInstall CMake, add to PATH, restart terminal
git not foundInstall Git, add to PATH, restart terminal
CUDA not foundInstall CUDA Toolkit or use -DGGML_CUDA=OFF
failed to allocateReduce -ngl or use a smaller quantization
Model gives gibberishUse the correct prompt template for your model
Very slow generationUse -ngl (GPU offload) or reduce context size -c

Last Updated: 2026-07-19