Updated
Qwen4-35B-A3B GGUF: unknown pre-tokenizer type 'qwen4' or unknown model architecture 'qwen4exp'
Both errors come from llama.cpp builds older than 12969, published 3 December 2026: the file's architecture, qwen4exp, has been in llama.cpp since build 10660, but its pre-tokenizer, qwen4, only since 12969. Check your build and use 12969 or newer; the stable v1.1.1 is build 12977 and has it, and v1.1.0 does not. Ollama v0.40.21 bundles b12973, and Unsloth's b12966-mix-e49c75f engine has it, though it reports build 12966; the newest Docker Model Runner version we found does not.
What the error means
| What you see | Builds that print it | What to do |
|---|---|---|
llama_model_load: error loading model: error loading model vocabulary: unknown pre-tokenizer type: 'qwen4' | Upstream builds 10660 to 12968. We ran builds 10660, 12359 (the stable release v1.0.0), 12774 (v1.1.0) and 12966. | Run build 12969 or newer. |
llama_model_load: error loading model: unknown model architecture: 'qwen4exp' | Upstream builds before 10660, which was published on 27 August 2026. We ran build 10659. | Run build 12969 or newer. Build 10660 knows the architecture and then stops at the first line in this table. |
In our runs each line also began with a time stamp and the letter E. Both names come from the file's header: general.architecture is qwen4exp and tokenizer.ggml.pre is qwen4. We read that header in eleven GGUF files from six repositories, among them six Unsloth files (UD-Q4_K_XL, UD-Q4_K_M, UD-IQ2_XXS, UD-Q8_K_XL, Q8_0 and BF16), and all eleven declare those two values.
The two names have different ages. llama.cpp pull request 27742 added qwen4exp in build 10660, published 27 August 2026. Pull request 33626 added the qwen4 pre-tokenizer in build 12969, published 3 December 2026; the only change to llama-vocab.cpp between builds 12966 and 12969 is that one qwen4 branch.
We loaded the vocabulary of the full UD-Q4_K_XL file (both shards) with llama-tokenize, which reads no weights. Builds 12969, 12973, 12977 and 13000 printed no error and gave token ID 9419 for Hello. That shows the two names are accepted, not that the model runs. If shard 2 is not in the same folder as shard 1 the line is different and this page does not apply: in our run it began llama_model_load: error loading model: llama_model_loader: failed to load GGUF split from.
Check your build
Run this where your llama.cpp is and read the number after build: this page asks for 12969 or higher, except for Unsloth's own builds (see Unsloth Studio). The 1.1.0-dev before it is not the build number, and it is the same on builds 12774, 12966, 12969 and 12973.
llama-server --versionOn our Linux x64 CPU builds the output goes to stderr, and its first line was this for builds 12966, 12969 and 12977:
version: 1.1.0-dev (build 12966, commit 9a811bab3)
version: 1.1.0-dev (build 12969, commit 74e7f4465)
version: 1.1.1-dev (build 12977, commit 1579b0254)llama.cpp also publishes stable releases. By their tags v1.0.0 is build 12359, v1.1.0 is build 12774 and v1.1.1 is build 12977; the first two print the pre-tokenizer line on this file in our run. The release notes of v1.1.1 say "llama.cpp v1.1.1 adds Qwen4-35B-A3B, …", but its page lists no program files, only the source and a nightly-tag.txt that says b12977. The programs are on the b12977 release.
If your build is lower, each release has one archive per platform. This block fetches the Linux x64 CPU archive of build 12977 into a new folder and prints its build. For another build, replace 12977 everywhere, folder name included; a 404 from curl means that tag has no such archive.
mkdir -p "$HOME/llama-b12977" && cd "$HOME/llama-b12977"
curl -fsSL -O https://github.com/ggml-org/llama.cpp/releases/download/b12977/llama-b12977-bin-ubuntu-x64.tar.gz && tar -xzf llama-b12977-bin-ubuntu-x64.tar.gz && ./llama-b12977/llama-server --versionOn the b12977 release, the Windows x64 CPU archive is the one ending in bin-win-cpu-x64.zip and the Apple silicon one ends in bin-macos-arm64.tar.gz; CUDA, Vulkan, ROCm and other backends have their own archives. We ran only the Linux CPU one.
Then point the server at the first shard; replace the path with yours. If you used the download block, the program is not on your PATH: run this from the folder you downloaded into, with ./ in place of llama-server. We did not run this command (see What we ran).
llama-server -m /path/to/Qwen4-35B-A3B-UD-Q4_K_XL-00001-of-00002.ggufIn your app
Ollama. For GGUF files Ollama runs the llama.cpp it bundles. In its source at v0.40.21 we found qwen4 only in the prompt renderers and parsers, the create command and the MLX code, and its llm code starts the bundled llama-server for GGUF files. v0.40.21 was published on 4 December 2026 at 03:20 UTC and bundles b12973, and its notes say "Alibaba's new Qwen4-35B-A3B is now available". v0.40.20 bundles b12910, which is older than 12969, so update to v0.40.21 or newer. To read your install's pin, put the number from ollama --version after v in this address:
curl -fsS https://raw.githubusercontent.com/ollama/ollama/v0.40.21/LLAMA_CPP_VERSIONIt printed b12734 for v0.40.19, b12910 for v0.40.20 and b12973 for v0.40.21, and a 404 error for a tag that does not exist and for any Ollama older than v0.30.0, which has no such file. v0.30.0 printed b9452, and v0.20.0 carries a llama.cpp from 16 December 2025; both are far older than 12969, so update. Ollama's own library lists qwen4 with seven tags; those are Ollama's packages, and we did not read their headers. We did not run Ollama on a Qwen4 file, so that v0.40.21 loads the Hugging Face file is an inference from its pin and from the vocabulary run on build 12973.
Docker Model Runner. The HTTP 500 carries llama.cpp's own output: one user's tool showed the architecture line for ai/qwen4:35b-a3b-q4_K_M, and the Model Runner source passes that output into the error. The architecture line therefore means an engine older than build 10660. By Model Runner's own version files, v1.2.9 pins b9879 and v1.2.10 and v1.2.11 pin the stable llama.cpp v1.0.0 (b12359), which printed the pre-tokenizer line in our run. We found no Model Runner version with build 12969 or newer; its main branch moved to llama.cpp v1.1.0 (build 12774) on 30 November, which is also too old. Docker Desktop 4.96.3 (22 October 2026) lists Model Runner v1.2.9 in its release notes, and the notes of 4.97.0 to 4.101.0, the newest (30 November), list none. Update Docker Desktop or Model Runner when a release names build 12969 or newer, and read your version with docker model version, which prints a Server version to compare with the list above. Until then, the step on this page is llama.cpp build 12969 or newer with a downloaded GGUF file, as in Check your build. We ran no Docker.
Unsloth Studio. A Studio user whose engine was b12858-mix-86f7dbf got the pre-tokenizer line on this file on 4 December. A contributor wrote that Qwen4 support is "merged into the b12966-mix-e49c75f prebuilt", and that build has it. Its release notes, published on 4 December at 03:01 UTC, list pull request 33626 (Qwen4) among the changes merged onto llama.cpp b12966, so it reports build 12966 but carries the qwen4 branch: the llama-vocab.cpp in its source archive has it, and its Linux x64 CPU archive gave token ID 9419 for Hello on the vocabulary of two Qwen4-35B-A3B files, where upstream b12966 prints the pre-tokenizer line. The user wrote that updating the engine in the settings "does not work", and the open pull request 21408 only changes the error message. Settings → About shows the engine version: b12966-mix-e49c75f has the branch and the user's b12858-mix-86f7dbf does not. We did not run Studio, so we do not know whether its settings update installs that build; if it does not, run llama.cpp build 12969 or newer on the file as above.
vLLM is a different loader: its GGUF plugin fails with Unknown gguf model_type: qwen4_moe (issue 166, open), and pull request 167 for it was closed without a merge when we read it, so the llama.cpp build on this page does not apply.
What we ran
On one Linux x64 host we ran llama-tokenize on the full UD-Q4_K_XL file with the CPU archives of builds 10659, 10660, 12359, 12774, 12966, 12969, 12973, 12977 and 13000, and llama-server --version on all of those except 13000. We ran llama-tokenize with Unsloth's b12966-mix-e49c75f Linux x64 CPU archive on the full Q2_K file from mradermacher's Qwen4-35B-A3B repository and on a copy of the UD-Q4_K_XL header without the weights, beside upstream builds 12774, 12966, 12969, 12977 and 13002 on the same two. We ran the download block above, and with a tag that has no release. We ran the Ollama address at the tags named above. We read the first 16 MiB of eleven GGUF files, and the sources and threads named below. At 01:55 UTC on 5 December we read again: Ollama's newest release was still v0.40.21, Docker Model Runner's newest tag was still v1.2.11, Unsloth's newest llama.cpp release was b12966-mix-e49c75f, and Unsloth's file list and the UD-Q4_K_XL header had not changed.
We did not load the weights or generate text with any build, so this page does not say the model runs. We did not run llama-server on the file, Ollama, Docker Model Runner, Unsloth Studio, vLLM, any GPU, Windows or macOS archive, or LM Studio, and we read no other app's bundled build.
Sources
- llama.cpp release b12969, pull request 33626, Qwen4, and
src/llama-vocab.cppat tags b12966, b12969, b12973, v1.0.0, v1.1.0 and v1.1.1. Read 4 December 2026, 22:50 to 23:11 UTC. - llama.cpp release v1.1.1 and its b12977 archive list. Read 4 December 2026, 23:11 UTC.
- unsloth/Qwen4-35B-A3B-GGUF, its file list and file headers, and the headers of the other four repositories. Read 4 December 2026, 23:05 to 23:23 UTC.
- Ollama release v0.40.21,
LLAMA_CPP_VERSIONat four tags, the source at v0.40.21 and the qwen4 library page. Read 4 December 2026, 23:07 to 23:17 UTC. - Docker Model Runner source at v1.2.9, v1.2.10, v1.2.11 and main, and the Docker Desktop release notes. Read 4 December 2026, 23:08 to 23:16 UTC; the release notes again on 5 December, 01:58 UTC.
- Unsloth issue 21397, pull request 21408, the tags of unslothai/llama.cpp, and its b12966-mix-e49c75f release with its source archive. Read 4 December 2026, 23:09 to 23:12 UTC; the release on 5 December, 01:55 UTC.
- Docker Model Runner report in ssh-llm-tui, pull request 15. Read 4 December 2026, 23:09 UTC.
- vllm-gguf-plugin issue 166 and pull request 167. Read 4 December 2026, 23:09 UTC.
Send corrections to hello@cybernative.ai. We date corrections on this page.