Skip to content

Eval bug: Qwen 3.6 crashes llama-server with prompts more than 132 tokens #25248

Description

@samteezy

Name and Version

(base) root@llama-new:~/llm-stack/bin# ./llama-cli --version
version: 9860 (fdb1db8)
built with GNU 12.4.0 for Linux x86_64

Build flags:

-DGGML_CUDA=ON \
-DGGML_ZENDNN=ON \
-DGGML_BLAS=ON -DGGML_BLAS_VENDOR=FLAME \
-DGGML_CUDA_FA_ALL_QUANTS=ON \

Operating systems

Linux

GGML backends

CUDA

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2024 NVIDIA Corporation
Built on Tue_Oct_29_23:50:19_PDT_2024
Cuda compilation tools, release 12.6, V12.6.85
Build cuda_12.6.r12.6/compiler.35059454_0

Hardware

16GB V100 with an AMD EPYC 7052. Running in an Ubuntu 26 LXC under Proxmox.

Models

unsloth/Qwen3.6-35B-A3B-UD-Q4_K_XL

Problem description & steps to reproduce

I normally do really basic testing of models by copying and pasting a new article from NPR, and at first I thought it was an issue with the prompt. But I'm realizing that it's got to do with the length of the prompt itself. I'm running successive lorem ipsum generated content to see where the cutoff is.

68 words (132 tokens): works
69 words (133 tokens): crashes

It works fine with Gemma 4 and both the Ornith 9B and 35B models (based on Qwen 3.5), and unsloth's Qwen 3.5-122B also works.

env ZENDNNL_MATMUL_ALGO=1
      /root/llm-stack/bin/llama-server
      --port ${PORT}
      --no-mmap
      -lv 5
      --model /mnt/models/unsloth/Qwen3.6-35B-A3B-UD-Q4_K_XL.gguf
      --temp 0.6
      --top-p 0.95
      --ctx-size 32000
      --reasoning-preserve
      --spec-type draft-mtp
      --spec-draft-n-max 2
      -ctk q8_0
      -ctv q8_0

First Bad Commit

No response

Relevant log output ( -lv 6 with a 69-word lorem ipsum prompt)

1.39.062.467 I slot operator(): id 3 | task 296 | new prompt, n_ctx_slot = 32000, n_keep = 0, task.n_tokens = 133
1.39.062.469 I slot operator(): id 3 | task 296 | checking checkpoint with [127, 127] against 124...
1.39.062.470 I slot operator(): id 3 | task 296 | forcing full prompt re-processing due to lack of cache data (likely due to SWA or hybrid/recurrent memory, see #13194 (comment))
1.39.062.472 I slot operator(): id 3 | task 296 | erased invalidated context checkpoint (pos_min = 127, pos_max = 127, n_tokens = 128, n_swa = 0, pos_next = 0, size = 63.066 MiB)
1.39.068.922 D res send: sending result for task id = 296
1.39.068.924 D res send: task id = 296 pushed to result queue
1.39.068.927 I slot operator(): id 3 | task 296 | cached n_tokens = 0, memory_seq_rm [0, end)
1.39.068.957 I srv stream_sessi: conv_id= (empty=1)
1.39.068.964 D srv stop: all tasks already finished, no need to cancel
1.39.069.218 D slot operator(): id 3 | task 296 | main/do_checkpoint = no, pos_min = -1, pos_max = -1
1.39.069.224 D srv decode: n_batch (effective) = 2048, off = 0
1.39.069.226 D set_adapters_lora: adapters = (nil)
1.39.069.226 D adapters_lora_are_same: adapters = (nil)
1.39.069.227 D set_embeddings: value = 0
1.39.070.938 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.941 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.942 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.942 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.943 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.944 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.944 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.945 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.946 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.946 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.947 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.947 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.948 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.948 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.949 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.961 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.964 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.965 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.965 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.966 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.967 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.968 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.968 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.969 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.970 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.971 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.972 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.973 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.973 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.975 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.975 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.976 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.977 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.979 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.979 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.980 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.981 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.982 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.983 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.983 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.984 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.985 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.986 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.986 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.988 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.988 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.989 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.990 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.990 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.991 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.993 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.993 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.994 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.995 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.996 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.996 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.998 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.998 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.070.999 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.000 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.000 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.001 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.002 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.003 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.003 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.005 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.005 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.007 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.008 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.008 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.009 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.010 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.010 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.011 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.012 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.013 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.013 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.015 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.015 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.015 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.017 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.017 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.018 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.019 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.021 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.021 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.022 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.023 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.023 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.025 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.025 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.026 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.027 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.027 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.028 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.029 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.030 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture
1.39.071.030 D ggml_cuda_graph_set_enabled: disabling CUDA graphs due to GPU architecture

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions