Skip to content

Eval bug: cache-reuse not effective in qwen3-next #18497

Description

@IMbackK

Name and Version

llama-server at commit 0f89d2e

Operating systems

Linux

GGML backends

HIP

Hardware

MI100s

Models

Qwen3-Next-80B-A3B-Instruct-Q5_K_S.gguf

Problem description & steps to reproduce

I am not sure if this is a bug or a model incompatibility with Qwen3-Next but using Qwen3-Next kv cache reuse seams to not work.

llama-server is started like this:

llama-server -ngl 99 -fa 1 -m Qwen3-Next-80B-A3B-Instruct-Q5_K_S.gguf --jinja -c 64000 -np 2 -sps 0.3 --cache-reuse 128 -cram 65536 --port 8092 -ub 2048 --swa-full

then a request with a context of 4096 tokens is sent, kv looks like this with each letter being 512 tokens long block:

AAAABBBB

Then a new request is sent with the same content except for an extra block of 512 tokens inserted in the center:

AAAACBBBB

Result with Qwen3-Next:

Context gets fully reporccesed:

slot update_slots: id  3 | task 173 | forcing full prompt re-processing due to lack of cache data (likely due to SWA or hybrid/recurrent memory, see https://github.com/ggml-org/llama.cpp/pull/13194#issuecomment-2868343055)

Result with Qwen3:

512 tokens get processed, the rest is filled from shfited kv cache.

I also tried with --ctx-checkpoints 128 but this did not change the behavior, im not sure how this feature is supposed to work.

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