On two Arc Pro B60s, vLLM runs Qwen4-35B-A3B faster and llama.cpp fits more context

vLLM needed an unmerged pull request and stopped near 160,000 tokens. llama.cpp needed a one-line fix to get past 5.4 tokens per second.

Qwen4-35B-A3B fits on two 24 GB Arc Pro B60s, but on December 4 neither llama.cpp nor vLLM ran it well as released. llama.cpp's SYCL build decoded at 5.4 tokens per second. vLLM's Intel GPU support for the model is still an open pull request. We fixed what we could on our dual-B60 machine and ran the same tests on both engines.

With the pull request, vLLM was the faster server: 57 tokens per second for one reply and 294 combined for eight. It also stopped at about 160,000 tokens of context. Its Qwen 4 attention path on Intel GPUs only accepts a 16-bit KV cache, and the weights leave little room for one. A one-line change brought llama.cpp to 50 tokens per second for one reply and 130 for eight. It read long prompts faster and found every hidden fact in a 230,000-token document. Against the Qwen3.8-27B server we already run on the same cards, the vLLM build replied about 28% faster, but it read a 32K prompt at half the speed and held less than half the cache.

The numbers

Two Arc Pro B60s, December 4, 2026
Measurementllama.cpp b12973, patched (Q4_K_M)vLLM + PR 71866 (FP8)Qwen3.8-27B on vLLM (FP8)
One reply, decode50.0 tok/s57.4 tok/s44.7 tok/s
Eight replies, combined130 tok/s294 tok/s231 tok/s
32K-token prompt, first read28.0 s49.0 s24.3 s
Same prompt again (cached)0.08 s0.88 s1.45 s
Longest needle test, 5 codes × 3 triesAbout 231,000 tokens, 15 of 15About 150,000 tokens, 15 of 15About 150,000 tokens, 15 of 15
KV cache size we ran393,216 tokens164,736 tokens376,287 tokens
Task set, thinking off109 of 120112 of 120118 of 120
Task set, thinking on112 of 120116 of 120105 of 120

The two engines ran different files of the same model: ggml-org's 4-bit Q4_K_M GGUF for llama.cpp and Qwen's FP8 release for vLLM. Score gaps between them mix the engine with the quantization. Our gate only counts a drop of more than ten tasks out of 120, and the gaps between the two Qwen 4 builds are three and four.

The Qwen3.8 server is the tuned setup we run every day, on Intel's llm-scaler-vllm 0.26.0-b2 image with three-token MTP speculative decoding and an FP8 KV cache. The Qwen 4 vLLM run used neither. We ran it the same night, after the Qwen 4 tests. Its longest needle test stopped at about 150,000 tokens because our next size, about 265,000, is over its 262,144-token limit. Most of its thinking-on misses, 13 of 15, were replies cut off at our 2,000-token limit before any answer.

For our own server we're staying on Qwen3.8 for now. Our switch rules need at least 200,000 tokens of context, a 300,000-token cache and 85% of today's prompt-reading speed, which the vLLM build misses. They also need 90% of today's eight-reply throughput, which llama.cpp misses.

The eight-reply figure for vLLM is from a second run. The first time it saw eight requests at once, it stopped for about 24 seconds to compile a Triton kernel for Qwen 4's per-layer embedding, and that run averaged 110 tokens per second. Three runs after that landed between 292 and 294, each reply starting within 0.4 seconds. Send a burst of eight short requests after startup before you time anything.

llama.cpp: one line in layer 1

As released, b12973 decoded Qwen 4 at 5.4 tokens per second on our cards, and a single tool call took 8.3 seconds. A per-operation trace showed 71% of matrix-multiply time going to one call per token: the depthwise convolution in Qwen 4's per-layer embedding, which only exists in layer 1. The SYCL backend appears to send that small bf16 multiply through a loop of tiny per-channel multiplies, about 156 ms per token. Writing the same arithmetic as an elementwise multiply and a row sum took decode to 50.2 tokens per second in llama-bench and the tool call to 1.3 seconds. Prompt reading didn't change: 1,253 tokens per second before and 1,210 after on a 3,618-token prompt.

To check that the patch doesn't change what the model says, we ran llama-perplexity on 8,192 tokens of English technical notes with both builds. Perplexity was 7.769 unpatched and 7.772 patched, with an error margin of 0.31. Against the unpatched build's saved outputs, the patched build's mean KL divergence was 0.0143 and it picked the same top token 94.3% of the time. A second run of the unpatched build scored 0.0125 and 95.0% against itself. On this backend, the patch moves the output only slightly more than the build already varies from run to run. As of December 4 the original line is still in llama.cpp's master branch.

The patched server has a second problem. It processed a long prompt up to 260,109 tokens, then quit on the next batch with a SYCL range error in its LIGHTNING_INDEXER kernel. Prompts of about 231,000 tokens worked in all three tries. A 524,288-token cache didn't fit on the cards, so we ran 393,216. Until that is fixed, keep single requests under about 260,000 tokens. We haven't tested whether a smaller batch size moves the limit.

vLLM: an unmerged pull request and a 16-bit cache

We built on vLLM's December 4 XPU nightly image, copying in vLLM's Python source from main plus pull request 71866 at commit 23655e9. Main brings Qwen 4 support and its qwen4 tool and reasoning parsers, merged later on December 4 than the nightly was built. The pull request adds the Intel GPU path. It has gained six commits since our test, which we haven't run.

The FP8 weights take 18.15 GiB on each card. That leaves less than 2 GiB per card for the KV cache at 95% memory use. An FP8 cache would roughly double what fits, but this build refuses it: XPU Qwen4 QSA requires a BF16 KV cache. Asked for 262,144 tokens, vLLM wanted 2.8 GiB and estimated a maximum between 162,112 and 171,904 tokens, depending on the attempt. At 97% memory use it wouldn't start, since only 21.6 of 22.71 GiB was free. We settled on 95% and a 159,744-token limit, which gave a pool of 164,736 tokens. That is enough for one full-length request at a time. Startup took 201 seconds.

vLLM read prompts more slowly than llama.cpp: 654 tokens per second on a 32K prompt and 601 on a 96K one, against 1,145 and 789. While it read a 32K prompt, two replies already streaming slowed to 19 tokens per second, with pauses of up to 2.6 seconds. llama.cpp did much the same, at 19.6 tokens per second with pauses of up to 2.3 seconds. Qwen3.8 kept 23 to 24 tokens per second with pauses of up to 1.4 seconds. vLLM returns the model's reasoning in a reasoning field, not reasoning_content, so check what your client reads.

Tool calls with thinking off

With thinking off, each engine missed one tool case in all three tries, and not the same case. llama.cpp also missed a third case once. Asked for the weather in Paris with a get_weather tool available, the llama.cpp build made up an answer such as "21°C with a light breeze" instead of calling it. Asked to read /etc/hostname with a read_file tool, the vLLM build said it couldn't read files. With thinking on, vLLM passed all 24 tool attempts and llama.cpp passed 23; its one miss ran out of tokens before answering. If you plan to run with thinking off, try your own tool prompts first.

How we tested

The machine has a Ryzen 5 5600, 64 GB of memory, Ubuntu 24.04.5 with kernel 6.17, Intel's compute runtime 26.09.37435.12 and oneAPI 2026.2.1. vLLM ran with peer-to-peer transfers between the cards, set up as in our dual-B60 setup guide. Its container also loaded the Level Zero residency shim from LocalXPU/b60-dual-fixes. When we first set up the cards without it, allocations shared between them were mirrored into system memory until the machine ran out.

The task set has 40 cases: Python functions checked by hidden tests, API-contract code, questions over long documents, stopping on time, and tool calls. Each case ran three times at temperature 1.0 and top-p 0.95 with a 2,000-token limit. Some failures were formatting, such as example lines left inside a code block. Re-scored without those, the four Qwen 4 runs land between 115 and 117. The needle test hides five random codes in filler text and asks for them back, three times at each length. Speed runs stream 512-token replies; the prompt tests read 8K, 32K and 96K prompts cold, then again from the prefix cache.

Run it yourself

For llama.cpp, build b12973 with the change applied. You need Intel's oneAPI compilers and the Level Zero driver. If git apply reports an error, the checkout isn't b12973. We tested ggml-org's single-file Q4_K_M GGUF (SHA-256 064e8f1c…). That repository has since been replaced with three-part files, which we haven't run. Point -m at the first part.

git clone --depth 1 --branch b12973 https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
git apply <<'PATCH'
diff --git a/src/models/qwen4exp.cpp b/src/models/qwen4exp.cpp
--- a/src/models/qwen4exp.cpp
+++ b/src/models/qwen4exp.cpp
@@ -1502,7 +1502,8 @@ ggml_tensor * llama_model_qwen4exp::graph::build_ple(
     ggml_tensor * kshape = ggml_new_tensor_2d(ctx0, GGML_TYPE_F32, kern, 1);
     ggml_tensor * im = ggml_im2col(ctx0, kshape, padded2, 1, 0, 0, 0, dil, 0, false, GGML_TYPE_F32);
     ggml_tensor * x = ggml_reshape_4d(ctx0, im, kern, n_seq_tokens, hc_dim, n_seqs);
-    ggml_tensor * y = ggml_mul_mat(ctx0, w, x);
+    ggml_tensor * wf = w->type == GGML_TYPE_F32 ? w : ggml_cast(ctx0, w, GGML_TYPE_F32);
+    ggml_tensor * y = ggml_sum_rows(ctx0, ggml_mul(ctx0, x, wf));
     y = ggml_cont(ctx0, ggml_permute(ctx0, y, 2, 1, 0, 3));
     ggml_tensor * conv_out = ggml_reshape_3d(ctx0, y, hc_dim, n_seq_tokens, n_seqs);
 
PATCH
source /opt/intel/oneapi/setvars.sh
cmake -B build-sycl -DGGML_SYCL=ON -DGGML_SYCL_F16=ON -DCMAKE_C_COMPILER=icx \
  -DCMAKE_CXX_COMPILER=icpx -DCMAKE_BUILD_TYPE=Release -DLLAMA_CURL=OFF
cmake --build build-sycl --config Release -j --target llama-server llama-bench

Decode in llama-bench should read around 50 tokens per second on two B60s. If decode is near 5 tokens per second, the patch isn't in the build. This server shares one 393,216-token cache across eight slots.

MODEL=/absolute/path/to/Qwen4-35B-A3B-Q4_K_M.gguf
build-sycl/bin/llama-bench -m "$MODEL" -ngl 999 -fa 1 -p 512 -n 64
build-sycl/bin/llama-server -m "$MODEL" --alias qwen4-35b-a3b -ngl 999 -fa on \
  -ctk q8_0 -ctv q8_0 -c 393216 --parallel 8 --kv-unified --jinja \
  -b 2048 -ub 2048 --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0 \
  --host 127.0.0.1 --port 8080

For vLLM, build the image from the tested commit, then start it with Qwen's FP8 weights and the shim built from its repository. The log should report a KV cache size near 164,736 tokens. If it fails at startup asking for more KV memory, lower --max-model-len.

git clone https://github.com/vllm-project/vllm.git
cd vllm
git fetch origin pull/71866/head
git checkout 23655e90e62e0ce123c30c09da3c42b797d88ebc
cd ..
mkdir qwen4-image
cp -r vllm/vllm qwen4-image/vllm
cat > qwen4-image/Dockerfile <<'EOF'
FROM vllm/vllm-openai-xpu:nightly-9bf3920799299413edbed2e23ad1f216dc5e0e91
COPY vllm /opt/venv/lib/python3.14/site-packages/vllm
COPY vllm /vllm-workspace/vllm
EOF
docker build -t vllm-xpu-qwen4 qwen4-image
MODELS=/absolute/path/to/models   # holds Qwen4-35B-A3B-FP8/
SHIM=/absolute/path/to/b60-dual-fixes/shim/ze_residency_audit.so
docker run -d --name qwen4 --privileged --device /dev/dri:/dev/dri \
  -v /dev/dri/by-path:/dev/dri/by-path:ro -v "$MODELS":/models:ro \
  -v "$SHIM":/opt/ze_residency_audit.so:ro -p 127.0.0.1:8000:8000 \
  --shm-size 32g --ipc=host -e VLLM_WORKER_MULTIPROC_METHOD=spawn \
  -e VLLM_XPU_ENABLE_XPU_GRAPH=1 -e CCL_TOPO_P2P_ACCESS=1 \
  -e CCL_SYCL_ALLREDUCE_SIMPLE_THRESHOLD=1073741824 \
  -e CCL_SYCL_ALLGATHERV_SIMPLE_THRESHOLD=1073741824 \
  -e CCL_SYCL_REDUCE_SCATTER_SIMPLE_THRESHOLD=1073741824 \
  -e LD_AUDIT=/opt/ze_residency_audit.so -e ZE_RESIDENCY_SHIM_LOG=1 \
  -e TORCH_FR_BUFFER_SIZE=0 -e VLLM_ENGINE_READY_TIMEOUT_S=3600 \
  -e VLLM_ALLOW_LONG_MAX_MODEL_LEN=1 \
  vllm-xpu-qwen4 /models/Qwen4-35B-A3B-FP8 --served-model-name qwen4-35b-a3b \
  --trust-remote-code -tp 2 --max-model-len 159744 --max-num-seqs 8 \
  --max-num-batched-tokens 2048 --enable-prefix-caching --language-model-only \
  --enable-auto-tool-choice --tool-call-parser qwen4 --reasoning-parser qwen4 \
  --gpu-memory-utilization 0.95
docker logs -f qwen4 2>&1 | grep -E "KV cache size|startup complete|Error"

Then send a request. The answer should be 391. From vLLM, any reasoning comes back in the reasoning field.

PORT=8000   # 8080 for llama-server
curl -fsS --max-time 120 -H "Content-Type: application/json" \
  --data '{"model":"qwen4-35b-a3b","messages":[{"role":"user","content":"What is 17 * 23? Answer with the number only."}],"max_tokens":800}' \
  "http://127.0.0.1:$PORT/v1/chat/completions" | python3 -m json.tool