Skip to content

Misc. bug: Since b7101 model output by bin-win-vulkan-x64 with quantized model and cache-type-k and cache-type-v is flawed #17995

Open

Description

@Zaakh

Name and Version

version: 7101 (980b7cd)
built with clang version 19.1.5 for x86_64-pc-windows-msvc

Additional information

.\llama-server.exe --version
load_backend: loaded RPC backend from C:\Users\<...>\llama-b7101-bin-win-vulkan-x64\ggml-rpc.dll
ggml_vulkan: Found 1 Vulkan devices:
ggml_vulkan: 0 = AMD Radeon RX 6600 (AMD proprietary driver) | uma: 0 | fp16: 1 | bf16: 0 | warp size: 32 | shared memory: 32768 | int dot: 1 | matrix cores: none
load_backend: loaded Vulkan backend from C:\Users\<...>\llama-b7101-bin-win-vulkan-x64\ggml-vulkan.dll
load_backend: loaded CPU backend from C:\Users\<...>\llama-b7101-bin-win-vulkan-x64\ggml-cpu-alderlake.dll
version: 7101 (980b7cd17)
built with clang version 19.1.5 for x86_64-pc-windows-msvc

Operating systems

Windows

Which llama.cpp modules do you know to be affected?

llama-server

Command line

.\llama-server.exe ^
    --model "Mistral-Nemo-Instruct-2407-IQ4_XS.gguf" ^
    --host 127.0.0.1 ^
    --port 8080 ^
    --ctx-size 8192 ^
    --batch-size 512 ^
    --gpu-layers 999 ^
    --threads 5 ^
    --cache-type-k "q8_0" ^
    --cache-type-v "q8_0" ^
    --flash-attn 1 ^
    --mlock ^
    --kv-unified

Problem description & steps to reproduce

When using any versions >= b7101 of bin-win-vulkan-x64 with cache-type-k and cache-type-v the output becomes incoherent after a few hundred tokens (see attached log).

Example call:

curl http://localhost:8080/v1/chat/completions ^
-H "Content-Type: application/json" ^
-d "{\"messages\": [{\"role\": \"user\", \"content\": \"Write a short story about a dragon.\"}], \"max_tokens\": 512, \"temperature\": 0}"

The flawed output behaviour is reproduceable with simple prompts and an output length of at least 512 tokens when comparing it to previous versions. Inference via Vulkan is affected, while CPU is fine in b7101.

Issue seems to be introduced in version 7101 (980b7cd) and is still present in recent releases (last one I tested is b7336 b7388).

First Bad Commit

980b7cd

Relevant log output

{"choices":[{"finish_reason":"length","index":0,"message":{"role":"assistant","content":"Title: The Dragon's Lament\n\nIn the heart of the ancient Whisperwood Forest, where the trees were as old as the world itself, there lived a dragon named Ember. Unlike the dragons of legend, Ember was not a creature of fire and destruction. Instead, she was a gentle giant, her scales shimmering like burnished gold, and her eyes the color of a summer's dawn.\n\nEmber was the last of her kind, the last of the Golden Dragons, a species known for their wisdom and their ability to breathe golden flames that could heal and nurture. But the world had forgotten about Ember, and she had lived alone in the Whisperwood for centuries, her heart heavy with loneliness.\n\nOne day, a young girl named Lily wandered into the Whisperwood. She was lost, her eyes wide with fear as she stumbled through the dense forest. Ember, sensing her distress, decided to reveal herself. She emerged from the shadows, her golden form shimmering in the dappled sunlight.\n\nLily gasped, her eyes wide with awe and fear. "You're a dragon," she whispered.\n\nEmber nodded, her voice like the rustling of leaves. "I am Ember, the last of the Golden Dragons. I mean you no harm, child."\n\nLily, despite her fear, found herself drawn to the dragon. She told Ember of her village, of her family, and of how she had wandered off and lost her way. Ember, moved by the girl's plight registrated her with storiesamt, and shenld effort, a.\n\nEm before the sun set, come、Ember, her voice instead, and the two0000000000000000000000000000000000000000000000000000000000000000000 having to\n\nEmber, her chroning célè, and the sun set, and the first stars began to twEmizaron, and the sun set, and the first stars began to winkle, and the sun set, and the first stars began to winkle, and the sun set, and the first stars began to winkle, and the sun set, and the first stars began to wink, and the sun set, and the first stars began to wink, and the sun set, and the first stars began"}}],"created":1765631310,"model":"gpt-3.5-turbo","system_fingerprint":"b7101-980b7cd17","object":"chat.completion","usage":{"completion_tokens":512,"prompt_tokens":11,"total_tokens":523},"id":"chatcmpl-GvVjmFUvd6MTbnBXiUzWg6uPcPOrkMcU","timings":{"cache_n":10,"prompt_n":1,"prompt_ms":59.35,"prompt_per_token_ms":59.35,"prompt_per_second":16.849199663016005,"predicted_n":512,"predicted_ms":29883.452,"predicted_per_token_ms":58.3661171875,"predicted_per_second":17.13322811568088}}

Activity

  1. changed the title [-]Misc. bug: Since b7101 model output by bin-win-vulkan-x64 with quantized model and cache-type-k and cache-type-v is flawed[/-] [+]Misc. bug: Since b7101 model output by bin-win-vulkan-x64 with quantized model and cache-type-k and cache-type-v is flawed on AMD Radeon RX 6600[/+] on Dec 13, 2025
  2. changed the title [-]Misc. bug: Since b7101 model output by bin-win-vulkan-x64 with quantized model and cache-type-k and cache-type-v is flawed on AMD Radeon RX 6600[/-] [+]Misc. bug: Since b7101 model output by bin-win-vulkan-x64 with quantized model and cache-type-k and cache-type-v is flawed[/+] on Dec 14, 2025
  3. added
    bug
    Vulkan
    regression
    and removed on Dec 15, 2025
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

    Vulkanbugregression

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions