UD-Q5_K_XL: "model has unused tensor"

#102
by calisti - opened

Unusual llama.cpp output with UD-Q5_K_XL – what is that about?

0.00.931.145 W model has unused tensor blk.64.attn_norm.weight (size = 20480 bytes) -- ignoring
0.00.931.162 W model has unused tensor blk.64.post_attention_norm.weight (size = 20480 bytes) -- ignoring
0.00.931.166 W model has unused tensor blk.64.attn_q.weight (size = 51609600 bytes) -- ignoring
0.00.931.168 W model has unused tensor blk.64.attn_k.weight (size = 5570560 bytes) -- ignoring
0.00.931.170 W model has unused tensor blk.64.attn_v.weight (size = 5570560 bytes) -- ignoring
0.00.931.175 W model has unused tensor blk.64.attn_output.weight (size = 25804800 bytes) -- ignoring
0.00.931.177 W model has unused tensor blk.64.attn_q_norm.weight (size = 1024 bytes) -- ignoring
0.00.931.178 W model has unused tensor blk.64.attn_k_norm.weight (size = 1024 bytes) -- ignoring
0.00.931.180 W model has unused tensor blk.64.ffn_gate.weight (size = 73113600 bytes) -- ignoring
0.00.931.182 W model has unused tensor blk.64.ffn_down.weight (size = 73113600 bytes) -- ignoring
0.00.931.183 W model has unused tensor blk.64.ffn_up.weight (size = 73113600 bytes) -- ignoring
0.00.931.187 W model has unused tensor blk.64.nextn.eh_proj.weight (size = 43008000 bytes) -- ignoring
0.00.931.189 W model has unused tensor blk.64.nextn.enorm.weight (size = 20480 bytes) -- ignoring
0.00.931.190 W model has unused tensor blk.64.nextn.hnorm.weight (size = 20480 bytes) -- ignoring
0.00.931.195 W model has unused tensor blk.64.nextn.shared_head_norm.weight (size = 20480 bytes) -- ignoring

It's MTP. Use --spec-type draft-mtp --spec-draft-n-max 2 in llama.cpp to enable it. It will use more RAM, but accelerate the generation process.
If you do not intend to use MTP, you can ignore this notice.

Also see:
https://unsloth.ai/docs/models/mtp
https://github.com/ggml-org/llama.cpp/pull/26296

Ah, right. I had commented out some of the lines to try the larger quant – unaware of the fact that Bash does not continue \-ending-escaped lines across comment blocks.

    ./llama-server \
      -hf unsloth/Qwen3.8-27B-GGUF:UD-Q5_K_XL \
      -ngl 99 -c $(( 118 * 1024 )) -fa on -np 1 \
      # -hf unsloth/Qwen3.8-27B-GGUF:UD-Q5_K_M \ # <-- whoops, rest of the invocation isn't part of the command any more.
      # -ngl 99 -c $(( 143 * 1024 )) -fa on -np 1 \
      --cache-type-k q8_0 \
      --cache-type-v q5_1 \
      --spec-type draft-mtp --spec-draft-n-max 2 \
      --jinja \
      --reasoning on \
      --reasoning-budget -1 \
      --reasoning-preserve \
      --chat-template-kwargs '{"preserve_thinking":true}' \
      --temp 0.6 --top-p 0.95 --top-k 20 --min-p 0.0 --presence-penalty 0 \
      --alias "Qwen3.8-27B UD-Q5_K_XL (121K)" \
      --host 0.0.0.0 --port 8080
calisti changed discussion status to closed

Sign up or log in to comment