Repository navigation
Closed
Description
I am running a fresh OpenSUSE Tumbleweed on Ryzen 9 x86_64.
Trying to build I get this error:
eullm> CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG=true RUST_BACKTRACE=full cargo build --release --features vulkan
Compiling llama-cpp-sys-2 v0.1.151 (/home/od/Downloads/eullm/engine/vendor/llama-cpp-rs/llama-cpp-sys-2)
Compiling tokio-rustls v0.26.4
Compiling axum v0.8.8
Compiling hyper-rustls v0.27.7
error: failed to run custom build command for `llama-cpp-sys-2 v0.1.151 (/home/od/Downloads/eullm/engine/vendor/llama-cpp-rs/llama-cpp-sys-2)`
Caused by:
process didn't exit successfully: `/home/od/Downloads/eullm/target/release/build/llama-cpp-sys-2-88accf4a7d35be82/build-script-build` (exit status: 101)
--- stdout
cargo:rerun-if-changed=build.rs
cargo:rerun-if-env-changed=LLAMA_LIB_PROFILE
cargo:rerun-if-env-changed=LLAMA_BUILD_SHARED_LIBS
cargo:rerun-if-env-changed=LLAMA_STATIC_CRT
cargo:rerun-if-env-changed=TARGET
cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS
cargo:rerun-if-changed=wrapper.h
--- stderr
wrapper.h:1:10: fatal error: 'llama.cpp/include/llama.h' file not found
thread 'main' (20018) panicked at engine/vendor/llama-cpp-rs/llama-cpp-sys-2/build.rs:519:10:
Failed to generate bindings: ClangDiagnostic("wrapper.h:1:10: fatal error: 'llama.cpp/include/llama.h' file not found\n")
stack backtrace:
0: 0x55dd031ccc58 - <<std[822db74ddc7770d2]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace as core[b4b7cf882fbb5a8b]::fmt::Display>::fmt
1: 0x55dd031e56ca - core[b4b7cf882fbb5a8b]::fmt::write
2: 0x55dd031d3752 - <std[822db74ddc7770d2]::sys::stdio::unix::Stderr as std[822db74ddc7770d2]::io::Write>::write_fmt
3: 0x55dd031a7a66 - std[822db74ddc7770d2]::panicking::default_hook::{closure#0}
4: 0x55dd031c34c1 - std[822db74ddc7770d2]::panicking::default_hook
5: 0x55dd031c373b - std[822db74ddc7770d2]::panicking::panic_with_hook
6: 0x55dd031a7b22 - std[822db74ddc7770d2]::panicking::panic_handler::{closure#0}
7: 0x55dd0319c9c9 - std[822db74ddc7770d2]::sys::backtrace::__rust_end_short_backtrace::<std[822db74ddc7770d2]::panicking::panic_handler::{closure#0}, !>
8: 0x55dd031a8a5d - __rustc[e5c730d067dcbd95]::rust_begin_unwind
9: 0x55dd031e5eac - core[b4b7cf882fbb5a8b]::panicking::panic_fmt
10: 0x55dd031e5c82 - core[b4b7cf882fbb5a8b]::result::unwrap_failed
11: 0x55dd02b22958 - <core[b4b7cf882fbb5a8b]::result::Result<bindgen[fc91a9bf788fab9b]::Bindings, bindgen[fc91a9bf788fab9b]::BindgenError>>::expect
at /rustc/8bab26f4f68e0e26f0bb7960be334d5b520ea452/library/core/src/result.rs:1185:23
12: 0x55dd02b0f152 - build_script_build[eb04da0df1787bf1]::main
at /home/od/Downloads/eullm/engine/vendor/llama-cpp-rs/llama-cpp-sys-2/build.rs:519:10
13: 0x55dd02b1d27b - <fn() as core[b4b7cf882fbb5a8b]::ops::function::FnOnce<()>>::call_once
at /rustc/8bab26f4f68e0e26f0bb7960be334d5b520ea452/library/core/src/ops/function.rs:250:5
14: 0x55dd02b20fae - std[822db74ddc7770d2]::sys::backtrace::__rust_begin_short_backtrace::<fn(), ()>
at /rustc/8bab26f4f68e0e26f0bb7960be334d5b520ea452/library/std/src/sys/backtrace.rs:166:18
15: 0x55dd02b1ae11 - std[822db74ddc7770d2]::rt::lang_start::<()>::{closure#0}
at /rustc/8bab26f4f68e0e26f0bb7960be334d5b520ea452/library/std/src/rt.rs:206:18
16: 0x55dd031c22f7 - std[822db74ddc7770d2]::rt::lang_start_internal
17: 0x55dd02b162b7 - std[822db74ddc7770d2]::rt::lang_start::<()>
at /rustc/8bab26f4f68e0e26f0bb7960be334d5b520ea452/library/std/src/rt.rs:205:5
18: 0x55dd02b153ce - main
19: 0x7f27aae2b33e - __libc_start_call_main
20: 0x7f27aae2b46b - __libc_start_main@GLIBC_2.2.5
21: 0x55dd02b065b5 - _start
at /home/abuild/rpmbuild/BUILD/glibc-2.43-build/glibc-2.43/csu/../sysdeps/x86_64/start.S:115:0
22: 0x0 - <unknown>
warning: build failed, waiting for other jobs to finish...
Metadata
Metadata
Assignees
Labels
No labels
Activity
fix(build): name the missing submodule instead of failing on a missin…
primoco commentedon Jul 28, 2026
Thanks for the report, and sorry for the time lost. This is our bug, not openSUSE's.
llama.cpp is a git submodule of this repository, and the README told you to clone without
--recursive, so the submodule directory is empty and bindgen fails on the missing header. Nothing to do with your distribution or your toolchain.From an existing checkout:
If you started from a
Source code (zip)archive off the releases page, that one cannot work at all: GitHub generates those without submodule contents. Clone the repository instead.Fixed on our side: the README now clones with
--recursivein both places it documents a build, and the build script checks for the sources up front and prints the command above instead of failing several minutes later inside bindgen with a clang diagnostic that reads like a broken toolchain.One thing worth saying, since you are building with
--features vulkanWe do not publish a Vulkan binary, only CPU-only and CUDA. The published
eullm-linux-x64runs on Tumbleweed without trouble, but it is CPU only, so building from source is the right call for you if you want the GPU.If the Vulkan build works, we would like the numbers
Nobody has reported this combination yet: no Vulkan build, no Ryzen, no openSUSE. If you get it running, the following would be genuinely useful and takes about five minutes:
The exact output of
./target/release/eullm -V, which reports the variant (CPU / CUDA / Vulkan / Metal / ROCm).Your hardware: CPU model, GPU or iGPU model, VRAM, system RAM.
The engine's startup output, not only the API responses. It is the single most useful thing to attach, because it says which backend actually initialised and how many layers were offloaded. That last point is not academic: a binary reporting one backend while using another cost us a month on Intel Macs earlier this year.
Which model you ran and its quantization, plus the tokens per second printed after each turn. A small model keeps the test quick:
What worked and what did not: model load, generation, the chat UI on
http://localhost:11435/,/api/chat,/v1/chat/completions.If output looks like repeated garbage or a generation stalls, add
--rust-debug. It inspects the model's numeric output before every token and logs loudly when it finds corruption, which separates a compute fault in the backend from a problem further downstream.Reports like this are what let us mark a platform as tested rather than merely compiled. The first verified report for a platform gets a permanent credit in the README's platform table.
odlg commentedon Jul 28, 2026
Now it looks a lot better. It builds. 👍
./target/release/eullm -VTest run with
./target/release/eullm run qwen3-0.6b --ctx-size 4096Prompt: What are the main differences between LLaMA, Qwen and Mistral?
Result:
905 chunks 6.71s ~134.8 chunk/sWhat was tested. UI works fine, /v1 usage from IntelliJ AI plugins works, but needs much larger context that 4096 to work,
fix(engine): the KV memory estimate was half the truth on Qwen3
primoco commentedon Jul 28, 2026
This is the most useful report we have had in a while, thank you. It is the first on Vulkan, the first on a Ryzen, the first on openSUSE, and the first on integrated graphics with unified memory. Nobody had covered any of those axes, let alone all four at once.
You are credited in the README's platform table and in the testers list, and there is now a row for the Vulkan source build with your numbers in it.
The context size
--ctx-sizeis the flag, and it works the same onrunand onserve:40960 is what that model was trained for, which is what the line in your log was telling you:
The cost is KV cache memory, and it scales linearly with the window. For qwen3-0.6b it is roughly 4.7 GB at the full 40960 against 448 MB at 4096, so on 96 GB of unified memory you can simply ask for the maximum. On a machine where that matters,
--cache-type-k q8_0 --cache-type-v q8_0roughly halves it at a small quality cost.Two things about the default, since you are the second person to hit it. 4096 is chosen so the engine starts on a laptop with a small discrete GPU rather than failing to allocate, and an editor plugin is exactly the workload it is wrong for. We are not raising it globally, but we are making it visible: from the next release the banner says so under the Context line, and names the flag.
Your log found two bugs in our own output
Both are fixed in v0.6.45, out now. Neither would have been found without the full startup output, which is the reason we keep asking for it.
Nothing here asks you to rebuild.
--ctx-sizeworks on the 0.6.44 you already built, and the rest is what the engine prints rather than what it does. Pick v0.6.45 up whenever you next pull.We were counting the KV cache wrong, and your log is where it showed. Our banner said
KV memory: K=112 MiB, V=112 MiBwhile llama.cpp reportedK (f16): 224.00 MiB, V (f16): 224.00 MiBa few lines above it. Exactly half, and the mistake was ours: we derived the head dimension asn_embd / n_head, which is the format's default and not a definition. Qwen3 declaresattention.key_length = 128where the division gives 64, so every Qwen3 model was reported at half its real cache cost. It now reads the value the model declares, and falls back to the division only for models that do not carry one. Fixed in v0.6.45. Note that only the number was wrong: llama.cpp always allocated the correct amount, so nothing you ran was affected. It still mattered, because that number is there to help you choose a context size that fits, and it was wrong in the direction that gets you an allocation failure.The
xdg-opennoise at the end. Those sevencommand not foundlines are the desktop handler walking its fallback list, but they land right after our banner says the engine is ready, so they read like the engine failing. We now discard the handler's own output. If opening the browser fails you get one line from us, with the URL.If you have the time
The interesting part of your setup is not the CPU, it is the 890M with
uma: 1and 122 GB visible to Vulkan. Almost every report we get is a discrete GPU with a hard VRAM ceiling, and most people assume integrated graphics means "no local LLM". A 14B or 32B model on that box would be genuinely new information, and it is the configuration where a unified-memory machine should beat a mid-range discrete card outright by simply not running out of room.If you try it, the same five points as before are what we would want, plus the tokens per second. Worth pulling v0.6.45 first in that case, so the KV figure in the banner is one you can trust when you size the context. And if you feel like being the first on another axis: since v0.6.42 every build carries multimodal, so an image through the chat UI on Vulkan would be the first report of that too.
odlg commentedon Jul 28, 2026
It seems that providing images does not work. The same prompt, image and model works with llamacpp.
feat: publish a Vulkan binary, and stop dropping media on builds with…
odlg commentedon Jul 28, 2026
When doing above request with an image it now returns:
Error: HTTP 503: {"error":"Multimodal request but engine is in batched (text-only) mode — the loaded model has no mmproj projector."}feat(engine): use a projector found beside the weights, and add --mmproj
primoco commentedon Jul 28, 2026
Both of your last two messages have the same root, and it is on our side.
Why the image did not work
Two separate things happened, and only one of them is your model's fault.
qwen3.6-35b-a3bis text only. It ships no multimodal projector, so it cannot read an image under any build. That part would not have worked regardless.But you should have been told that, and the first time you were not. You built with
--features vulkan, and multimodal was an opt-in feature, so your binary had no media handling compiled in at all. Theimagesarray was dropped on the way in and the request reached the model as plain text. Asked about a picture it never received, the model answered that it could not see one, which reads as a limitation of the model rather than of the binary. Multimodal is a default feature from v0.6.46, which is why you now get a refusal instead.Why the refusal was still not good enough, and what your llama.cpp comparison exposed
engine is in batched (text-only) modenames an internal loader state and tells you nothing about what to do. Worse, underneath it there was a real limitation.With llama.cpp you pass
--mmprojyourself. We had no equivalent. The projector was resolved only through the model store, keyed by model id, so it worked for models pulled from our catalog and for nothing else. A GGUF you downloaded yourself could never be multimodal, however manymmproj-F16.gguffiles sat in the same folder. So "the same model works with llama.cpp" was not a quality difference, it was a missing flag.Fixed in v0.6.47, two ways:
mmproj*.ggufnext to the weights is now used automatically. That is how every HuggingFace vision repo is laid out, so a model downloaded as a pair just works.--mmproj <path>for when the two live apart. Onrunand onserve.The refusal now names the model and both remedies.
One warning worth stating plainly, because the failure is quiet: a projector belongs to the weights it was trained with. Pairing a Gemma projector with a Qwen model does not error, it produces confident nonsense. On
serve,--mmprojonly applies to a model that declares none of its own, and every time it applies it is logged.Quickest path to a working image:
eullm pull gemma-4-e4b # about 5 GB, weights and projector together eullm run gemma-4-e4bThe startup log will say
mmproj loaded — vision=true audio=true. That model does audio as well, which is worth knowing if you ever want a transcription. We have validated the multimodal path on CPU-only and on CUDA; nobody has run an image through Vulkan yet, so that result would be new.On Vulkan generally
Being honest about it: we had never treated Vulkan as a first-class target. We published CPU-only and CUDA binaries, so anyone on AMD or Intel had to build it themselves, and the build instructions did not mention multimodal because our own published binaries got it another way. You were the first person to walk that path and it showed at every step.
eullm-linux-x64-vulkanis now a published binary, from v0.6.47. It linkslibvulkan.so.1and uses whatever driver your system provides, so nothing is bundled, unlike the CUDA builds which ship their runtime. The build job verifies the backend is actually in the binary before publishing it, because a backend quietly not compiled in is exactly the failure we are trying to stop repeating.#294
You are right, and it is a worse bug than it looks.
/v1/modelswas built from our built-in catalog only, so a model you pulled yourself never appeared in it no matter what. Since an editor plugin offers the models that endpoint names, a model it does not name is not merely missing from a list, it is unreachable./api/tagshad the same hole for anything pulled from a URL or a HuggingFace repo.Both now list what is on disk first, then the loaded model, then the catalog. Also in v0.6.47.
primoco commentedon Jul 28, 2026
Correction on the version numbers in my last comment, and it is not a typo worth glossing over.
The Vulkan binary is in v0.6.48, not v0.6.47. I said v0.6.47 while the release that carried it was still two attempts away. What actually happened:
eullm-linux-x64-vulkanand failed to build it. The job installedglslc, which the distribution the release is built on does not package.eullm-linux-x64-vulkan, 53 MB, larger than the CPU binary because the compiled shaders travel inside it.Both failures are structural now rather than remembered: the build job runs on manual dispatch so the toolchain can be validated without spending a release, and the publish step attaches whatever was built instead of a list someone has to update.
Everything else in that comment holds and is in v0.6.47 as stated:
--mmproj, the projector found next to the weights, the refusal that names the model, and the/v1/modelsfix from #294.The rest of the correction: you need a driver on the machine,
libvulkan.so.1plus mesa RADV, amdvlk, NVIDIA or Intel ANV. Nothing is bundled, unlike the CUDA builds which ship their runtime.Since you already build from source there is nothing here you need. It matters for the next person on an AMD or Intel GPU, and you are the reason it exists.
odlg commentedon Jul 28, 2026
Thanks for all the changes!
To be sure I understand the changes - for a non-catalog model, I can pull the weights, but have to download the mmproj file manually and specify it via the
--mmproj? Using llamacpp I can use the-hfoption, and it will download both if needed.primoco commentedon Jul 28, 2026
Fixed in v0.6.49.
eullm pull hf.co/owner/reponow downloads the projector alongside the weights and records it, the same as llama.cpp's-hf:eullm pull hf.co/unsloth/gemma-4-E4B-it-GGUF eullm run hf.co/unsloth/gemma-4-E4B-it-GGUF # run also pulls, if it is not local yetThe startup log will say
mmproj loaded — vision=true audio=true. If the projector download fails, the pull still succeeds and says so: the weights are on disk and text works, you have just lost image input.--mmprojstays for the case the repo layout cannot cover, a projector you keep somewhere else or one you want to override.One limit worth naming: a bare URL to a single
.ggufstill downloads only that file. There is no repo listing behind a direct link to search for a companion, so use thehf.co/owner/repoform when the model is multimodal.Your question also exposed a bug
A projector is a
.ggufin the same repo as the weights, and we were not excluding it from the choice of which file to download. On a vision repo that meant a plain pull saw two candidates and refused as ambiguous, and asking for a quant that matched the projector's name —:F16againstmmproj-F16.gguf— downloaded the projector as if it were the model. It then failed to load, with an error about the file rather than about the choice, which would have been an unpleasant thing to debug.Both are covered by tests now. One of those tests corrected an assumption I had written into it, which is the useful kind.
primoco commentedon Jul 30, 2026
Everything raised in this thread has shipped, so I am closing it. Here is where each piece landed, for anyone who arrives from a search.
The build failure was ours. llama.cpp is a submodule and the README documented a clone without
--recursive, so the source tree was empty and bindgen failed on a missing header, which looks exactly like a broken toolchain. The README is fixed in both places it documents a build, and the build script now checks for the sources before bindgen runs and prints the command to fix it. Confirmed on your Tumbleweed box in v0.6.44.Media input on a source build needed
--features multimodal, which was opt-in. Your binary had no media handling compiled in, so theimagesarray was dropped on the way in and the question went through as plain text. The model then answered that it could not see an image, which reads as the model's limitation rather than the binary's. Multimodal is a default feature since v0.6.46, and a build without it now refuses the request and names what is missing.Finding the projector works two ways since v0.6.47: a
mmproj*.ggufsitting next to the weights is used automatically, and--mmproj <path>covers the case where the two live apart. Since v0.6.49,eullm pull hf.co/owner/repofetches both files itself, the same as llama.cpp's-hf.A Vulkan binary is published from v0.6.48,
eullm-linux-x64-vulkan. It linkslibvulkan.so.1and uses whatever driver the system provides, so nothing is bundled. You will probably keep building from source, but it means the next person on AMD or Intel does not have to.One thing is still missing, and you are the only person who can supply it
Nobody has run an image through a Vulkan build. That path is validated on CUDA and on CPU only, so the multimodal row for Vulkan in #140 is empty rather than confirmed. Yours is the only working Vulkan install we know of, and now that the projector downloads on its own it is two commands:
Then attach an image in the browser chat at
http://localhost:11435/, or POST one to/api/chatwith animagesarray. What would be useful: the startup line that readsmmproj loaded, whether the description actually matches the picture, and the tokens per second. If it fails instead, the error text and the startup output.No obligation at all. The table stays honest either way, it just stays incomplete.
Thanks for the reports. Four axes that nobody had covered, and two defects found that had nothing to do with the problem you originally opened this for.
odlg commentedon Aug 9, 2026
Image regocnitions works fine with gemma-4.
docs: log H4-A -- tool calling gap on the OpenAI endpoint (issue #334)
primoco commentedon Aug 9, 2026
That screenshot fills the last empty cell. Vision on Vulkan was the one combination nobody had run — CUDA and CPU were validated, Vulkan only for text — and yours is still the only working Vulkan install we know of. The matrix in #140 gets updated to say so.
Closing this for real now: everything the thread raised has shipped, and the question my last comment left open has your screenshot as its answer. This issue started as a build failure and ended up covering four testing axes and flushing out two defects nobody was looking for. That is the most useful kind of bug report there is.
Thank you very much!