GGUF: unknown model architecture (program too old for the model)
The model uses a new architecture that your installed llama.cpp version doesn’t know yet.
The message
error loading model architecture: unknown model architecture: 'gemma4'
Affects: LM Studio, llama.cpp, KoboldCpp, Jan, Ollama, TextGen (text-generation-webui)
Why is this happening?
New model families (for example Gemma 4 or Qwen successors) need code that only gets added in a certain llama.cpp version. Programs like LM Studio, KoboldCpp, or Jan include llama.cpp and only recognize the model after an update. Less often, the GGUF file comes from an unofficial llama.cpp fork and therefore won’t run anywhere else.
How to fix it
- LM Studio: Open Runtimes with
Strg+Umschalt+Rand update the llama.cpp runtime to the latest version. Also update LM Studio itself through the update notification or lmstudio.ai. Then reload the model. - llama.cpp: Download the current version, for example with
winget upgrade llama.cpp(if installed via winget) or the latest release from the GitHub page of ggml-org/llama.cpp. - KoboldCpp and Jan: Install the latest version from the official site (GitHub releases or jan.ai).
- Ollama: Use the taskbar icon to choose “Restart to update” or install the latest version from ollama.com.
- If even the latest version doesn’t help, read the model description on Hugging Face. If it says the file was built for a specific fork, use a GGUF variant created for official llama.cpp.
- If the model is only a few days old, wait a few days: support often arrives shortly after release.
Better not: Don’t keep downloading the model file again and again: the file is usually fine, the program is just too old.
Set up from scratch again
If it still doesn’t work after that, a fresh setup step by step often helps:
- LM Studio: Your First Local Chat
Install LM Studio on Windows, load a suitable language model, and chat offline, even with your own documents. - Your own ChatGPT with Ollama and Open WebUI
Run a language model locally on Windows - with the Ollama app, suitable models for 8 to 24 GB, context length, command line, and Open WebUI…
Terms for this
Similar errors
- Very slow responses because the model does not fit in VRAM
- Confusing answers, endless loops, or tags like <|im_end|> (wrong chat template)
- AMD graphics card not being used (ROCm or Vulkan)
- Windows SmartScreen or Defender blocks an installer or .exe
- GGUF: tensor '…' data is not within the file bounds, model is corrupted or incomplete (model file incomplete)
Sources
- https://github.com/lmstudio-ai/lmstudio-bug-tracker/issues/1728
- https://huggingface.co/lmstudio-community/DeepSeek-Coder-V2-Lite-Instruct-GGUF/discussions/3
- https://github.com/ggml-org/llama.cpp/issues/25116
- https://raw.githubusercontent.com/ggml-org/llama.cpp/master/docs/install.md
- https://docs.ollama.com/faq
Checked on Oct 21, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.