New GGUF architectures need support in the inference engine, even when the model download is complete. A model load failure in LM Studio that reports unknown model architecture can be resolved by selecting a compatible llama.cpp runtime.
The generic Failed to load model message does not identify the cause. The runtime log distinguishes an unrecognized architecture from a memory shortage, a missing system library, or a damaged download; a runtime change addresses the architecture error only when that runtime supports the model.
The Linux CLI path uses lms under the account running LM Studio, with an existing GGUF model and a running local service. Runtime names depend on the operating system and hardware, so the compatible download catalog determines the engine name to use on each machine.
Steps to troubleshoot a model load failure in LM Studio:
- Find your affected GGUF model's key in the local inventory. Example output:
$ lms ls --llm You have 1 models, taking up 527.50 MB of disk space. LLM PARAMS ARCH SIZE DEVICE qwen3.5-0.8b 0.8B qwen35 527.50 MB Local
The model shown here is Qwen3.5 0.8B in Q4_K_M quantization. An empty inventory needs a model download first. On a headless Linux host, llmster supplies the local service and CLI.
Related: Set up llmster and lms
Related: Download a GGUF model - Retry your affected model using its key in place of qwen3.5-0.8b. Example output:
$ lms load qwen3.5-0.8b --gpu off \ --context-length 512 --identifier architecture-check ##### snipped ##### Error: Failed to load model. (X) CAUSE Failed to load model
–gpu off uses the CPU, and 512 limits the context for this small-model example. Larger models still need enough memory. The architecture-check identifier must be unused so the command tests a new load. On Ubuntu or Debian, CPU loading also needs libgomp1, as described in the model-loading guide.
Related: Load a model with lms - Search the Linux runtime logs for the unknown-architecture diagnostic from that attempt. Example output:
$ grep -r -h -F "unknown model architecture" "$HOME/.lmstudio/server-logs" [2026-11-14 07:25:56][DEBUG] llama_model_load: error loading model: error loading model architecture: unknown model architecture: 'qwen35' ##### snipped #####
The diagnostic must match the recent load attempt; an old matching log entry does not explain a different current failure. Here, qwen35 is the architecture the selected engine cannot read. If the current error concerns memory, a missing library, or an invalid file instead, this runtime repair does not establish its cause.
Runtime logs can contain local file paths and request content. Shared excerpts need private paths, prompts, and other sensitive values removed.
- List the installed runtimes to identify the selected GGUF engine. Example output:
$ lms runtime ls LLM ENGINE SELECTED MODEL FORMAT llama.cpp-linux-arm64@2.66.0 GGUF llama.cpp-linux-arm64@2.0.0 ✓ GGUF llama.cpp-linux-arm64-nvidia-cuda13@2.66.0 GGUF
The check mark identifies the active engine, even when a newer version is already installed. The previous engine's full name provides a return path if the replacement causes a separate regression.
- Query the compatible llama.cpp runtime catalog. Example output:
$ lms runtime get llama.cpp --list NAME LATEST LOCAL AVAILABLE llama.cpp-linux-arm64 2.66.0 2.73.0 update available
–list does not download anything. LATEST LOCAL is the newest installed version, which may differ from the selected version. The native Linux ARM64 CPU build shown here is appropriate to this machine; catalog names and available versions vary.
A runtime download can select the new engine automatically, affecting subsequent GGUF loads. The old installed engine remains available; if a separate model regresses, lms runtime select with its previous full name restores that selection. Already loaded instances do not test the replacement engine.
- Download the compatible runtime version offered by your catalog in place of 2.73.0. Example output:
$ lms runtime get llama.cpp@2.73.0 --yes Download llama.cpp-linux-arm64@2.73.0... ##### snipped ##### Runtime installed. Select the runtime using: lms runtime select llama.cpp-linux-arm64@2.73.0
–yes accepts the first matching compatible build. The 2.73.0 engine supports the qwen35 model shown here. A runtime already installed with support for your model can be selected without another download. Compatibility with the machine alone does not guarantee support for every new model architecture.
- Select the installed replacement using its full engine name in place of llama.cpp-linux-arm64@2.73.0. Example output:
$ lms runtime select llama.cpp-linux-arm64@2.73.0 Already selected llama.cpp-linux-arm64@2.73.0 for GGUF
Already selected means the download has already made that engine active. A different platform needs the full name returned by its own catalog and installed-runtime list.
Related: Select an LM Studio runtime from the CLI - Retry the same affected model with its original options. Example output:
$ lms load qwen3.5-0.8b --gpu off \ --context-length 512 --identifier architecture-check ##### snipped ##### Model loaded successfully in 808.00ms. (503.07 MiB) To use the model in the API/SDK, use the identifier "architecture-check".
A successful fresh load shows that the replacement can read this model. A continuing unknown-architecture error means support is still missing or the intended runtime was not selected; deleting the intact model file does not add runtime support.
- Confirm that lms ps lists architecture-check for the affected model. Example output:
$ lms ps IDENTIFIER MODEL STATUS SIZE CONTEXT PARALLEL LOAD CONFIG DEVICE TTL architecture-check qwen3.5-0.8b IDLE 527.50 MB 512 4 LM Studio Local
IDLE means the instance is loaded and waiting for a request. The row must name your affected model and the identifier used for the new load. An absent row or another load error leaves the repair incomplete.