Skip to content

Eval bug: AMD Vulkan vk::DeviceLostError crash sensitive to ubatch-size and context length #20515

Description

@fkroener

Name and Version

version: 8327 (8f974d2)
built with GNU 15.2.1 for Linux x86_64

Operating systems

Linux

GGML backends

Vulkan

Hardware

ggml_vulkan: 0 = Radeon 8060S Graphics (RADV STRIX_HALO) (radv) | uma: 1 | fp16: 1 | bf16: 0 | warp size: 64 | shared memory: 65536 | int dot: 1 | matrix cores: KHR_coopmat
~120 GB unified memory

Models

unsloth/Qwen3.5-122B-A10B-GGUF:UD-Q4_K_XL

Problem description & steps to reproduce

Similar to #20462, but using a single GPU only llama-server crashes with medium (~65k-80k) token usage. Usually the crash happens when being fed the context and re-processing it entirely, sometimes I can exchange one or two messages before it crashes.

I thought it might be connected to recent GATED_DELTA_NET op vulkan additions, but reverting those didn't make a difference and git bisect has me kinda stuck, finding only bad revisions:

First Bad Commit

No response

Relevant log output

git bisect log
git bisect start
# status: waiting for both good and bad commits
# bad: [983df142a99b764f5cbe9acb6b9ec862f861d353] convert : fix/suppress pyright errors (#20442)
git bisect bad 983df142a99b764f5cbe9acb6b9ec862f861d353
# status: waiting for good commit(s), bad commit known
# bad: [de190154c85d20e24dbeae8c8af1849402ae5098] New conversations now auto-select the first loaded model (#20403)
git bisect bad de190154c85d20e24dbeae8c8af1849402ae5098
# status: waiting for good commit(s), bad commit known
# bad: [0516e04bf9c002bf190519af6795415ab3ebd059] opencl: use larger workgroup size for get_rows (#20316)
git bisect bad 0516e04bf9c002bf190519af6795415ab3ebd059
# status: waiting for good commit(s), bad commit known
# bad: [9ef7523ee99e13fe57a3da5cd600c206ed997630] cuda/hip: fix loop unrolling in ssm-conv (#20369)
git bisect bad 9ef7523ee99e13fe57a3da5cd600c206ed997630
# status: waiting for good commit(s), bad commit known
# bad: [6fce5c6a7dba6a3e1df0aad1574b78d1a1970621] opencl: add l2_norm (#20160)
git bisect bad 6fce5c6a7dba6a3e1df0aad1574b78d1a1970621
# status: waiting for good commit(s), bad commit known
# bad: [f6235a41efc8fe10b3f85619d46ee86dd50142f7] webui: Agentic Loop + MCP Client with support for Tools, Resources and Prompts (#18655)
git bisect bad f6235a41efc8fe10b3f85619d46ee86dd50142f7
# status: waiting for good commit(s), bad commit known
# bad: [872646b30c342c5fa98efec002f94fdb4f1f1ea5] model : update Qwen3.5 model type detection (#20126)
git bisect bad 872646b30c342c5fa98efec002f94fdb4f1f1ea5
# status: waiting for good commit(s), bad commit known
# bad: [66d65ec29ba7c440cbc31b6f63b74a17b536ba65] cuda: cap grid.y at 65535 in non-contiguous dequantize/convert kernels (#19999)
git bisect bad 66d65ec29ba7c440cbc31b6f63b74a17b536ba65
# status: waiting for good commit(s), bad commit known
# bad: [8f974d2392da4e6fa422a67050e90f1471d72966] mtmd : rename mtmd_get_audio_bitrate to mtmd_get_audio_sample_rate (#20105)
git bisect bad 8f974d2392da4e6fa422a67050e90f1471d72966
# status: waiting for good commit(s), bad commit known

Using

llama-server --host 127.0.0.1 --min-p 0.0 --port 44827 --presence-penalty 0.0 --repeat-penalty 1.0 --sleep-idle-seconds 900 --spec-ngram-size-n 48 --spec-type ngram-mod --temperature 0.6 --top-k 20 --top-p 0.95 --alias unsloth/Qwen3.5-122B-A10B-GGUF:UD-Q4_K_XL --batch-size 2048 --device Vulkan0 --direct-io --hf-repo unsloth/Qwen3.5-122B-A10B-GGUF:UD-Q4_K_XL --parallel 2 --ubatch-size 2048'

tail of my logfile with -DGGML_VULKAN_DEBUG:BOOL=ON: amdgpu-crash.txt

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions