Intel Arc B70 Wrong Output in llama.cpp? Test the Card First
Two llama.cpp bug reports this week describe Intel Arc Pro cards that return wrong answers with no crash and no error. On a B70, cooperative-matrix kernels gave a different result on every call. On a B65, long RAG prompts turned into one repeated token. We read both threads, the Intel compute-runtime reports behind them, and the llama.cpp source for each workaround flag. The B70 case ended with a surprise: the card was faulty.
Jump to 9 sections
Bottom Line
- First move: start
llama-serverwithGGML_VK_DISABLE_COOPMAT=1. In the B70 report, that turned random answers into correct, repeatable ones. On the B65 it helped, but not for every prompt. - Then test the card. If the flag fixes it, run the three checks below inside your return window. In the best-documented case, llama.cpp #31560, the B70 was faulty.
- The evidence for a bad card: that B70 failed the same tests in three PCs (X99, X299 and a Minisforum MS-01 at PCIe Gen4). A llama.cpp contributor’s B70 passed them on the same driver versions. The reporter returned the card.
- The failure is silent. No crash, no NaN warning, no error line. The same input gave 8 different answers in 8 calls.
- A second problem is still open. On an Arc Pro B65, long RAG prompts can still collapse into one repeated token with all three workaround flags set (#31828).
| What you see | Most likely cause | What to do |
|---|---|---|
| Different answer every call for the same input | Cooperative-matrix path | Set GGML_VK_DISABLE_COOPMAT=1, then run the card tests |
| Garbage text with coopmat on, normal with it off | Cooperative-matrix path, possibly a faulty card | Run test-backend-ops and the PyTorch test |
| PyTorch fp16/bf16 matmul gives NaN or huge values, fp32 is clean | The card or Intel’s compute stack, outside llama.cpp | Test in a second PC; return the card if it follows the card |
| One token repeated to the length limit on long prompts | Open issue #31828 | Try another model; post your case on #31828 |
| Correct output, but slow | Not this bug | See why a local LLM is slow |
The Two Reports
| #31560 (Arc Pro B70) | #31828 (Arc Pro B65) | |
|---|---|---|
| Opened | 2 Nov 2026 | 6 Nov 2026 |
| Card | Arc Pro B70 32GB (ASRock Creator), BMG G31 | Arc Pro B65 32GB |
| Driver | Mesa 26.2.5 and 26.2.6 | Mesa 26.2.6 |
| Model | Laya decision model (F16, Q8_0); gpt-oss-20b gave garbage earlier | Qwen3.8-27B Q5_K_M, 32K context |
| Symptom | 8 different scores for 8 identical requests | 700 repeated “3” tokens on a RAG prompt |
GGML_VK_DISABLE_COOPMAT=1 | Fixed it: same score 8 times, matches PyTorch | Partial: some prompts still fail |
| Status on 8 Nov | Reporter: “a fault in my card, not a llama.cpp bug” | Open, no cause found |
The B70 startup line in #31560 shows which path was active: matrix cores: KHR_coopmat. The driver also advertised VK_NV_cooperative_matrix2, but llama.cpp chose the KHR_coopmat path.
What a wrong answer looked like
The B70 reporter sent one support ticket 8 times and asked the model “Is this ticket urgent?” These are the scores, from the issue:
| Setting | Server A | Server B |
|---|---|---|
GGML_VK_DISABLE_COOPMAT=1 | 0.7386 ×8 | 0.7386 ×8 |
| Default (coopmat on) | 0.4867 to 0.7782, 8 different values | 0.5013 to 0.8170, 8 different values |
The first call after startup was the worst, near 0.49. On a 40-email test set with F16 weights, coopmat on changed the chosen category on 5 of 40 emails. With coopmat off, all 40 matched the PyTorch reference.
The Three Tests That Separate a Bad Card From a Bug
Run these in order. Each takes minutes, not hours.
1. Same request, 8 times
Start the server twice, once with each setting, and send one fixed request 8 times at temperature 0:
# default: coopmat on
llama-server -m model.gguf -ngl 99 -c 8192 -np 1 --port 8081
# coopmat off
GGML_VK_DISABLE_COOPMAT=1 llama-server -m model.gguf -ngl 99 -c 8192 -np 1 --port 8081
A healthy setup returns the same answer every time. If coopmat on gives several answers and coopmat off gives one, go to test 2.
2. llama.cpp’s own matmul test
test-backend-ops is not in the release tarball. Build llama.cpp with -DGGML_VULKAN=ON, then run:
./build/bin/test-backend-ops test -b Vulkan0 -o MUL_MAT,MUL_MAT_ID
GGML_VK_DISABLE_COOPMAT=1 ./build/bin/test-backend-ops test -b Vulkan0 -o MUL_MAT,MUL_MAT_ID
| Machine (same faulty B70) | Coopmat on | Coopmat off |
|---|---|---|
| X99, Xeon E5-2699 v4 | 45-53 FAIL of 3,537 | 0 FAIL |
| X299, Core i9-7900X | 53 FAIL | 0 FAIL |
| Minisforum MS-01, Core i9-13900H, Gen4 x8 | 58 FAIL | 0 FAIL |
| Another B70 (llama.cpp contributor, Core Ultra 9 285K) | Passes | — |
The failures covered f32, f16, bf16, q8_0 and q4_0, with errors up to about 0.99997 against a 0.0005 limit. The failing set changed from run to run.
3. The PyTorch test, with no llama.cpp at all
This script comes from Intel compute-runtime issue #1001. It needs only PyTorch for Intel XPU:
pip install torch --index-url https://download.pytorch.org/whl/xpu
import torch
torch.manual_seed(7)
a32 = torch.randn(40, 2048, dtype=torch.float32) * 8
b32 = torch.randn(8192, 2048, dtype=torch.float32) * 0.08
ref = a32 @ b32.T
for dev in ['cpu', 'xpu:0']:
for dt in [torch.float16, torch.bfloat16, torch.float32]:
a = a32.to(dt).to(dev)
b = b32.to(dt).to(dev)
c = (a @ b.T).to('cpu').float()
print(dev, str(dt), 'finite:', bool(torch.isfinite(c).all()),
'absmax:', float(c.abs().max()),
'maxrelerr:', float(((c - ref).abs() / ref.abs().clamp_min(1e-3)).max()))
On a bad card, the xpu:0 fp16 or bf16 lines show finite: False or huge values, while fp32 stays clean. The faulty B70 gave the same 6 bad lines in all three PCs.
How to read the three results together:
| Test 1 | Test 2 | Test 3 | Reading |
|---|---|---|---|
| Random with coopmat on | Fails with coopmat on | Fails | The card, or Intel’s stack on your platform. Try a second PC. |
| Random with coopmat on | Fails with coopmat on | Passes | A Vulkan coopmat problem. Keep the flag and report it on llama.cpp. |
| Stable | Passes | Passes | Not this bug. Check the model, template and settings. |
If the failures follow the card into a second PC, treat it as a hardware fault. That is the conclusion the #31560 reporter reached.
What Each Workaround Flag Does
We read these in llama.cpp’s ggml-vulkan.cpp on master 7d7f02875 (8 November 2026).
| Flag | What llama.cpp does with it |
|---|---|
GGML_VK_DISABLE_COOPMAT=1 | Ignores the VK_KHR_cooperative_matrix extension, so the cooperative-matrix shaders are not used |
GGML_VK_DISABLE_COOPMAT2=1 | Ignores the VK_NV_cooperative_matrix2 extension |
GGML_VK_FORCE_MMVQ=1 | Forces the MMVQ matrix-vector path (mmvq_mode = 1); GGML_VK_DISABLE_MMVQ turns it off |
GGML_VK_VISIBLE_DEVICES=0 | Shows llama.cpp only the listed Vulkan devices |
The startup line calls the cooperative-matrix path “matrix cores.” So expect slower prompt processing with GGML_VK_DISABLE_COOPMAT=1. Neither report published how much slower.
The Open Case: One Token, Repeated
The B65 report in #31828 is different. Its owner ran Qwen3.8-27B Q5_K_M at 32K context with all three flags: GGML_VK_DISABLE_COOPMAT=1, GGML_VK_DISABLE_COOPMAT2=1 and GGML_VK_FORCE_MMVQ=1.
- A control prompt (“print 1 to 300”) passed 3 of 3 runs.
- A RAG prompt with three chunks from three sources failed: 700 repeated “3” tokens. It failed with and without the DFlash2 draft model, and with thinking on or off.
- The byte-identical request, run 3 times, passed once and failed twice. So it is not a fixed trigger.
- The same prompt on a different 30B model passed 3 of 3.
The owner’s own conclusion: the flags are “partial mitigations,” not “a complete correctness guarantee.” If you see this pattern, test a second model and add your case to #31828.
Before You Return the Card
- Update the firmware first, but do not expect a fix. The #31560 card went from firmware 31.1058 to 31.1062 and still failed.
- Read the firmware version with
fwupdtool get-devices --plugins igsc. If it reportsfw_status FFFFFFFF, the card was asleep. Wake it withecho on | sudo tee /sys/bus/pci/devices/<your-card-address>/power/control, as the reporter described. - SYCL is not an escape. On the faulty card, a published SYCL setup gave garbage in all 16 replies across two models.
test-backend-opsfor SYCL failed 97 of 1,880 tests. - Know the other B70 report. Intel compute-runtime #1001 (fp16/bf16 GEMM gives NaN on a B70) was opened on 20 September 2026 by a different owner. It was still open on 8 November. So two B70 owners have seen this; one card is confirmed faulty.
Still deciding whether a B70 is the right card? Our Arc Pro B70 verdict covers price and fit. For other 32GB options, compare the cards on our hardware list.
Honest Caveats
- We do not own an Arc Pro B70 or B65. Every test result here comes from the two issue threads and the Intel report, with the source named.
- One faulty card does not mean every B70 is faulty. Another B70 passed every test on the same software. We cannot say how common bad cards are.
- “Faulty card” is the reporter’s conclusion. It rests on the failure following the card across three PCs. Intel had not confirmed it on 8 November.
- The B65 case has no cause yet. It may be a driver bug, a model-specific problem, or something else.
Sources
- llama.cpp #31560: B70 coopmat nondeterminism, test tables, the three-PC tests, the faulty-card conclusion (2-7 Nov 2026)
- llama.cpp #31828: B65 repeated-token failure with all three flags, ablation and repeat runs (6-8 Nov 2026)
- Intel compute-runtime #1001: fp16/bf16 GEMM NaN on Arc Pro B70, the PyTorch repro script (opened 20 Sep 2026, updated 7 Nov 2026)
- Intel compute-runtime #1000: the earlier oneDNN report linked from #31828
- llama.cpp ggml-vulkan.cpp:
GGML_VK_DISABLE_COOPMAT,GGML_VK_DISABLE_COOPMAT2,GGML_VK_FORCE_MMVQ,GGML_VK_VISIBLE_DEVICES(master7d7f02875, 8 Nov 2026)
See Also
- Intel Arc Pro B70 32GB for local LLMs: the buying verdict and current price
- Best local LLM for 32GB VRAM: what a working 32GB card runs
- AMD R9700 vs RTX 3090 for local LLMs: the other 32GB and 24GB choices
- Best local LLM for the Intel Arc B580: the 12GB Intel card
- llama.cpp flags explained: the server flags used in these reports
- Why is my local LLM so slow?: when the output is right but the speed is not