Skip to content

Unable to build #286

Closed
Closed

Description

@odlg

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...

Activity

  1. primoco commented on Jul 28, 2026

    @primoco
    Collaborator

    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:

    git submodule update --init --recursive
    cargo build --release --features vulkan

    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 --recursive in 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 vulkan

    We do not publish a Vulkan binary, only CPU-only and CUDA. The published eullm-linux-x64 runs 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:

    1. The exact output of ./target/release/eullm -V, which reports the variant (CPU / CUDA / Vulkan / Metal / ROCm).

    2. Your hardware: CPU model, GPU or iGPU model, VRAM, system RAM.

    3. 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.

    4. Which model you ran and its quantization, plus the tokens per second printed after each turn. A small model keeps the test quick:

      ./target/release/eullm run qwen3-0.6b --ctx-size 4096
    5. 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.

  2. odlg commented on Jul 28, 2026

    @odlg
    Author

    Now it looks a lot better. It builds. 👍

    1. Output of ./target/release/eullm -V
    eullm 0.6.44 (Vulkan)
    
    1. My hardware: AMD Ryzen AI 9 HX 470 w/ Radeon 890M with 96 GB RAM.
    2. Startup output:
    >  ./target/release/eullm run qwen3-0.6b
    Loading GGUF: /home/od/.eullm/models/qwen3-0.6b/Qwen3-0.6B-Q4_K_M.gguf
    2026-07-28T10:29:26.396530Z  INFO eullm::inference: GPU backend: Vulkan
    2026-07-28T10:29:26.396548Z  INFO eullm::inference::scheduler: Initializing llama.cpp backend (scheduler)...
    ggml_vulkan: Found 1 Vulkan devices:
    ggml_vulkan: 0 = AMD Radeon 890M Graphics (RADV STRIX1) (radv) | uma: 1 | fp16: 1 | bf16: 0 | warp size: 64 | shared memory: 65536 | int dot: 1 | matrix cores: KHR_coopmat
    2026-07-28T10:29:26.418284Z  INFO eullm::inference::scheduler: Loading model: /home/od/.eullm/models/qwen3-0.6b/Qwen3-0.6B-Q4_K_M.gguf
    llama_model_loader: loaded meta data with 32 key-value pairs and 310 tensors from /home/od/.eullm/models/qwen3-0.6b/Qwen3-0.6B-Q4_K_M.gguf (version GGUF V3 (latest))
    llama_model_loader: Dumping metadata keys/values. Note: KV overrides do not apply in this output.
    llama_model_loader: - kv   0:                       general.architecture str              = qwen3
    llama_model_loader: - kv   1:                               general.type str              = model
    llama_model_loader: - kv   2:                               general.name str              = Qwen3-0.6B
    llama_model_loader: - kv   3:                           general.basename str              = Qwen3-0.6B
    llama_model_loader: - kv   4:                       general.quantized_by str              = Unsloth
    llama_model_loader: - kv   5:                         general.size_label str              = 0.6B
    llama_model_loader: - kv   6:                           general.repo_url str              = https://huggingface.co/unsloth
    llama_model_loader: - kv   7:                          qwen3.block_count u32              = 28
    llama_model_loader: - kv   8:                       qwen3.context_length u32              = 40960
    llama_model_loader: - kv   9:                     qwen3.embedding_length u32              = 1024
    llama_model_loader: - kv  10:                  qwen3.feed_forward_length u32              = 3072
    llama_model_loader: - kv  11:                 qwen3.attention.head_count u32              = 16
    llama_model_loader: - kv  12:              qwen3.attention.head_count_kv u32              = 8
    llama_model_loader: - kv  13:                       qwen3.rope.freq_base f32              = 1000000.000000
    llama_model_loader: - kv  14:     qwen3.attention.layer_norm_rms_epsilon f32              = 0.000001
    llama_model_loader: - kv  15:                 qwen3.attention.key_length u32              = 128
    llama_model_loader: - kv  16:               qwen3.attention.value_length u32              = 128
    llama_model_loader: - kv  17:                       tokenizer.ggml.model str              = gpt2
    llama_model_loader: - kv  18:                         tokenizer.ggml.pre str              = qwen2
    llama_model_loader: - kv  19:                      tokenizer.ggml.tokens arr[str,151936]  = ["!", "\"", "#", "$", "%", "&", "'", ...
    llama_model_loader: - kv  20:                  tokenizer.ggml.token_type arr[i32,151936]  = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ...
    llama_model_loader: - kv  21:                      tokenizer.ggml.merges arr[str,151387]  = ["Ġ Ġ", "ĠĠ ĠĠ", "i n", "Ġ t",...
    llama_model_loader: - kv  22:                tokenizer.ggml.eos_token_id u32              = 151645
    llama_model_loader: - kv  23:            tokenizer.ggml.padding_token_id u32              = 151654
    llama_model_loader: - kv  24:               tokenizer.ggml.add_bos_token bool             = false
    llama_model_loader: - kv  25:                    tokenizer.chat_template str              = {%- if tools %}\n    {{- '<|im_start|>...
    llama_model_loader: - kv  26:               general.quantization_version u32              = 2
    llama_model_loader: - kv  27:                          general.file_type u32              = 15
    llama_model_loader: - kv  28:                      quantize.imatrix.file str              = Qwen3-0.6B-GGUF/imatrix_unsloth.dat
    llama_model_loader: - kv  29:                   quantize.imatrix.dataset str              = unsloth_calibration_Qwen3-0.6B.txt
    llama_model_loader: - kv  30:             quantize.imatrix.entries_count u32              = 196
    llama_model_loader: - kv  31:              quantize.imatrix.chunks_count u32              = 688
    llama_model_loader: - type  f32:  113 tensors
    llama_model_loader: - type q4_K:  168 tensors
    llama_model_loader: - type q6_K:   29 tensors
    print_info: file format = GGUF V3 (latest)
    print_info: file type   = Q4_K - Medium
    print_info: file size   = 372.65 MiB (5.24 BPW) 
    llama_prepare_model_devices: using device Vulkan0 (AMD Radeon 890M Graphics (RADV STRIX1)) (0000:c5:00.0) - 122722 MiB free
    init_tokenizer: initializing tokenizer for type 2
    load: 0 unused tokens
    load: control token: 151660 '<|fim_middle|>' is not marked as EOG
    load: control token: 151659 '<|fim_prefix|>' is not marked as EOG
    load: control token: 151653 '<|vision_end|>' is not marked as EOG
    load: control token: 151648 '<|box_start|>' is not marked as EOG
    load: control token: 151646 '<|object_ref_start|>' is not marked as EOG
    load: control token: 151649 '<|box_end|>' is not marked as EOG
    load: control-looking token: 128247 '</s>' was not control-type; this is probably a bug in the model. its type will be overridden
    load: control token: 151655 '<|image_pad|>' is not marked as EOG
    load: control token: 151651 '<|quad_end|>' is not marked as EOG
    load: control token: 151647 '<|object_ref_end|>' is not marked as EOG
    load: control token: 151652 '<|vision_start|>' is not marked as EOG
    load: control token: 151654 '<|vision_pad|>' is not marked as EOG
    load: control token: 151656 '<|video_pad|>' is not marked as EOG
    load: control token: 151644 '<|im_start|>' is not marked as EOG
    load: control token: 151661 '<|fim_suffix|>' is not marked as EOG
    load: control token: 151650 '<|quad_start|>' is not marked as EOG
    load: printing all EOG tokens:
    load:   - 128247 ('</s>')
    load:   - 151643 ('<|endoftext|>')
    load:   - 151645 ('<|im_end|>')
    load:   - 151662 ('<|fim_pad|>')
    load:   - 151663 ('<|repo_name|>')
    load:   - 151664 ('<|file_sep|>')
    load: special tokens cache size = 27
    load: token to piece cache size = 0.9311 MB
    print_info: arch                  = qwen3
    print_info: vocab_only            = 0
    print_info: no_alloc              = 0
    print_info: n_ctx_train           = 40960
    print_info: n_embd_inp            = 1024
    print_info: n_embd                = 1024
    print_info: n_embd_out            = 1024
    print_info: n_layer               = 28
    print_info: n_layer_all           = 28
    print_info: n_head                = 16
    print_info: n_head_kv             = 8
    print_info: n_rot                 = 128
    print_info: n_swa                 = 0
    print_info: is_swa_any            = 0
    print_info: n_embd_head_k         = 128
    print_info: n_embd_head_v         = 128
    print_info: n_gqa                 = 2
    print_info: n_embd_k_gqa          = 1024
    print_info: n_embd_v_gqa          = 1024
    print_info: f_norm_eps            = 0.0e+00
    print_info: f_norm_rms_eps        = 1.0e-06
    print_info: f_clamp_kqv           = 0.0e+00
    print_info: f_max_alibi_bias      = 0.0e+00
    print_info: f_logit_scale         = 0.0e+00
    print_info: f_attn_scale          = 0.0e+00
    print_info: f_attn_value_scale    = 0.0000
    print_info: n_ff                  = 3072
    print_info: n_expert              = 0
    print_info: n_expert_used         = 0
    print_info: n_expert_groups       = 0
    print_info: n_group_used          = 0
    print_info: causal attn           = 1
    print_info: pooling type          = -1
    print_info: rope type             = 2
    print_info: rope scaling          = linear
    print_info: freq_base_train       = 1000000.0
    print_info: freq_scale_train      = 1
    print_info: n_ctx_orig_yarn       = 40960
    print_info: rope_yarn_log_mul     = 0.0000
    print_info: rope_finetuned        = unknown
    print_info: model type            = 0.6B
    print_info: model params          = 596.05 M
    print_info: general.name          = Qwen3-0.6B
    print_info: vocab type            = BPE
    print_info: n_vocab               = 151936
    print_info: n_merges              = 151387
    print_info: BOS token             = 11 ','
    print_info: EOS token             = 151645 '<|im_end|>'
    print_info: EOT token             = 151645 '<|im_end|>'
    print_info: PAD token             = 151654 '<|vision_pad|>'
    print_info: LF token              = 198 'Ċ'
    print_info: FIM PRE token         = 151659 '<|fim_prefix|>'
    print_info: FIM SUF token         = 151661 '<|fim_suffix|>'
    print_info: FIM MID token         = 151660 '<|fim_middle|>'
    print_info: FIM PAD token         = 151662 '<|fim_pad|>'
    print_info: FIM REP token         = 151663 '<|repo_name|>'
    print_info: FIM SEP token         = 151664 '<|file_sep|>'
    print_info: EOG token             = 128247 '</s>'
    print_info: EOG token             = 151643 '<|endoftext|>'
    print_info: EOG token             = 151645 '<|im_end|>'
    print_info: EOG token             = 151662 '<|fim_pad|>'
    print_info: EOG token             = 151663 '<|repo_name|>'
    print_info: EOG token             = 151664 '<|file_sep|>'
    print_info: max token length      = 256
    load_tensors: loading model tensors, this can take a while... (mmap = true, direct_io = false)
    load_tensors: layer   0 assigned to device Vulkan0, is_swa = 0
    load_tensors: layer   1 assigned to device Vulkan0, is_swa = 0
    load_tensors: layer   2 assigned to device Vulkan0, is_swa = 0
    load_tensors: layer   3 assigned to device Vulkan0, is_swa = 0
    load_tensors: layer   4 assigned to device Vulkan0, is_swa = 0
    load_tensors: layer   5 assigned to device Vulkan0, is_swa = 0
    load_tensors: layer   6 assigned to device Vulkan0, is_swa = 0
    load_tensors: layer   7 assigned to device Vulkan0, is_swa = 0
    load_tensors: layer   8 assigned to device Vulkan0, is_swa = 0
    load_tensors: layer   9 assigned to device Vulkan0, is_swa = 0
    load_tensors: layer  10 assigned to device Vulkan0, is_swa = 0
    load_tensors: layer  11 assigned to device Vulkan0, is_swa = 0
    load_tensors: layer  12 assigned to device Vulkan0, is_swa = 0
    load_tensors: layer  13 assigned to device Vulkan0, is_swa = 0
    load_tensors: layer  14 assigned to device Vulkan0, is_swa = 0
    load_tensors: layer  15 assigned to device Vulkan0, is_swa = 0
    load_tensors: layer  16 assigned to device Vulkan0, is_swa = 0
    load_tensors: layer  17 assigned to device Vulkan0, is_swa = 0
    load_tensors: layer  18 assigned to device Vulkan0, is_swa = 0
    load_tensors: layer  19 assigned to device Vulkan0, is_swa = 0
    load_tensors: layer  20 assigned to device Vulkan0, is_swa = 0
    load_tensors: layer  21 assigned to device Vulkan0, is_swa = 0
    load_tensors: layer  22 assigned to device Vulkan0, is_swa = 0
    load_tensors: layer  23 assigned to device Vulkan0, is_swa = 0
    load_tensors: layer  24 assigned to device Vulkan0, is_swa = 0
    load_tensors: layer  25 assigned to device Vulkan0, is_swa = 0
    load_tensors: layer  26 assigned to device Vulkan0, is_swa = 0
    load_tensors: layer  27 assigned to device Vulkan0, is_swa = 0
    load_tensors: layer  28 assigned to device Vulkan0, is_swa = 0
    create_tensor: loading tensor token_embd.weight
    create_tensor: loading tensor output_norm.weight
    create_tensor: loading tensor token_embd.weight
    create_tensor: loading tensor blk.0.attn_norm.weight
    create_tensor: loading tensor blk.0.attn_q.weight
    create_tensor: loading tensor blk.0.attn_k.weight
    create_tensor: loading tensor blk.0.attn_v.weight
    create_tensor: loading tensor blk.0.attn_output.weight
    create_tensor: loading tensor blk.0.attn_k_norm.weight
    create_tensor: loading tensor blk.0.attn_q_norm.weight
    create_tensor: loading tensor blk.0.ffn_norm.weight
    create_tensor: loading tensor blk.0.ffn_gate.weight
    create_tensor: loading tensor blk.0.ffn_down.weight
    create_tensor: loading tensor blk.0.ffn_up.weight
    create_tensor: loading tensor blk.1.attn_norm.weight
    create_tensor: loading tensor blk.1.attn_q.weight
    create_tensor: loading tensor blk.1.attn_k.weight
    create_tensor: loading tensor blk.1.attn_v.weight
    create_tensor: loading tensor blk.1.attn_output.weight
    create_tensor: loading tensor blk.1.attn_k_norm.weight
    create_tensor: loading tensor blk.1.attn_q_norm.weight
    create_tensor: loading tensor blk.1.ffn_norm.weight
    create_tensor: loading tensor blk.1.ffn_gate.weight
    create_tensor: loading tensor blk.1.ffn_down.weight
    create_tensor: loading tensor blk.1.ffn_up.weight
    create_tensor: loading tensor blk.2.attn_norm.weight
    create_tensor: loading tensor blk.2.attn_q.weight
    create_tensor: loading tensor blk.2.attn_k.weight
    create_tensor: loading tensor blk.2.attn_v.weight
    create_tensor: loading tensor blk.2.attn_output.weight
    create_tensor: loading tensor blk.2.attn_k_norm.weight
    create_tensor: loading tensor blk.2.attn_q_norm.weight
    create_tensor: loading tensor blk.2.ffn_norm.weight
    create_tensor: loading tensor blk.2.ffn_gate.weight
    create_tensor: loading tensor blk.2.ffn_down.weight
    create_tensor: loading tensor blk.2.ffn_up.weight
    create_tensor: loading tensor blk.3.attn_norm.weight
    create_tensor: loading tensor blk.3.attn_q.weight
    create_tensor: loading tensor blk.3.attn_k.weight
    create_tensor: loading tensor blk.3.attn_v.weight
    create_tensor: loading tensor blk.3.attn_output.weight
    create_tensor: loading tensor blk.3.attn_k_norm.weight
    create_tensor: loading tensor blk.3.attn_q_norm.weight
    create_tensor: loading tensor blk.3.ffn_norm.weight
    create_tensor: loading tensor blk.3.ffn_gate.weight
    create_tensor: loading tensor blk.3.ffn_down.weight
    create_tensor: loading tensor blk.3.ffn_up.weight
    create_tensor: loading tensor blk.4.attn_norm.weight
    create_tensor: loading tensor blk.4.attn_q.weight
    create_tensor: loading tensor blk.4.attn_k.weight
    create_tensor: loading tensor blk.4.attn_v.weight
    create_tensor: loading tensor blk.4.attn_output.weight
    create_tensor: loading tensor blk.4.attn_k_norm.weight
    create_tensor: loading tensor blk.4.attn_q_norm.weight
    create_tensor: loading tensor blk.4.ffn_norm.weight
    create_tensor: loading tensor blk.4.ffn_gate.weight
    create_tensor: loading tensor blk.4.ffn_down.weight
    create_tensor: loading tensor blk.4.ffn_up.weight
    create_tensor: loading tensor blk.5.attn_norm.weight
    create_tensor: loading tensor blk.5.attn_q.weight
    create_tensor: loading tensor blk.5.attn_k.weight
    create_tensor: loading tensor blk.5.attn_v.weight
    create_tensor: loading tensor blk.5.attn_output.weight
    create_tensor: loading tensor blk.5.attn_k_norm.weight
    create_tensor: loading tensor blk.5.attn_q_norm.weight
    create_tensor: loading tensor blk.5.ffn_norm.weight
    create_tensor: loading tensor blk.5.ffn_gate.weight
    create_tensor: loading tensor blk.5.ffn_down.weight
    create_tensor: loading tensor blk.5.ffn_up.weight
    create_tensor: loading tensor blk.6.attn_norm.weight
    create_tensor: loading tensor blk.6.attn_q.weight
    create_tensor: loading tensor blk.6.attn_k.weight
    create_tensor: loading tensor blk.6.attn_v.weight
    create_tensor: loading tensor blk.6.attn_output.weight
    create_tensor: loading tensor blk.6.attn_k_norm.weight
    create_tensor: loading tensor blk.6.attn_q_norm.weight
    create_tensor: loading tensor blk.6.ffn_norm.weight
    create_tensor: loading tensor blk.6.ffn_gate.weight
    create_tensor: loading tensor blk.6.ffn_down.weight
    create_tensor: loading tensor blk.6.ffn_up.weight
    create_tensor: loading tensor blk.7.attn_norm.weight
    create_tensor: loading tensor blk.7.attn_q.weight
    create_tensor: loading tensor blk.7.attn_k.weight
    create_tensor: loading tensor blk.7.attn_v.weight
    create_tensor: loading tensor blk.7.attn_output.weight
    create_tensor: loading tensor blk.7.attn_k_norm.weight
    create_tensor: loading tensor blk.7.attn_q_norm.weight
    create_tensor: loading tensor blk.7.ffn_norm.weight
    create_tensor: loading tensor blk.7.ffn_gate.weight
    create_tensor: loading tensor blk.7.ffn_down.weight
    create_tensor: loading tensor blk.7.ffn_up.weight
    create_tensor: loading tensor blk.8.attn_norm.weight
    create_tensor: loading tensor blk.8.attn_q.weight
    create_tensor: loading tensor blk.8.attn_k.weight
    create_tensor: loading tensor blk.8.attn_v.weight
    create_tensor: loading tensor blk.8.attn_output.weight
    create_tensor: loading tensor blk.8.attn_k_norm.weight
    create_tensor: loading tensor blk.8.attn_q_norm.weight
    create_tensor: loading tensor blk.8.ffn_norm.weight
    create_tensor: loading tensor blk.8.ffn_gate.weight
    create_tensor: loading tensor blk.8.ffn_down.weight
    create_tensor: loading tensor blk.8.ffn_up.weight
    create_tensor: loading tensor blk.9.attn_norm.weight
    create_tensor: loading tensor blk.9.attn_q.weight
    create_tensor: loading tensor blk.9.attn_k.weight
    create_tensor: loading tensor blk.9.attn_v.weight
    create_tensor: loading tensor blk.9.attn_output.weight
    create_tensor: loading tensor blk.9.attn_k_norm.weight
    create_tensor: loading tensor blk.9.attn_q_norm.weight
    create_tensor: loading tensor blk.9.ffn_norm.weight
    create_tensor: loading tensor blk.9.ffn_gate.weight
    create_tensor: loading tensor blk.9.ffn_down.weight
    create_tensor: loading tensor blk.9.ffn_up.weight
    create_tensor: loading tensor blk.10.attn_norm.weight
    create_tensor: loading tensor blk.10.attn_q.weight
    create_tensor: loading tensor blk.10.attn_k.weight
    create_tensor: loading tensor blk.10.attn_v.weight
    create_tensor: loading tensor blk.10.attn_output.weight
    create_tensor: loading tensor blk.10.attn_k_norm.weight
    create_tensor: loading tensor blk.10.attn_q_norm.weight
    create_tensor: loading tensor blk.10.ffn_norm.weight
    create_tensor: loading tensor blk.10.ffn_gate.weight
    create_tensor: loading tensor blk.10.ffn_down.weight
    create_tensor: loading tensor blk.10.ffn_up.weight
    create_tensor: loading tensor blk.11.attn_norm.weight
    create_tensor: loading tensor blk.11.attn_q.weight
    create_tensor: loading tensor blk.11.attn_k.weight
    create_tensor: loading tensor blk.11.attn_v.weight
    create_tensor: loading tensor blk.11.attn_output.weight
    create_tensor: loading tensor blk.11.attn_k_norm.weight
    create_tensor: loading tensor blk.11.attn_q_norm.weight
    create_tensor: loading tensor blk.11.ffn_norm.weight
    create_tensor: loading tensor blk.11.ffn_gate.weight
    create_tensor: loading tensor blk.11.ffn_down.weight
    create_tensor: loading tensor blk.11.ffn_up.weight
    create_tensor: loading tensor blk.12.attn_norm.weight
    create_tensor: loading tensor blk.12.attn_q.weight
    create_tensor: loading tensor blk.12.attn_k.weight
    create_tensor: loading tensor blk.12.attn_v.weight
    create_tensor: loading tensor blk.12.attn_output.weight
    create_tensor: loading tensor blk.12.attn_k_norm.weight
    create_tensor: loading tensor blk.12.attn_q_norm.weight
    create_tensor: loading tensor blk.12.ffn_norm.weight
    create_tensor: loading tensor blk.12.ffn_gate.weight
    create_tensor: loading tensor blk.12.ffn_down.weight
    create_tensor: loading tensor blk.12.ffn_up.weight
    create_tensor: loading tensor blk.13.attn_norm.weight
    create_tensor: loading tensor blk.13.attn_q.weight
    create_tensor: loading tensor blk.13.attn_k.weight
    create_tensor: loading tensor blk.13.attn_v.weight
    create_tensor: loading tensor blk.13.attn_output.weight
    create_tensor: loading tensor blk.13.attn_k_norm.weight
    create_tensor: loading tensor blk.13.attn_q_norm.weight
    create_tensor: loading tensor blk.13.ffn_norm.weight
    create_tensor: loading tensor blk.13.ffn_gate.weight
    create_tensor: loading tensor blk.13.ffn_down.weight
    create_tensor: loading tensor blk.13.ffn_up.weight
    create_tensor: loading tensor blk.14.attn_norm.weight
    create_tensor: loading tensor blk.14.attn_q.weight
    create_tensor: loading tensor blk.14.attn_k.weight
    create_tensor: loading tensor blk.14.attn_v.weight
    create_tensor: loading tensor blk.14.attn_output.weight
    create_tensor: loading tensor blk.14.attn_k_norm.weight
    create_tensor: loading tensor blk.14.attn_q_norm.weight
    create_tensor: loading tensor blk.14.ffn_norm.weight
    create_tensor: loading tensor blk.14.ffn_gate.weight
    create_tensor: loading tensor blk.14.ffn_down.weight
    create_tensor: loading tensor blk.14.ffn_up.weight
    create_tensor: loading tensor blk.15.attn_norm.weight
    create_tensor: loading tensor blk.15.attn_q.weight
    create_tensor: loading tensor blk.15.attn_k.weight
    create_tensor: loading tensor blk.15.attn_v.weight
    create_tensor: loading tensor blk.15.attn_output.weight
    create_tensor: loading tensor blk.15.attn_k_norm.weight
    create_tensor: loading tensor blk.15.attn_q_norm.weight
    create_tensor: loading tensor blk.15.ffn_norm.weight
    create_tensor: loading tensor blk.15.ffn_gate.weight
    create_tensor: loading tensor blk.15.ffn_down.weight
    create_tensor: loading tensor blk.15.ffn_up.weight
    create_tensor: loading tensor blk.16.attn_norm.weight
    create_tensor: loading tensor blk.16.attn_q.weight
    create_tensor: loading tensor blk.16.attn_k.weight
    create_tensor: loading tensor blk.16.attn_v.weight
    create_tensor: loading tensor blk.16.attn_output.weight
    create_tensor: loading tensor blk.16.attn_k_norm.weight
    create_tensor: loading tensor blk.16.attn_q_norm.weight
    create_tensor: loading tensor blk.16.ffn_norm.weight
    create_tensor: loading tensor blk.16.ffn_gate.weight
    create_tensor: loading tensor blk.16.ffn_down.weight
    create_tensor: loading tensor blk.16.ffn_up.weight
    create_tensor: loading tensor blk.17.attn_norm.weight
    create_tensor: loading tensor blk.17.attn_q.weight
    create_tensor: loading tensor blk.17.attn_k.weight
    create_tensor: loading tensor blk.17.attn_v.weight
    create_tensor: loading tensor blk.17.attn_output.weight
    create_tensor: loading tensor blk.17.attn_k_norm.weight
    create_tensor: loading tensor blk.17.attn_q_norm.weight
    create_tensor: loading tensor blk.17.ffn_norm.weight
    create_tensor: loading tensor blk.17.ffn_gate.weight
    create_tensor: loading tensor blk.17.ffn_down.weight
    create_tensor: loading tensor blk.17.ffn_up.weight
    create_tensor: loading tensor blk.18.attn_norm.weight
    create_tensor: loading tensor blk.18.attn_q.weight
    create_tensor: loading tensor blk.18.attn_k.weight
    create_tensor: loading tensor blk.18.attn_v.weight
    create_tensor: loading tensor blk.18.attn_output.weight
    create_tensor: loading tensor blk.18.attn_k_norm.weight
    create_tensor: loading tensor blk.18.attn_q_norm.weight
    create_tensor: loading tensor blk.18.ffn_norm.weight
    create_tensor: loading tensor blk.18.ffn_gate.weight
    create_tensor: loading tensor blk.18.ffn_down.weight
    create_tensor: loading tensor blk.18.ffn_up.weight
    create_tensor: loading tensor blk.19.attn_norm.weight
    create_tensor: loading tensor blk.19.attn_q.weight
    create_tensor: loading tensor blk.19.attn_k.weight
    create_tensor: loading tensor blk.19.attn_v.weight
    create_tensor: loading tensor blk.19.attn_output.weight
    create_tensor: loading tensor blk.19.attn_k_norm.weight
    create_tensor: loading tensor blk.19.attn_q_norm.weight
    create_tensor: loading tensor blk.19.ffn_norm.weight
    create_tensor: loading tensor blk.19.ffn_gate.weight
    create_tensor: loading tensor blk.19.ffn_down.weight
    create_tensor: loading tensor blk.19.ffn_up.weight
    create_tensor: loading tensor blk.20.attn_norm.weight
    create_tensor: loading tensor blk.20.attn_q.weight
    create_tensor: loading tensor blk.20.attn_k.weight
    create_tensor: loading tensor blk.20.attn_v.weight
    create_tensor: loading tensor blk.20.attn_output.weight
    create_tensor: loading tensor blk.20.attn_k_norm.weight
    create_tensor: loading tensor blk.20.attn_q_norm.weight
    create_tensor: loading tensor blk.20.ffn_norm.weight
    create_tensor: loading tensor blk.20.ffn_gate.weight
    create_tensor: loading tensor blk.20.ffn_down.weight
    create_tensor: loading tensor blk.20.ffn_up.weight
    create_tensor: loading tensor blk.21.attn_norm.weight
    create_tensor: loading tensor blk.21.attn_q.weight
    create_tensor: loading tensor blk.21.attn_k.weight
    create_tensor: loading tensor blk.21.attn_v.weight
    create_tensor: loading tensor blk.21.attn_output.weight
    create_tensor: loading tensor blk.21.attn_k_norm.weight
    create_tensor: loading tensor blk.21.attn_q_norm.weight
    create_tensor: loading tensor blk.21.ffn_norm.weight
    create_tensor: loading tensor blk.21.ffn_gate.weight
    create_tensor: loading tensor blk.21.ffn_down.weight
    create_tensor: loading tensor blk.21.ffn_up.weight
    create_tensor: loading tensor blk.22.attn_norm.weight
    create_tensor: loading tensor blk.22.attn_q.weight
    create_tensor: loading tensor blk.22.attn_k.weight
    create_tensor: loading tensor blk.22.attn_v.weight
    create_tensor: loading tensor blk.22.attn_output.weight
    create_tensor: loading tensor blk.22.attn_k_norm.weight
    create_tensor: loading tensor blk.22.attn_q_norm.weight
    create_tensor: loading tensor blk.22.ffn_norm.weight
    create_tensor: loading tensor blk.22.ffn_gate.weight
    create_tensor: loading tensor blk.22.ffn_down.weight
    create_tensor: loading tensor blk.22.ffn_up.weight
    create_tensor: loading tensor blk.23.attn_norm.weight
    create_tensor: loading tensor blk.23.attn_q.weight
    create_tensor: loading tensor blk.23.attn_k.weight
    create_tensor: loading tensor blk.23.attn_v.weight
    create_tensor: loading tensor blk.23.attn_output.weight
    create_tensor: loading tensor blk.23.attn_k_norm.weight
    create_tensor: loading tensor blk.23.attn_q_norm.weight
    create_tensor: loading tensor blk.23.ffn_norm.weight
    create_tensor: loading tensor blk.23.ffn_gate.weight
    create_tensor: loading tensor blk.23.ffn_down.weight
    create_tensor: loading tensor blk.23.ffn_up.weight
    create_tensor: loading tensor blk.24.attn_norm.weight
    create_tensor: loading tensor blk.24.attn_q.weight
    create_tensor: loading tensor blk.24.attn_k.weight
    create_tensor: loading tensor blk.24.attn_v.weight
    create_tensor: loading tensor blk.24.attn_output.weight
    create_tensor: loading tensor blk.24.attn_k_norm.weight
    create_tensor: loading tensor blk.24.attn_q_norm.weight
    create_tensor: loading tensor blk.24.ffn_norm.weight
    create_tensor: loading tensor blk.24.ffn_gate.weight
    create_tensor: loading tensor blk.24.ffn_down.weight
    create_tensor: loading tensor blk.24.ffn_up.weight
    create_tensor: loading tensor blk.25.attn_norm.weight
    create_tensor: loading tensor blk.25.attn_q.weight
    create_tensor: loading tensor blk.25.attn_k.weight
    create_tensor: loading tensor blk.25.attn_v.weight
    create_tensor: loading tensor blk.25.attn_output.weight
    create_tensor: loading tensor blk.25.attn_k_norm.weight
    create_tensor: loading tensor blk.25.attn_q_norm.weight
    create_tensor: loading tensor blk.25.ffn_norm.weight
    create_tensor: loading tensor blk.25.ffn_gate.weight
    create_tensor: loading tensor blk.25.ffn_down.weight
    create_tensor: loading tensor blk.25.ffn_up.weight
    create_tensor: loading tensor blk.26.attn_norm.weight
    create_tensor: loading tensor blk.26.attn_q.weight
    create_tensor: loading tensor blk.26.attn_k.weight
    create_tensor: loading tensor blk.26.attn_v.weight
    create_tensor: loading tensor blk.26.attn_output.weight
    create_tensor: loading tensor blk.26.attn_k_norm.weight
    create_tensor: loading tensor blk.26.attn_q_norm.weight
    create_tensor: loading tensor blk.26.ffn_norm.weight
    create_tensor: loading tensor blk.26.ffn_gate.weight
    create_tensor: loading tensor blk.26.ffn_down.weight
    create_tensor: loading tensor blk.26.ffn_up.weight
    create_tensor: loading tensor blk.27.attn_norm.weight
    create_tensor: loading tensor blk.27.attn_q.weight
    create_tensor: loading tensor blk.27.attn_k.weight
    create_tensor: loading tensor blk.27.attn_v.weight
    create_tensor: loading tensor blk.27.attn_output.weight
    create_tensor: loading tensor blk.27.attn_k_norm.weight
    create_tensor: loading tensor blk.27.attn_q_norm.weight
    create_tensor: loading tensor blk.27.ffn_norm.weight
    create_tensor: loading tensor blk.27.ffn_gate.weight
    create_tensor: loading tensor blk.27.ffn_down.weight
    create_tensor: loading tensor blk.27.ffn_up.weight
    done_getting_tensors: tensor 'token_embd.weight' (q6_K) (and 0 others) cannot be used with preferred buffer type Vulkan_Host, using CPU instead
    load_tensors: offloading output layer to GPU
    load_tensors: offloading 27 repeating layers to GPU
    load_tensors: offloaded 29/29 layers to GPU
    load_tensors:   CPU_Mapped model buffer size =   121.71 MiB
    load_tensors:      Vulkan0 model buffer size =   372.65 MiB
    .....................................................
    2026-07-28T10:29:26.637256Z  INFO eullm::inference::scheduler: Allocating context: 4096 total tokens, 4096 per sequence (1 slots, flash_attn=true, n_batch=2048)
    llama_context: constructing llama_context
    llama_context: n_seq_max     = 1
    llama_context: n_ctx         = 4096
    llama_context: n_ctx_seq     = 4096
    llama_context: n_batch       = 2048
    llama_context: n_ubatch      = 1024
    llama_context: causal_attn   = 1
    llama_context: flash_attn    = auto
    llama_context: kv_unified    = false
    llama_context: freq_base     = 1000000.0
    llama_context: freq_scale    = 1
    llama_context: n_rs_seq      = 0
    llama_context: n_outputs_max = 2048
    llama_context: n_ctx_seq (4096) < n_ctx_train (40960) -- the full capacity of the model will not be utilized
    set_abort_callback: call
    llama_context: Vulkan_Host  output buffer size =     0.58 MiB
    llama_kv_cache: layer   0: dev = Vulkan0
    llama_kv_cache: layer   1: dev = Vulkan0
    llama_kv_cache: layer   2: dev = Vulkan0
    llama_kv_cache: layer   3: dev = Vulkan0
    llama_kv_cache: layer   4: dev = Vulkan0
    llama_kv_cache: layer   5: dev = Vulkan0
    llama_kv_cache: layer   6: dev = Vulkan0
    llama_kv_cache: layer   7: dev = Vulkan0
    llama_kv_cache: layer   8: dev = Vulkan0
    llama_kv_cache: layer   9: dev = Vulkan0
    llama_kv_cache: layer  10: dev = Vulkan0
    llama_kv_cache: layer  11: dev = Vulkan0
    llama_kv_cache: layer  12: dev = Vulkan0
    llama_kv_cache: layer  13: dev = Vulkan0
    llama_kv_cache: layer  14: dev = Vulkan0
    llama_kv_cache: layer  15: dev = Vulkan0
    llama_kv_cache: layer  16: dev = Vulkan0
    llama_kv_cache: layer  17: dev = Vulkan0
    llama_kv_cache: layer  18: dev = Vulkan0
    llama_kv_cache: layer  19: dev = Vulkan0
    llama_kv_cache: layer  20: dev = Vulkan0
    llama_kv_cache: layer  21: dev = Vulkan0
    llama_kv_cache: layer  22: dev = Vulkan0
    llama_kv_cache: layer  23: dev = Vulkan0
    llama_kv_cache: layer  24: dev = Vulkan0
    llama_kv_cache: layer  25: dev = Vulkan0
    llama_kv_cache: layer  26: dev = Vulkan0
    llama_kv_cache: layer  27: dev = Vulkan0
    llama_kv_cache:    Vulkan0 KV buffer size =   448.00 MiB
    llama_kv_cache: size =  448.00 MiB (  4096 cells,  28 layers,  1/1 seqs), K (f16):  224.00 MiB, V (f16):  224.00 MiB
    llama_kv_cache: attn_rot_k = 0, n_embd_head_k_all = 128
    llama_kv_cache: attn_rot_v = 0, n_embd_head_k_all = 128
    llama_context: enumerating backends
    llama_context: backend_ptrs.size() = 2
    sched_reserve: reserving ...
    sched_reserve: max_nodes = 2488
    sched_reserve: reserving full memory module
    sched_reserve: worst-case: n_tokens = 1024, n_seqs = 1, n_outputs = 1
    graph_reserve: reserving a graph for ubatch with n_tokens =    1, n_seqs =  1, n_outputs =    1
    sched_reserve: Flash Attention was auto, set to enabled
    sched_reserve: resolving fused Gated Delta Net support:
    graph_reserve: reserving a graph for ubatch with n_tokens =    1, n_seqs =  1, n_outputs =    1
    sched_reserve: fused Gated Delta Net (autoregressive) enabled
    graph_reserve: reserving a graph for ubatch with n_tokens =   16, n_seqs =  1, n_outputs =   16
    sched_reserve: fused Gated Delta Net (chunked) enabled
    graph_reserve: reserving a graph for ubatch with n_tokens = 1024, n_seqs =  1, n_outputs = 1024
    graph_reserve: reserving a graph for ubatch with n_tokens =    1, n_seqs =  1, n_outputs =    1
    graph_reserve: reserving a graph for ubatch with n_tokens = 1024, n_seqs =  1, n_outputs = 1024
    sched_reserve:    Vulkan0 compute buffer size =   597.50 MiB
    sched_reserve: Vulkan_Host compute buffer size =    16.03 MiB
    sched_reserve: graph nodes  = 986
    sched_reserve: graph splits = 2
    sched_reserve: reserve took 3.71 ms, sched copies = 1
    2026-07-28T10:29:26.647334Z  INFO eullm::inference::scheduler: Scheduler running — max_batch_size=1, queue_capacity=8, total_ctx=4096, per_seq_ctx=4096
    Model loaded (continuous batching, max_batch_size=1).
    
    eullm ready.  [v0.6.44]
      API (EULLM):   http://localhost:11434/api
      API (OpenAI):  http://localhost:11434/v1
      Chat UI:       http://localhost:11435/
      Model:         qwen3-0.6b
      GPU backend:   Vulkan
      CPU features:  CPU : SSE3 = 1 | SSSE3 = 1 | AVX = 1 | AVX2 = 1 | F16C = 1 | FMA = 1 | BMI2 = 1 | LLAMAFILE = 1 | OPENMP = 1 | REPACK = 1 | 
      GPU layers:    all
      Context:       4096 total (4096 per sequence × 1 slots)
      Flash attn:    enabled (auto-detect)
      KV cache:      K=F16 V=F16
      KV memory:     K=112 MiB, V=112 MiB
      Threads:       12
      Batch (prefill): 2048
      Mode:          continuous batching (max 1 concurrent)
    
    Press Ctrl+C to stop.
    
    2026-07-28T10:29:26.647595Z  INFO eullm::api: API authentication: disabled (not configured (no authentication — the IP allowlist is the only control)). Set EULLM_API_KEYS=id:secret to require a bearer token — necessary behind Docker's published ports, where every external client arrives as the bridge gateway address.
    2026-07-28T10:29:26.647621Z  INFO eullm::api: Allowed source IPs/subnets: 127.0.0.1/32, ::1/128, 10.0.0.163/32  [source: EULLM_ALLOWED_IPS (environment)]
    2026-07-28T10:29:26.647626Z  INFO eullm::api: Allowed browser origins: any loopback origin, http://10.0.0.146:11435  [source: EULLM_ALLOWED_ORIGINS (environment)]
    2026-07-28T10:29:26.647634Z  INFO eullm::api: Model store: /home/od/.eullm/models  [source: default]
    2026-07-28T10:29:26.647674Z  INFO eullm::api: Audit trail: /home/od/.eullm/audit/audit.jsonl
    2026-07-28T10:29:26.647913Z  INFO eullm::api: eullm API listening on 0.0.0.0:11434
    2026-07-28T10:29:26.648048Z  INFO eullm::api: eullm chat UI listening on 0.0.0.0:11435  (open http://localhost:11435/)
    Opening chat in your browser: http://localhost:11435/
      (use --cli to stay in the terminal)
    
    remaining: 0
    /usr/bin/xdg-open: line 1488: www-browser: command not found
    /usr/bin/xdg-open: line 1488: links2: command not found
    /usr/bin/xdg-open: line 1488: elinks: command not found
    /usr/bin/xdg-open: line 1488: links: command not found
    /usr/bin/xdg-open: line 1488: lynx: command not found
    /usr/bin/xdg-open: line 1488: w3m: command not found
    xdg-open: no method available for opening 'http://localhost:11435/'
    
    1. Test run with ./target/release/eullm run qwen3-0.6b --ctx-size 4096
      Prompt: What are the main differences between LLaMA, Qwen and Mistral?
      Result: 905 chunks 6.71s ~134.8 chunk/s

    2. What was tested. UI works fine, /v1 usage from IntelliJ AI plugins works, but needs much larger context that 4096 to work,

  3. primoco commented on Jul 28, 2026

    @primoco
    Collaborator

    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-size is the flag, and it works the same on run and on serve:

    ./target/release/eullm run qwen3-0.6b --ctx-size 40960

    40960 is what that model was trained for, which is what the line in your log was telling you:

    llama_context: n_ctx_seq (4096) < n_ctx_train (40960) -- the full capacity of the model will not be utilized
    

    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_0 roughly 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.

      Context:       4096 total (4096 per sequence × 1 slots)
        this model was trained for 40960 — raise it with --ctx-size (costs KV memory)
    

    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-size works 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 MiB while llama.cpp reported K (f16): 224.00 MiB, V (f16): 224.00 MiB a few lines above it. Exactly half, and the mistake was ours: we derived the head dimension as n_embd / n_head, which is the format's default and not a definition. Qwen3 declares attention.key_length = 128 where 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-open noise at the end. Those seven command not found lines 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: 1 and 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.

  4. odlg commented on Jul 28, 2026

    @odlg
    Author

    It seems that providing images does not work. The same prompt, image and model works with llamacpp.

    Image
  5. odlg commented on Jul 28, 2026

    @odlg
    Author

    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."}

  6. primoco commented on Jul 28, 2026

    @primoco
    Collaborator

    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-a3b is 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. The images array 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) mode names 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 --mmproj yourself. 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 many mmproj-F16.gguf files 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*.gguf next 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. On run and on serve.

    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, --mmproj only 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-e4b

    The 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-vulkan is now a published binary, from v0.6.47. It links libvulkan.so.1 and 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/models was 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/tags had 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.

  7. primoco commented on Jul 28, 2026

    @primoco
    Collaborator

    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:

    • v0.6.46 announced eullm-linux-x64-vulkan and failed to build it. The job installed glslc, which the distribution the release is built on does not package.
    • v0.6.47 built it correctly and then did not attach it. The list of files to publish was maintained by hand and had no line for it, and the option that lets one failed build degrade gracefully made the omission silent.
    • v0.6.48 has it. 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/models fix from #294.

    The rest of the correction: you need a driver on the machine, libvulkan.so.1 plus 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.

  8. odlg commented on Jul 28, 2026

    @odlg
    Author

    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 -hf option, and it will download both if needed.

  9. primoco commented on Jul 28, 2026

    @primoco
    Collaborator

    Fixed in v0.6.49. eullm pull hf.co/owner/repo now 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 yet

    The 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.

    --mmproj stays 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 .gguf still downloads only that file. There is no repo listing behind a direct link to search for a companion, so use the hf.co/owner/repo form when the model is multimodal.

    Your question also exposed a bug

    A projector is a .gguf in 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 — :F16 against mmproj-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.

  10. primoco commented on Jul 30, 2026

    @primoco
    Collaborator

    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 the images array 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*.gguf sitting 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/repo fetches both files itself, the same as llama.cpp's -hf.

    A Vulkan binary is published from v0.6.48, eullm-linux-x64-vulkan. It links libvulkan.so.1 and 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:

    eullm pull gemma-4-e4b
    eullm run gemma-4-e4b

    Then attach an image in the browser chat at http://localhost:11435/, or POST one to /api/chat with an images array. What would be useful: the startup line that reads mmproj 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.

  11. odlg commented on Aug 9, 2026

    @odlg
    Author

    Image regocnitions works fine with gemma-4.

    Image
  12. primoco commented on Aug 9, 2026

    @primoco
    Collaborator

    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions