Troubleshooting

Inline load-failure diagnosis

When a model fails to load, the Models tab doesn't just show you a blank error — it calls GET /api/model/diag?model=<id>, which runs the router's last 120 log lines through backend/diag.py's diagnose() function and renders the result inline (.faildiag block in web/js/models.js) instead of making you scroll the Router Log panel.

While the diagnosis is loading, the row shows "reading the router log...". If the log doesn't match a known failure pattern, it shows "Load failed, but no specific cause was found in the router log - see the Router Log panel below."

diagnose() checks the log (case-insensitively) against an ordered list of regex rules, most specific first, and returns the first match. Some suggestions insert your model's current n-gpu-layers / ctx-size value, shown below as {ngl} / {ctx}:

Log pattern matchedDiagnosis shownSuggested fix
out of memory, failed to allocate, cudaMalloc failed, oomRan out of memory loading the model.Lower n-gpu-layers (currently {ngl}) to offload fewer layers, or reduce ctx-size (currently {ctx}) to shrink the KV cache.
cuda error, cudart error, cudaMalloc, cublas, ggml_cudaGPU/CUDA error while loading.The build hit a CUDA error. Confirm the GPU has free VRAM (Models tab) and that this llama.cpp build matches your CUDA driver.
not enough space in the context, kv_cache/kv cache, n_ctxThe context is too large for available memory.Reduce ctx-size (currently {ctx}) - the KV cache scales with it.
unknown argument, invalid argument, unrecognized, error: unknownThe router rejected a launch flag.One of the knobs isn't supported by this llama.cpp build. Clear the most recently changed knob, or rebuild from the Build tab.
no such file, does not exist, failed to open gguf, cannot find the fileThe model file could not be opened.The GGUF path is missing or moved. Re-scan drives from Setup, or fix the model path.
unsupported, unknown model architecture, unknown tokenizer/unknown pre-tokenizerThis build can't run this model.The architecture/quant isn't supported by the current build. Update llama.cpp from the Build tab.
failed to load model, error loading model, llama_model_load/llama_loadThe model failed to load.Check the Router Log below for the exact llama.cpp line. Common causes: too little VRAM (reduce n-gpu-layers, currently {ngl}) or a corrupt download.

The "Diagnosis shown" text is replaced by the actual last error-ish line from the log when one exists (the log's own wording takes priority over the generic label above it). If no rule matches but the log's last relevant line still looks like an error, LlamaForge shows that line with the fallback fix "See the Router Log below for full context."

If none of this is enough, the Router Log panel on the Models tab has the full untruncated output — diagnose() only ever looks at the last 120 lines.

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.

Everything else