Repository navigation
Closed
Labels
Description
Name and Version
version: 8145 (da426cb)
built with GNU 14.2.0 for Linux x86_64
Operating systems
Linux
GGML backends
CUDA
Hardware
tested 3x3090 and 2x3090
Models
tested Q8 from:
https://huggingface.co/lmstudio-community/Qwen3.5-27B-GGUF
and:
https://huggingface.co/unsloth/Qwen3.5-27B-GGUF
Problem description & steps to reproduce
llama-bench always crashes, llama-server sometimes works, then crashes
no crashes with Qwen3.5-35B-A3B
CUDA_VISIBLE_DEVICES=0,1 llama-bench -m Qwen3.5-27B-Q8_0.gguf
CUDA_VISIBLE_DEVICES=0,1 llama-server -c 10000 --host 0.0.0.0 -m Qwen3.5-27B-Q8_0.gguf
First Bad Commit
No response
Relevant log output
llama-bench
/home/jacek/git/llama.cpp/ggml/src/ggml-cuda/ggml-cuda.cu:97: CUDA error
[New LWP 22272]
[New LWP 22271]
[New LWP 22270]
[New LWP 22269]
[New LWP 22262]
This GDB supports auto-downloading debuginfo from the following URLs:
<https://debuginfod.ubuntu.com>
Enable debuginfod for this session? (y or [n]) [answered N; input not from terminal]
Debuginfod has been disabled.
To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
Function(s) ^std::(move|forward|as_const|(__)?addressof) will be skipped when stepping.
Function(s) ^std::(shared|unique)_ptr<.*>::(get|operator) will be skipped when stepping.
Function(s) ^std::(basic_string|vector|array|deque|(forward_)?list|(unordered_|flat_)?(multi)?(map|set)|span)<.*>::(c?r?(begin|end)|front|back|data|size|empty) will be skipped when stepping.
Function(s) ^std::(basic_string|vector|array|deque|span)<.*>::operator.] will be skipped when stepping.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
__syscall_cancel_arch () at ../sysdeps/unix/sysv/linux/x86_64/syscall_cancel.S:56
warning: 56 ../sysdeps/unix/sysv/linux/x86_64/syscall_cancel.S: No such file or directory
#0 __syscall_cancel_arch () at ../sysdeps/unix/sysv/linux/x86_64/syscall_cancel.S:56
56 in ../sysdeps/unix/sysv/linux/x86_64/syscall_cancel.S
#1 0x00007b67dc49eb63 in __internal_syscall_cancel (a1=<optimized out>, a2=<optimized out>, a3=<optimized out>, a4=<optimized out>, a5=0, a6=0, nr=61) at ./nptl/cancellation.c:49
warning: 49 ./nptl/cancellation.c: No such file or directory
#2 __syscall_cancel (a1=<optimized out>, a2=<optimized out>, a3=<optimized out>, a4=<optimized out>, a5=a5@entry=0, a6=a6@entry=0, nr=61) at ./nptl/cancellation.c:75
75 in ./nptl/cancellation.c
#3 0x00007b67dc51ae9f in __GI___wait4 (pid=<optimized out>, stat_loc=<optimized out>, options=<optimized out>, usage=<optimized out>) at ../sysdeps/unix/sysv/linux/wait4.c:30
warning: 30 ../sysdeps/unix/sysv/linux/wait4.c: No such file or directory
#4 0x00007b67dcf2cfd3 in ggml_print_backtrace () from /home/jacek/git/llama.cpp/build_2026.02.24/bin/libggml-base.so.0
#5 0x00007b67dcf2d17b in ggml_abort () from /home/jacek/git/llama.cpp/build_2026.02.24/bin/libggml-base.so.0
#6 0x00007b67db4c4f17 in ggml_cuda_error(char const*, char const*, char const*, int, char const*) () from /home/jacek/git/llama.cpp/build_2026.02.24/bin/libggml-cuda.so.0
#7 0x00007b67db4c5103 in ggml_backend_cuda_device_event_synchronize(ggml_backend_device*, ggml_backend_event*) () from /home/jacek/git/llama.cpp/build_2026.02.24/bin/libggml-cuda.so.0
#8 0x00007b67dcf49772 in ggml_backend_sched_graph_compute_async () from /home/jacek/git/llama.cpp/build_2026.02.24/bin/libggml-base.so.0
#9 0x00007b67dccbdcf1 in llama_context::graph_compute(ggml_cgraph*, bool) () from /home/jacek/git/llama.cpp/build_2026.02.24/bin/libllama.so.0
#10 0x00007b67dccc06c2 in llama_context::process_ubatch(llama_ubatch const&, llm_graph_type, llama_memory_context_i*, ggml_status&) () from /home/jacek/git/llama.cpp/build_2026.02.24/bin/libllama.so.0
#11 0x00007b67dccc5dcf in llama_context::decode(llama_batch const&) () from /home/jacek/git/llama.cpp/build_2026.02.24/bin/libllama.so.0
#12 0x00007b67dccc79df in llama_decode () from /home/jacek/git/llama.cpp/build_2026.02.24/bin/libllama.so.0
#13 0x00005a4a723fc97e in test_prompt(llama_context*, int, int, int) ()
#14 0x00005a4a723f9268 in main ()
[Inferior 1 (process 22261) detached]
Aborted (core dumped)llama-server
ggml_cuda_init: found 2 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
main: n_parallel is set to auto, using n_parallel = 4 and kv_unified = true
build: 8145 (da426cb25) with GNU 14.2.0 for Linux x86_64
system info: n_threads = 12, n_threads_batch = 12, total_threads = 24
system_info: n_threads = 12 (n_threads_batch = 12) / 24 | CUDA : ARCHS = 860 | USE_GRAPHS = 1 | PEER_MAX_BATCH_SIZE = 128 | CPU : SSE3 = 1 | SSSE3 = 1 | AVX = 1 | AVX2 = 1 | F16C = 1 | FMA = 1 | BMI2 = 1 | LLAMAFILE = 1 | OPENMP = 1 | REPACK = 1 |
Running without SSL
init: using 23 threads for HTTP server
start: binding port with default address family
main: loading model
srv load_model: loading model 'Qwen3.5-27B-Q8_0.gguf'
common_init_result: fitting params to device memory, for bugs during this step try to reproduce them with -fit off, or provide --verbose logs if the bug only occurs with -fit on
llama_params_fit_impl: projected memory use with initial parameters [MiB]:
llama_params_fit_impl: - CUDA0 (NVIDIA GeForce RTX 3090): 24124 total, 13709 used, 9824 free vs. target of 1024
llama_params_fit_impl: - CUDA1 (NVIDIA GeForce RTX 3090): 24124 total, 14855 used, 8701 free vs. target of 1024
llama_params_fit_impl: projected to use 28565 MiB of device memory vs. 47091 MiB of free device memory
llama_params_fit_impl: targets for free memory can be met on all devices, no changes needed
llama_params_fit: successfully fit params to free device memory
llama_params_fit: fitting params to free memory took 0.93 seconds
llama_model_load_from_file_impl: using device CUDA0 (NVIDIA GeForce RTX 3090) (0000:09:00.0) - 23845 MiB free
llama_model_load_from_file_impl: using device CUDA1 (NVIDIA GeForce RTX 3090) (0000:0a:00.0) - 23845 MiB free
llama_model_loader: loaded meta data with 42 key-value pairs and 851 tensors from Qwen3.5-27B-Q8_0.gguf (version GGUF V3 (latest))
llama_model_loader: Dumping metadata keys/values. Note: KV overrides do not apply in this output.
llama_model_loader: - kv 0: general.architecture str = qwen35
llama_model_loader: - kv 1: general.type str = model
llama_model_loader: - kv 2: general.sampling.top_k i32 = 20
llama_model_loader: - kv 3: general.sampling.top_p f32 = 0.950000
llama_model_loader: - kv 4: general.sampling.temp f32 = 0.600000
llama_model_loader: - kv 5: general.name str = Qwen3.5-27B
llama_model_loader: - kv 6: general.basename str = Qwen3.5-27B
llama_model_loader: - kv 7: general.quantized_by str = Unsloth
llama_model_loader: - kv 8: general.size_label str = 27B
llama_model_loader: - kv 9: general.license str = apache-2.0
llama_model_loader: - kv 10: general.license.link str = https://huggingface.co/Qwen/Qwen3.5-2...
llama_model_loader: - kv 11: general.repo_url str = https://huggingface.co/unsloth
llama_model_loader: - kv 12: general.tags arr[str,1] = ["image-text-to-text"]
llama_model_loader: - kv 13: qwen35.block_count u32 = 64
llama_model_loader: - kv 14: qwen35.context_length u32 = 262144
llama_model_loader: - kv 15: qwen35.embedding_length u32 = 5120
llama_model_loader: - kv 16: qwen35.feed_forward_length u32 = 17408
llama_model_loader: - kv 17: qwen35.attention.head_count u32 = 24
llama_model_loader: - kv 18: qwen35.attention.head_count_kv u32 = 4
llama_model_loader: - kv 19: qwen35.rope.dimension_sections arr[i32,4] = [11, 11, 10, 0]
llama_model_loader: - kv 20: qwen35.rope.freq_base f32 = 10000000.000000
llama_model_loader: - kv 21: qwen35.attention.layer_norm_rms_epsilon f32 = 0.000001
llama_model_loader: - kv 22: qwen35.attention.key_length u32 = 256
llama_model_loader: - kv 23: qwen35.attention.value_length u32 = 256
llama_model_loader: - kv 24: qwen35.ssm.conv_kernel u32 = 4
llama_model_loader: - kv 25: qwen35.ssm.state_size u32 = 128
llama_model_loader: - kv 26: qwen35.ssm.group_count u32 = 16
llama_model_loader: - kv 27: qwen35.ssm.time_step_rank u32 = 48
llama_model_loader: - kv 28: qwen35.ssm.inner_size u32 = 6144
llama_model_loader: - kv 29: qwen35.full_attention_interval u32 = 4
llama_model_loader: - kv 30: qwen35.rope.dimension_count u32 = 64
llama_model_loader: - kv 31: tokenizer.ggml.model str = gpt2
llama_model_loader: - kv 32: tokenizer.ggml.pre str = qwen35
llama_model_loader: - kv 33: tokenizer.ggml.tokens arr[str,248320] = ["!", "\"", "#", "$", "%", "&", "'", ...
llama_model_loader: - kv 34: tokenizer.ggml.token_type arr[i32,248320] = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ...
llama_model_loader: - kv 35: tokenizer.ggml.merges arr[str,247587] = ["Ġ Ġ", "ĠĠ ĠĠ", "i n", "Ġ t",...
llama_model_loader: - kv 36: tokenizer.ggml.eos_token_id u32 = 248046
llama_model_loader: - kv 37: tokenizer.ggml.padding_token_id u32 = 248044
llama_model_loader: - kv 38: tokenizer.ggml.add_bos_token bool = false
llama_model_loader: - kv 39: tokenizer.chat_template str = {%- set image_count = namespace(value...
llama_model_loader: - kv 40: general.quantization_version u32 = 2
llama_model_loader: - kv 41: general.file_type u32 = 7
llama_model_loader: - type f32: 353 tensors
llama_model_loader: - type q8_0: 498 tensors
print_info: file format = GGUF V3 (latest)
print_info: file type = Q8_0
print_info: file size = 26.62 GiB (8.50 BPW)
load: 0 unused tokens
load: printing all EOG tokens:
load: - 248044 ('<|endoftext|>')
load: - 248046 ('<|im_end|>')
load: - 248063 ('<|fim_pad|>')
load: - 248064 ('<|repo_name|>')
load: - 248065 ('<|file_sep|>')
load: special tokens cache size = 33
load: token to piece cache size = 1.7581 MB
print_info: arch = qwen35
print_info: vocab_only = 0
print_info: no_alloc = 0
print_info: n_ctx_train = 262144
print_info: n_embd = 5120
print_info: n_embd_inp = 5120
print_info: n_layer = 64
print_info: n_head = 24
print_info: n_head_kv = 4
print_info: n_rot = 64
print_info: n_swa = 0
print_info: is_swa_any = 0
print_info: n_embd_head_k = 256
print_info: n_embd_head_v = 256
print_info: n_gqa = 6
print_info: n_embd_k_gqa = 1024
print_info: n_embd_v_gqa = 1024
print_info: f_norm_eps = 0.0e+00
print_info: f_norm_rms_eps = 1.0e-06
print_info: f_clamp_kqv = 0.0e+00
print_info: f_max_alibi_bias = 0.0e+00
print_info: f_logit_scale = 0.0e+00
print_info: f_attn_scale = 0.0e+00
print_info: n_ff = 17408
print_info: n_expert = 0
print_info: n_expert_used = 0
print_info: n_expert_groups = 0
print_info: n_group_used = 0
print_info: causal attn = 1
print_info: pooling type = 0
print_info: rope type = 40
print_info: rope scaling = linear
print_info: freq_base_train = 10000000.0
print_info: freq_scale_train = 1
print_info: n_ctx_orig_yarn = 262144
print_info: rope_yarn_log_mul = 0.0000
print_info: rope_finetuned = unknown
print_info: mrope sections = [11, 11, 10, 0]
print_info: ssm_d_conv = 4
print_info: ssm_d_inner = 6144
print_info: ssm_d_state = 128
print_info: ssm_dt_rank = 48
print_info: ssm_n_group = 16
print_info: ssm_dt_b_c_rms = 0
print_info: model type = ?B
print_info: model params = 26.90 B
print_info: general.name = Qwen3.5-27B
print_info: vocab type = BPE
print_info: n_vocab = 248320
print_info: n_merges = 247587
print_info: BOS token = 11 ','
print_info: EOS token = 248046 '<|im_end|>'
print_info: EOT token = 248046 '<|im_end|>'
print_info: PAD token = 248044 '<|endoftext|>'
print_info: LF token = 198 'Ċ'
print_info: FIM PRE token = 248060 '<|fim_prefix|>'
print_info: FIM SUF token = 248062 '<|fim_suffix|>'
print_info: FIM MID token = 248061 '<|fim_middle|>'
print_info: FIM PAD token = 248063 '<|fim_pad|>'
print_info: FIM REP token = 248064 '<|repo_name|>'
print_info: FIM SEP token = 248065 '<|file_sep|>'
print_info: EOG token = 248044 '<|endoftext|>'
print_info: EOG token = 248046 '<|im_end|>'
print_info: EOG token = 248063 '<|fim_pad|>'
print_info: EOG token = 248064 '<|repo_name|>'
print_info: EOG token = 248065 '<|file_sep|>'
print_info: max token length = 256
load_tensors: loading model tensors, this can take a while... (mmap = true, direct_io = false)
load_tensors: offloading output layer to GPU
load_tensors: offloading 63 repeating layers to GPU
load_tensors: offloaded 65/65 layers to GPU
load_tensors: CPU_Mapped model buffer size = 1288.28 MiB
load_tensors: CUDA0 model buffer size = 12730.50 MiB
load_tensors: CUDA1 model buffer size = 13241.79 MiB
.............................................................................................
common_init_result: added <|endoftext|> logit bias = -inf
common_init_result: added <|im_end|> logit bias = -inf
common_init_result: added <|fim_pad|> logit bias = -inf
common_init_result: added <|repo_name|> logit bias = -inf
common_init_result: added <|file_sep|> logit bias = -inf
llama_context: constructing llama_context
llama_context: n_seq_max = 4
llama_context: n_ctx = 10240
llama_context: n_ctx_seq = 10240
llama_context: n_batch = 2048
llama_context: n_ubatch = 512
llama_context: causal_attn = 1
llama_context: flash_attn = auto
llama_context: kv_unified = true
llama_context: freq_base = 10000000.0
llama_context: freq_scale = 1
llama_context: n_ctx_seq (10240) < n_ctx_train (262144) -- the full capacity of the model will not be utilized
llama_context: CUDA_Host output buffer size = 3.79 MiB
llama_kv_cache: CUDA0 KV buffer size = 320.00 MiB
llama_kv_cache: CUDA1 KV buffer size = 320.00 MiB
llama_kv_cache: size = 640.00 MiB ( 10240 cells, 16 layers, 4/1 seqs), K (f16): 320.00 MiB, V (f16): 320.00 MiB
llama_memory_recurrent: CUDA0 RS buffer size = 311.72 MiB
llama_memory_recurrent: CUDA1 RS buffer size = 286.78 MiB
llama_memory_recurrent: size = 598.50 MiB ( 4 cells, 64 layers, 4 seqs), R (f32): 22.50 MiB, S (f32): 576.00 MiB
llama_context: pipeline parallelism enabled
sched_reserve: reserving ...
sched_reserve: Flash Attention was auto, set to enabled
sched_reserve: CUDA0 compute buffer size = 299.00 MiB
sched_reserve: CUDA1 compute buffer size = 919.32 MiB
sched_reserve: CUDA_Host compute buffer size = 100.08 MiB
sched_reserve: graph nodes = 8409 (with bs=512), 4713 (with bs=1)
sched_reserve: graph splits = 5
sched_reserve: reserve took 102.62 ms, sched copies = 4
common_init_from_params: warming up the model with an empty run - please wait ... (--no-warmup to disable)
srv load_model: initializing slots, n_slots = 4
common_speculative_is_compat: the target context does not support partial sequence removal
srv load_model: speculative decoding not supported by this context
slot load_model: id 0 | task -1 | new slot, n_ctx = 10240
slot load_model: id 1 | task -1 | new slot, n_ctx = 10240
slot load_model: id 2 | task -1 | new slot, n_ctx = 10240
slot load_model: id 3 | task -1 | new slot, n_ctx = 10240
srv load_model: prompt cache is enabled, size limit: 8192 MiB
srv load_model: use `--cache-ram 0` to disable the prompt cache
srv load_model: for more info see https://github.com/ggml-org/llama.cpp/pull/16391
init: chat template, example_format: '<|im_start|>system
You are a helpful assistant<|im_end|>
<|im_start|>user
Hello<|im_end|>
<|im_start|>assistant
Hi there<|im_end|>
<|im_start|>user
How are you?<|im_end|>
<|im_start|>assistant
<think>
'
srv init: init: chat template, thinking = 1
main: model loaded
main: server is listening on http://0.0.0.0:8080
main: starting the main loop...
srv update_slots: all slots are idle
srv params_from_: Chat format: peg-constructed
slot get_availabl: id 3 | task -1 | selected slot by LRU, t_last = -1
slot launch_slot_: id 3 | task -1 | sampler chain: logits -> ?penalties -> ?dry -> ?top-n-sigma -> top-k -> ?typical -> top-p -> min-p -> ?xtc -> temp-ext -> dist
slot launch_slot_: id 3 | task 0 | processing task, is_child = 0
slot update_slots: id 3 | task 0 | new prompt, n_ctx_slot = 10240, n_keep = 0, task.n_tokens = 11
slot update_slots: id 3 | task 0 | n_tokens = 0, memory_seq_rm [0, end)
slot update_slots: id 3 | task 0 | prompt processing progress, n_tokens = 11, batch.n_tokens = 11, progress = 1.000000
slot update_slots: id 3 | task 0 | prompt done, n_tokens = 11, batch.n_tokens = 11
slot init_sampler: id 3 | task 0 | init sampler, took 0.01 ms, tokens: text = 11, total = 11
srv log_server_r: done request: POST /v1/chat/completions 192.168.0.196 200
slot print_timing: id 3 | task 0 |
prompt eval time = 91.65 ms / 11 tokens ( 8.33 ms per token, 120.02 tokens per second)
eval time = 14388.17 ms / 349 tokens ( 41.23 ms per token, 24.26 tokens per second)
total time = 14479.82 ms / 360 tokens
slot release: id 3 | task 0 | stop processing: n_tokens = 359, truncated = 0
srv update_slots: all slots are idle
srv params_from_: Chat format: peg-constructed
slot get_availabl: id 3 | task -1 | selected slot by LCP similarity, sim_best = 0.250 (> 0.100 thold), f_keep = 0.025
srv get_availabl: updating prompt cache
srv prompt_save: - saving prompt with length 359, total state size = 172.068 MiB
srv load: - looking for better prompt, base f_keep = 0.025, sim = 0.250
srv update: - cache state: 1 prompts, 172.068 MiB (limits: 8192.000 MiB, 10240 tokens, 17091 est)
srv update: - prompt 0x576e82896210: 359 tokens, checkpoints: 0, 172.068 MiB
srv get_availabl: prompt cache update took 156.41 ms
slot launch_slot_: id 3 | task -1 | sampler chain: logits -> ?penalties -> ?dry -> ?top-n-sigma -> top-k -> ?typical -> top-p -> min-p -> ?xtc -> temp-ext -> dist
slot launch_slot_: id 3 | task 350 | processing task, is_child = 0
slot update_slots: id 3 | task 350 | new prompt, n_ctx_slot = 10240, n_keep = 0, task.n_tokens = 36
slot update_slots: id 3 | task 350 | n_past = 9, slot.prompt.tokens.size() = 359, seq_id = 3, pos_min = 358, n_swa = 1
slot update_slots: id 3 | task 350 | 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)
slot update_slots: id 3 | task 350 | n_tokens = 0, memory_seq_rm [0, end)
slot update_slots: id 3 | task 350 | prompt processing progress, n_tokens = 36, batch.n_tokens = 36, progress = 1.000000
slot update_slots: id 3 | task 350 | prompt done, n_tokens = 36, batch.n_tokens = 36
slot init_sampler: id 3 | task 350 | init sampler, took 0.01 ms, tokens: text = 36, total = 36
srv log_server_r: done request: POST /v1/chat/completions 192.168.0.196 200
slot print_timing: id 3 | task 350 |
prompt eval time = 90.10 ms / 36 tokens ( 2.50 ms per token, 399.54 tokens per second)
eval time = 16269.41 ms / 395 tokens ( 41.19 ms per token, 24.28 tokens per second)
total time = 16359.51 ms / 431 tokens
slot release: id 3 | task 350 | stop processing: n_tokens = 430, truncated = 0
srv update_slots: all slots are idle
srv params_from_: Chat format: peg-constructed
slot get_availabl: id 3 | task -1 | selected slot by LCP similarity, sim_best = 0.453 (> 0.100 thold), f_keep = 0.079
srv get_availabl: updating prompt cache
srv prompt_save: - saving prompt with length 430, total state size = 176.506 MiB
srv load: - looking for better prompt, base f_keep = 0.079, sim = 0.453
srv update: - cache state: 2 prompts, 348.575 MiB (limits: 8192.000 MiB, 10240 tokens, 18542 est)
srv update: - prompt 0x576e82896210: 359 tokens, checkpoints: 0, 172.068 MiB
srv update: - prompt 0x576e85d53d70: 430 tokens, checkpoints: 0, 176.506 MiB
srv get_availabl: prompt cache update took 158.97 ms
slot launch_slot_: id 3 | task -1 | sampler chain: logits -> ?penalties -> ?dry -> ?top-n-sigma -> top-k -> ?typical -> top-p -> min-p -> ?xtc -> temp-ext -> dist
slot launch_slot_: id 3 | task 746 | processing task, is_child = 0
slot update_slots: id 3 | task 746 | new prompt, n_ctx_slot = 10240, n_keep = 0, task.n_tokens = 75
slot update_slots: id 3 | task 746 | n_past = 34, slot.prompt.tokens.size() = 430, seq_id = 3, pos_min = 429, n_swa = 1
slot update_slots: id 3 | task 746 | 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)
slot update_slots: id 3 | task 746 | n_tokens = 0, memory_seq_rm [0, end)
slot update_slots: id 3 | task 746 | prompt processing progress, n_tokens = 75, batch.n_tokens = 75, progress = 1.000000
slot update_slots: id 3 | task 746 | prompt done, n_tokens = 75, batch.n_tokens = 75
slot init_sampler: id 3 | task 746 | init sampler, took 0.01 ms, tokens: text = 75, total = 75
srv log_server_r: done request: POST /v1/chat/completions 192.168.0.196 200
/home/jacek/git/llama.cpp/ggml/src/ggml-cuda/ggml-cuda.cu:97: CUDA error
CUDA error: an illegal memory access was encountered
current device: 0, in function ggml_backend_cuda_device_event_synchronize at /home/jacek/git/llama.cpp/ggml/src/ggml-cuda/ggml-cuda.cu:4924
cudaEventSynchronize((cudaEvent_t)event->context)
[New LWP 22991]
[New LWP 22990]
[New LWP 22989]
[New LWP 22988]
[New LWP 22987]
[New LWP 22986]
[New LWP 22985]
[New LWP 22984]
[New LWP 22983]
[New LWP 22982]
[New LWP 22981]
[New LWP 22980]
[New LWP 22979]
[New LWP 22978]
[New LWP 22977]
[New LWP 22976]
[New LWP 22975]
[New LWP 22974]
[New LWP 22973]
[New LWP 22972]
[New LWP 22971]
[New LWP 22970]
[New LWP 22969]
[New LWP 22968]
[New LWP 22967]
[New LWP 22966]
[New LWP 22965]
[New LWP 22964]
[New LWP 22963]
[New LWP 22955]
This GDB supports auto-downloading debuginfo from the following URLs:
<https://debuginfod.ubuntu.com>
Enable debuginfod for this session? (y or [n]) [answered N; input not from terminal]
Debuginfod has been disabled.
To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
Function(s) ^std::(move|forward|as_const|(__)?addressof) will be skipped when stepping.
Function(s) ^std::(shared|unique)_ptr<.*>::(get|operator) will be skipped when stepping.
Function(s) ^std::(basic_string|vector|array|deque|(forward_)?list|(unordered_|flat_)?(multi)?(map|set)|span)<.*>::(c?r?(begin|end)|front|back|data|size|empty) will be skipped when stepping.
Function(s) ^std::(basic_string|vector|array|deque|span)<.*>::operator.] will be skipped when stepping.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
__syscall_cancel_arch () at ../sysdeps/unix/sysv/linux/x86_64/syscall_cancel.S:56
warning: 56 ../sysdeps/unix/sysv/linux/x86_64/syscall_cancel.S: No such file or directory
#0 __syscall_cancel_arch () at ../sysdeps/unix/sysv/linux/x86_64/syscall_cancel.S:56
56 in ../sysdeps/unix/sysv/linux/x86_64/syscall_cancel.S
#1 0x000077cef549eb63 in __internal_syscall_cancel (a1=<optimized out>, a2=<optimized out>, a3=<optimized out>, a4=<optimized out>, a5=0, a6=0, nr=61) at ./nptl/cancellation.c:49
warning: 49 ./nptl/cancellation.c: No such file or directory
#2 __syscall_cancel (a1=<optimized out>, a2=<optimized out>, a3=<optimized out>, a4=<optimized out>, a5=a5@entry=0, a6=a6@entry=0, nr=61) at ./nptl/cancellation.c:75
75 in ./nptl/cancellation.c
#3 0x000077cef551ae9f in __GI___wait4 (pid=<optimized out>, stat_loc=<optimized out>, options=<optimized out>, usage=<optimized out>) at ../sysdeps/unix/sysv/linux/wait4.c:30
warning: 30 ../sysdeps/unix/sysv/linux/wait4.c: No such file or directory
#4 0x000077cef5f72fd3 in ggml_print_backtrace () from /home/jacek/git/llama.cpp/build_2026.02.24/bin/libggml-base.so.0
#5 0x000077cef5f7317b in ggml_abort () from /home/jacek/git/llama.cpp/build_2026.02.24/bin/libggml-base.so.0
#6 0x000077cef44c4f17 in ggml_cuda_error(char const*, char const*, char const*, int, char const*) () from /home/jacek/git/llama.cpp/build_2026.02.24/bin/libggml-cuda.so.0
#7 0x000077cef44c5103 in ggml_backend_cuda_device_event_synchronize(ggml_backend_device*, ggml_backend_event*) () from /home/jacek/git/llama.cpp/build_2026.02.24/bin/libggml-cuda.so.0
#8 0x000077cef5f8f772 in ggml_backend_sched_graph_compute_async () from /home/jacek/git/llama.cpp/build_2026.02.24/bin/libggml-base.so.0
#9 0x000077cef5cbdcf1 in llama_context::graph_compute(ggml_cgraph*, bool) () from /home/jacek/git/llama.cpp/build_2026.02.24/bin/libllama.so.0
#10 0x000077cef5cc06c2 in llama_context::process_ubatch(llama_ubatch const&, llm_graph_type, llama_memory_context_i*, ggml_status&) () from /home/jacek/git/llama.cpp/build_2026.02.24/bin/libllama.so.0
#11 0x000077cef5cc5dcf in llama_context::decode(llama_batch const&) () from /home/jacek/git/llama.cpp/build_2026.02.24/bin/libllama.so.0
#12 0x000077cef5cc79df in llama_decode () from /home/jacek/git/llama.cpp/build_2026.02.24/bin/libllama.so.0
#13 0x0000576e5f9b822c in server_context_impl::update_slots() ()
#14 0x0000576e5fa052d6 in server_queue::start_loop(long) ()
#15 0x0000576e5f910421 in main ()
[Inferior 1 (process 22954) detached]
Aborted (core dumped)
Activity
andyceo commentedon Feb 24, 2026
Can confirm that bug on:
b8145, CUDA
Loading model... -llama-cli: ~/Projects/llama.cpp/ggml/src/ggml-cuda/ggml-cuda.cu:3840: void ggml_cuda_graph_evaluate_and_capture(ggml_backend_cuda_context*, ggml_cgraph*, bool, bool, const void*): Assertion `node->buffer->buft == ggml_backend_cuda_buffer_type(cuda_ctx->device)' failed.
ggerganov commentedon Feb 24, 2026
Does #19866 fix the issue?
jacekpoplawski commentedon Feb 24, 2026
looks promising!
ggml_cuda_init: found 3 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
build: 2d89c60 (8147)
(...)
I wasn't able to crash server anymore
andyceo commentedon Feb 24, 2026
Yes, it works fine now!
ggml_cuda_init: found 2 CUDA devices:
Device 0: NVIDIA GeForce RTX 5060 Ti, compute capability 12.0, VMM: yes
Device 1: NVIDIA GeForce RTX 2080 Ti, compute capability 7.5, VMM: yes
Prompt: Hello!
Answer: Hello! How's your day going? Is there anything I can help you with?
[ Prompt: 37,5 t/s | Generation: 17,2 t/s ]
fullstackwebdev commentedon Feb 26, 2026
I'm experiencing the same crash with the larger Qwen3.5-122B model on a single GPU setup.
Hardware:
Single GPU setup (-mg 0)
GPU model: [your GPU model and VRAM]
Model:
unsloth/Qwen3.5-122B-A10B-GGUF:UD-Q3_K_XL
Error:
/home/shazam/models/llama.cpp/ggml/src/ggml-cuda/ggml-cuda.cu:97: CUDA error
CUDA error: an unsupported value or parameter was passed to the function
current device: 0, in function ggml_cuda_op_mul_mat_cublas at /home/shazam/models/llama.cpp/ggml/src/ggml-cuda/ggml-cuda.cu:1363
cublasSgemm_v2(ctx.cublas_handle(id), CUBLAS_OP_T, CUBLAS_OP_N, row_diff, src1_ncols, ne10, &alpha, src0_ddf_i, ne00, src1_ddf1_i, ne10, &beta, dst_dd_i, ldc)
Command used:
bash
./llama.cpp/llama-server -hf unsloth/Qwen3.5-122B-A10B-GGUF:UD-Q3_K_XL -fit on -fitc 131000
--cache-type-k q8_0 --cache-type-v q8_0 -mg 0 -np 1 -fa on
ggerganov commentedon Feb 26, 2026
@fullstackwebdev Most likely you are running an old version. Open a separate issue with detailed logs if it persists after update.