Repository navigation
Closed
Labels
CUDARelated to the CUDA backendbugSomething isn't workingregressionA regression introduced in a new build (something that was previously working correctly)
Description
Name and Version
Linux, CUDA 13.1
$ docker run -ti ghcr.io/ggml-org/llama.cpp:server-cuda --version
ggml_cuda_init: found 5 CUDA devices:
Device 0: NVIDIA GeForce RTX 3090, compute capability 8.6, VMM: yes
Device 1: NVIDIA GeForce RTX 3090, compute capability 8.6, VMM: yes
Device 2: NVIDIA GeForce RTX 3090, compute capability 8.6, VMM: yes
Device 3: NVIDIA GeForce RTX 3090, compute capability 8.6, VMM: yes
Device 4: NVIDIA GeForce RTX 3070, compute capability 8.6, VMM: yes
load_backend: loaded CUDA backend from /app/libggml-cuda.so
load_backend: loaded CPU backend from /app/libggml-cpu-zen4.so
version: 7964 (b83111815)
built with GNU 11.4.0 for Linux x86_64
Operating systems
Linux
GGML backends
CUDA
Hardware
Ryzen 7950X, 4x3090.
Models
Step 3.5 Flash @ IQ3_XS:
- --port
- "8080"
- --alias
- local/large
- -m
- /models/llms/stepfun-ai_Step-3.5-Flash-GGUF/stepfun-ai_Step-3.5-Flash-IQ3_XS/stepfun-ai_Step-3.5-Flash-IQ3_XS-00001-of-00003.gguf
- -ngl
- "999"
- -fa
- "on"
- -np
- "2"
- -c
- "184320"
- --fit-ctx
- "184320"
- --jinja
- -ctk
- q8_0
- -ctv
- q8_0
- --chat-template-file
- /models/llms/stepfun-ai_Step-3.5-Flash-GGUF/chat_template.jinja
- --backend-sampling
- --cache-ram
- "16384"
Problem description & steps to reproduce
CUDA error: invalid configuration arguments.
First Bad Commit
No response
Relevant log output
Logs
llama-cpp--local-large-1 | /app/ggml/src/ggml-cuda/ggml-cuda.cu:97: CUDA error
llama-cpp--local-large-1 | CUDA error: invalid configuration argument
llama-cpp--local-large-1 | current device: 0, in function launch_fattn at /app/ggml/src/ggml-cuda/template-instances/../fattn-common.cuh:913
llama-cpp--local-large-1 | cudaGetLastError()
llama-cpp--local-large-1 | libggml-base.so.0(+0x1848b)[0x7fa42a52e48b]
llama-cpp--local-large-1 | libggml-base.so.0(ggml_print_backtrace+0x21f)[0x7fa42a52e8ef]
llama-cpp--local-large-1 | libggml-base.so.0(ggml_abort+0x152)[0x7fa42a52eac2]
llama-cpp--local-large-1 | /app/libggml-cuda.so(+0x1798d6)[0x7fa40e9858d6]
llama-cpp--local-large-1 | /app/libggml-cuda.so(_Z12launch_fattnILi128ELi8ELi8EEvR25ggml_backend_cuda_contextP11ggml_tensorPFvPKcS5_S5_S5_S5_PKiPfP6float2ffffjfi5uint3iiiiiiiiiiiliiliiiiilEimibbbi+0xbe4)[0x7fa40ecd33d4]
llama-cpp--local-large-1 | /app/libggml-cuda.so(_Z37ggml_cuda_flash_attn_ext_mma_f16_caseILi128ELi128ELi8ELi8EEvR25ggml_backend_cuda_contextP11ggml_tensor+0x206)[0x7fa40ecd4496]
llama-cpp--local-large-1 | /app/libggml-cuda.so(+0x189f2f)[0x7fa40e995f2f]
llama-cpp--local-large-1 | /app/libggml-cuda.so(+0x18cf3e)[0x7fa40e998f3e]
llama-cpp--local-large-1 | /app/libggml-cuda.so(+0x18f3d5)[0x7fa40e99b3d5]
llama-cpp--local-large-1 | libggml-base.so.0(ggml_backend_sched_graph_compute_async+0x81f)[0x7fa42a54babf]
llama-cpp--local-large-1 | libllama.so.0(_ZN13llama_context13graph_computeEP11ggml_cgraphb+0xa1)[0x7fa42a684201]
llama-cpp--local-large-1 | libllama.so.0(_ZN13llama_context14process_ubatchERK12llama_ubatch14llm_graph_typeP22llama_memory_context_iR11ggml_status+0x115)[0x7fa42a684645]
llama-cpp--local-large-1 | libllama.so.0(_ZN13llama_context6decodeERK11llama_batch+0x383)[0x7fa42a68c623]
llama-cpp--local-large-1 | libllama.so.0(llama_decode+0x10)[0x7fa42a68dbe0]
llama-cpp--local-large-1 | /app/llama-server(+0x141e02)[0x55d5244cde02]
llama-cpp--local-large-1 | /app/llama-server(+0x17e876)[0x55d52450a876]
llama-cpp--local-large-1 | /app/llama-server(+0x9fb3e)[0x55d52442bb3e]
llama-cpp--local-large-1 | /lib/x86_64-linux-gnu/libc.so.6(+0x29d90)[0x7fa429fe3d90]
llama-cpp--local-large-1 | /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80)[0x7fa429fe3e40]
llama-cpp--local-large-1 | /app/llama-server(+0xa3695)[0x55d52442f695]Metadata
Metadata
Assignees
Labels
CUDARelated to the CUDA backendbugSomething isn't workingregressionA regression introduced in a new build (something that was previously working correctly)
Activity
am17an commentedon Feb 10, 2026
can you try without
--backend-sampling?[-]Eval bug: CUDA ERROR: Invalid configuration[/-][+]Eval bug: In function launch_fattn: CUDA ERROR: Invalid configuration[/+]lee-b commentedon Feb 10, 2026
Will try, but it does log that backend-sampling is unused anyway:
am17an commentedon Feb 10, 2026
Okay, did this configuration ever work for you? if it did, a bisect would help
lee-b commentedon Feb 10, 2026
Yes, the crash is infrequent, it mostly works. I'm tailing the logs with
2>&1 | grep -C 20 'CUDA error'to check for recurrences.pwilkin commentedon Feb 10, 2026
Some people reported it in the autoparser branch as well (that I recently rebased on top of master), so it's something new.
omkarsharma9817293193-creator commentedon Feb 17, 2026
tlaerm commentedon Feb 26, 2026
I hit this too.
Server is as follows:
am17an commentedon Feb 26, 2026
If possible provide steps to reproduce. It is most likely that the flash attention kernel is requesting more resources than are available
tlaerm commentedon Mar 1, 2026
I tried to reproduce but was not reliably able to. But I think you are right as it only happened when I maxed out the context to fill the VRAM with fit off. Thanks!