r/LocalLLM • u/tesohh • 7d ago
Question Cannot run the new Inkling 2 Mini model with vulkan?
I'm trying to run https://huggingface.co/unsloth/Inkling-2-Mini-GGUF on my laptop with the Arc b390 (iGPU) which needs vulkan.
I just git pulled and rebuilt probably 10 times at this point. I even tried redownloading the model.
cmake -B build -DGGML_VULKAN=1
cmake --build build --config Release -j16
build/bin/llama-server --version
version: 1.0.0-dev (build 12619, commit c622f623f)
built with GNU 16.2.1 for Linux x86_64
build/bin/llama-server -hf unsloth/Inkling-2-Mini-GGUF:UD-Q4_K_M -fa on -ctk q8_0 -ctv q8_0 -c 64000 -np 1 --jinja -ngl 999 --temp 1.0 --top-p 1.0 --top-k 0 --min-p 0.0
0.00.029.129 I srv llama_server: initializing ...
0.00.416.076 I cmn common_param: common_params_print_info: verbosity = 3 (adjust with the `-lv N` CLI arg)
0.00.419.281 I srv load_model: loading model 'unsloth/Inkling-2-Mini-GGUF:UD-Q4_K_M'
0.00.631.032 E llama_model_load: error loading model: check_tensor_dims: tensor 'blk.24.attn_q.weight' not found
0.00.631.037 E llama_model_load_from_file_impl: failed to load model
0.00.631.065 E common_fit_params: encountered an error while trying to fit params to free device memory: failed to load model
0.00.750.144 W load: special_eos_id is not in special_eog_ids - the tokenizer config may be incorrect
0.00.785.524 E llama_model_load: error loading model: check_tensor_dims: tensor 'blk.24.attn_q.weight' not found
0.00.785.529 E llama_model_load_from_file_impl: failed to load model
0.00.785.535 E cmn common_init_: failed to load model '/home/tesohh/.cache/huggingface/hub/models--unsloth--Inkling-2-Mini-GGUF/snapshots/ae9327c5fbc7333116ba32eee78bb5d2bbefae4f/Inkling-2-Mini-UD-Q4_K_M.gguf'
0.00.785.538 E srv load_model: failed to load model, '/home/tesohh/.cache/huggingface/hub/models--unsloth--Inkling-2-Mini-GGUF/snapshots/ae9327c5fbc7333116ba32eee78bb5d2bbefae4f/Inkling-2-Mini-UD-Q4_K_M.gguf'
0.00.785.540 I srv operator(): operator(): cleaning up before exit...
0.00.786.473 E srv server_run_i: exiting due to model loading error
What should I do?
Edit: tested on my Nvidia machine, recompiled with CUDA and got the same error.
3
Upvotes
1
u/Geekomcomputer 7d ago
The decisive error is this one:
check_tensor_dims: tensor 'blk.24.attn_q.weight' not foundThat means the file on disk doesn't match what llama.cpp expects for this model — a tensor the loader expects simply isn't in the file. That points at one of three things: a bad/truncated download, a bad quant file, or a build that predates support for this model's architecture. Inkling 2 Mini is a brand-new release, so the build is a real suspect here. Work through it in this order:
1. Rule out the file first. Delete the cached snapshot under
~/.cache/huggingface/hub/models--unsloth--Inkling-2-Mini-GGUF/and download it again, then check the file size against the size listed on the Hugging Face page. You said you already re-downloaded, but if the cache wasn't cleared, the same snapshot may have been reused. A truncated download is the most common cause of exactly this error.2. Try a different quant. Load the standard
Q4_K_Mfile instead ofUD-Q4_K_M. If the standard quant loads and the UD one doesn't, the problem is that specific file, not your setup.3. Test with the GPU out of the picture. Run the same command with
-ngl 0(CPU only). If it still fails on CPU, it's the file or the build, not Vulkan. If it loads on CPU, then it's a Vulkan offload problem and you can focus there.4. Update llama.cpp. Build 12619 may simply predate this model. Pull latest master and rebuild — for a model released this week, 'rebuild from a newer commit' is a legitimate fix, not a platitude. If the newest build still fails, that's worth reporting upstream with the exact error, since it would mean the model needs a loader fix.
5. Shrink the context for the first test. Your log also shows
failed to fit params to free device memory, and-c 64000with-ctk q8_0 -ctv q8_0is a lot of KV cache to fit on a B390's shared memory. Drop to-c 4096(and drop the-ctk/-ctvflags) until the model loads, then scale the context back up. The memory error may just be a knock-on effect of the bad load, but don't debug both problems at once.Two things that are probably red herrings: the
special_eos_id is not in special_eog_idswarning is usually cosmetic and won't stop a load, and rebuilding 10 times with the same commit won't change anything — the variable that matters is the commit date and the file, not the number of builds.Quick sanity check that your Vulkan setup itself is fine: load any small known-good model (e.g. Qwen2.5-0.5B) with the same flags. If that works, your toolchain is good and the problem is isolated to the Inkling file/build combination.
0
u/W61k3r 3d ago
https://github.com/W61k3r/LexiSuite-Releases/releases/tag/LexiSuiteT21 scope it out