Troubleshooting

Inline load-failure diagnosis

When a model fails to load, the Models tab shows the reason inline instead of making you scroll the Router Log. It calls GET /api/model/diag?model=<id>, which hands the router log to diagnose() in backend/diag.py.

diagnose() reads only this model's last load attempt. The router logs spawning server instance with name=<id> on port <P> for each load; the child's own output comes back prefixed [<P>], and the router ends with instance name=<id> exited with status N. Lines from earlier loads and from other models are ignored, so an old out-of-memory error is never blamed for today's failure.

It then matches llama.cpp's actual error strings, most specific first. Healthy startup lines such as ggml_cuda_init: found 2 CUDA devices or n_ctx = 65536 are not errors and never match. The error shown is llama.cpp's own line; the fix is LlamaForge's:

llama.cpp saysSuggested fix
unknown model architecture / unknown pre-tokenizer typeUpdate llama.cpp (Build / Update tab). The model is newer than your build.
has invalid ggml type NThe file's quant type isn't one this build knows. The message says whether it needs a newer llama.cpp (Build / Update tab), ik_llama.cpp, or a fork the model card names.
error while handling argument "--x" / invalid argument: --xClear that setting (the flag is named). If it's a newer flag, update llama.cpp.
... requires flash_attn to be enabledSet flash-attn on (or auto), or set cache-type-v back to f16.
cudaMalloc failed, out of memory, failed to allocate ... bufferIf the model pins n-gpu-layers, ctx-size or tensor-split, those switch off llama.cpp's automatic fit: clear them and load again. Otherwise pick a smaller quant or a smaller ctx-size.
context type MTP requested ... / failed to create MTP contextClear spec-type and spec-draft-model.
failed to load multimodal modelThe mmproj doesn't match: clear it, or use the one from the model's own repo.
failed to open GGUF file, failed to read magic, No such fileMissing, moved or half-downloaded file: re-scan from Setup or fix the path.
error loading model / failed to load modelllama.cpp's own line is the reason; the full log is at the bottom of Models.

If nothing matches but the instance exited with a non-zero status, that status is shown. If the log has no load attempt for this model at all, no diagnosis is shown rather than a guess. A common_fit_params: failed to fit params warning on its own is not a failure: llama.cpp prints it and then loads anyway.

The Router Log panel at the bottom of the Models tab has the full output. diagnose() reads the last 800 lines of the log: the model's own process log when it runs as a process slot, otherwise the router log.

Setup tab: missing prerequisites

The Setup tab (backend/prereqs.py) checks for git, cmake, ninja, and python (via <tool> --version), a C++ compiler, and CUDA, and reports whether each can be auto-installed on your platform.

IssueCauseFix
A tool shows as missing (git/cmake/ninja/python)Not found on PATH (shutil.which)On Windows/macOS, click install from the Setup tab (winget/choco, or Homebrew). On Linux, the dashboard never runs sudo — it shows the exact apt/dnf/pacman command to run yourself.
C++ compiler not foundWindows: no MSVC install with the "Desktop development with C++" workload found via vswhere.exe (or a cl.exe scan under Program Files). Linux/macOS: neither clang++ nor g++ on PATH.Windows: install Build Tools for Visual Studio with the C++ workload. macOS: xcode-select --install. Linux: install g++ or clang++ via your package manager.
CUDA not foundNo CUDA_PATH set and nvcc not on PATH. Not applicable on macOS (Metal is used instead — the row is hidden).Only needed for NVIDIA GPU builds; install from https://developer.nvidia.com/cuda-downloads, or build CPU-only.
Install button does nothing / fails on WindowsNeither winget nor choco is available, or the install command exited non-zero.Install the tool manually from the URL shown for that tool in the Setup tab.
Install fails on macOSHomebrew isn't installed.Install Homebrew (https://brew.sh) first, or install the tool manually.

Bootstrap script issues

bootstrap.ps1 (Windows) and bootstrap.sh (Linux/macOS) get a fresh checkout to the point where the dashboard can take over.

First run

Everything else