Skip to content

error: unknown model architecture

Symptom

llama.cpp refuses to load a new model with unknown model architecture: '...'.

Likely causes

  • Your llama.cpp (or Ollama) build predates support for that architecture
  • Model file was converted with an incompatible script version

How to fix it

  1. Update llama.cpp / Ollama to the latest release and rebuild.
  2. Check the project's release notes or issues for the architecture.
  3. Re-download a GGUF produced by a recent converter.
bash
git pull && cmake --build build --config Release -j

Still stuck? Check the lessons or measure first with the benchmark lab.