[Fix] Inkling 2 Mini blank output / "!!!" loop on Intel Arc B580 (llama.cpp Vulkan Windows)

#33
by sigmayurr - opened

Posting this to save other Intel Arc Battlemage (B580/B60/B70) users hours of debugging.

The Problem

Running Inkling-2-Mini-UD-Q2_K_XL.gguf on Windows + Intel Arc B580 (12 GB) using mainline llama.cpp (b12777, Vulkan):

  • At temperature: 1.0, /v1/chat/completions and the web UI generated tokens until the entire context window was full, returning completely blank content: "" and no reasoning_content.
  • At temperature: 0.0, it repeated !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! (NaN logits picking token ID 0).
  • Running the exact same GGUF on CPU (-ngl 0) worked immediately and returned normal output.

The Fix

Disable Vulkan Cooperative Matrix (COOPMAT) before launching llama-server.exe:

set GGML_VK_DISABLE_COOPMAT=1
set GGML_VK_DISABLE_COOPMAT2=1

Decode speed stayed identical (~35 tok/s on 12 GB Arc B580 alongside other GPU apps), and leaving FP16 enabled keeps prompt prefill fast.

Working 12 GB VRAM / 32K Context .bat Script

A few extra flags that helped fit 32K context cleanly on 12 GB VRAM:

  • Make sure you have the post-Nov-23 mainline-compatible GGUF from this repo.
  • Use --fit off so llama.cpp never silently splits layers to CPU.
  • Use -ub 128 + -ctk q8_0 -ctv q8_0 -fa on to keep the compute buffer and 48-loop KV cache inside 12 GB VRAM.
  • Use --no-reasoning-preserve for long agentic/MCP sessions so old thinking blocks don't fill up context.
@echo off
cd /d "C:\path\to\LOCALLLM"
set GGML_VK_DISABLE_COOPMAT=1
set GGML_VK_DISABLE_COOPMAT2=1
.\llama-server.exe ^
  -m .\Inkling-2-Mini-UD-Q2_K_XL.gguf ^
  -ngl 99 ^
  --fit off ^
  -np 1 ^
  -c 32768 ^
  -ub 128 ^
  -ctk q8_0 ^
  -ctv q8_0 ^
  -fa on ^
  --jinja ^
  --reasoning-effort low ^
  --no-reasoning-preserve ^
  --temp 1.0 ^
  --top-p 1.0 ^
  --top-k 0 ^
  --min-p 0.0 ^
  --host 127.0.0.1 ^
  --port 8080 ^
  --alias inkling-2-mini
pause

Hope this helps anyone else running Inkling 2 Mini on an Intel Arc B580!

I don't understand why it didn't work on my 4GB AMD Polaris GPU. Although other models like CyberTiel and Mellum2.1 run smoothly on this system, I can only run Inkling 2 by disabling the GPU entirely and using CPU, which becomes extremely slow and unusable. Maybe it is time to upgrade πŸ˜„ .

C:\Source\Models\Inkling-2-Mini-UD-Q4_K_XL>llama server --model Inkling-2-Mini-UD-Q4_K_XL.gguf --spec-type draft-mtp --spec-draft-n-max 1 -fa on --cache-type-k q8_0 --cache-type-v q8_0 -np 1 -lm dio --n-cpu-moe 40 --ctx-size 4096 -ub 128
0.00.005.640 I srv llama_server: initializing ...
0.00.113.989 I cmn common_param: common_params_print_info: verbosity = 3 (adjust with the -lv N CLI arg)
0.00.115.419 W srv server_setup: security: no API key is set and CORS allows all origins (see https://github.com/ggml-org/llama.cpp/pull/25655)
0.00.121.850 I srv load_model: loading model 'Inkling-2-Mini-UD-Q4_K_XL.gguf'
0.01.890.856 W operator(): failed to measure the memory of the extra model, fitting without it: failed to create llama_context from model
0.01.890.920 W common_fit_params: failed to fit params to free device memory: model_params::tensor_buft_overrides already set by user, abort
0.02.314.947 W load: special_eos_id is not in special_eog_ids - the tokenizer config may be incorrect
0.04.245.707 W ggml_vulkan: Failed to allocate pinned memory
0.04.245.748 E ggml_backend_cpu_buffer_type_alloc_buffer: failed to allocate buffer of size 721944608
0.04.245.751 E ggml_backend_buft_alloc_buffer_n_default: failed to allocate Vulkan_Host buffer of size 721944576
0.05.895.728 E llama_model_load: error loading model: unable to allocate Vulkan_Host buffer
0.05.895.753 E llama_model_load_from_file_impl: failed to load model
0.05.895.757 E cmn common_init_: failed to load model 'Inkling-2-Mini-UD-Q4_K_XL.gguf'
0.05.895.758 E srv load_model: failed to load model, 'Inkling-2-Mini-UD-Q4_K_XL.gguf'
0.05.895.800 I srv operator(): operator(): cleaning up before exit...
0.05.896.573 E srv server_run_i: exiting due to model loading error

β€’
This comment has been hidden
sigmayurr changed discussion status to closed
sigmayurr changed discussion status to open

to luckre's issue :
Your crash is actually a RAM allocation error though, not the Intel Arc bug -lm dio forces the whole model into physical RAM instead of mmaping it, so both Vulkan pinned memory and the CPU fallback ran out of space. Try dropping -lm dio and --spec-type draft-mtp and adding --fit off (or testing Q2_K_XL) and it should at least boot.

Sign up or log in to comment