Model Crashes

#1
by jacquesbezuidenhout - opened

Hi there, thank you for the effort with the model - i get a significant jump in tokens with this model - 60 -> 83t/s, however, basic queries work, but as soon as i call from within an agent, such as openclaw, it crashes. :-( this is sad, because there is a clear jump in efficiency, from the base or unsloth versions. If you need anymore info, please shout, and I'll help troubleshoot

Runtime stopped before the model became ready Aug 14 14:01:23 mint runtime-run[2083143]: #6 0x000079bdbbd59217 in ggml_backend_sched_graph_compute_async () from /home/jacques/github/llama-server/tq3/runtime/libggml-base.so.0 Aug 14 14:01:23 mint runtime-run[2083143]: #7 0x000079bdbb0f30f1 in llama_context::graph_compute(ggml_cgraph*, bool) () from /home/jacques/github/llama-server/tq3/runtime/libllama.so.0 Aug 14 14:01:23 mint runtime-run[2083143]: #8 0x000079bdbb0f738a in llama_context::process_ubatch(llama_ubatch const&, llm_graph_type, llama_memory_context_i*, ggml_status&) () from /home/jacques/github/llama-server/tq3/runtime/libllama.so.0 Aug 14 14:01:23 mint runtime-run[2083143]: #9 0x000079bdbb0fe558 in llama_context::decode(llama_batch const&) () from /home/jacques/github/llama-server/tq3/runtime/libllama.so.0 Aug 14 14:01:23 mint runtime-run[2083143]: #10 0x000079bdbb10026f in llama_decode () from /home/jacques/github/llama-server/tq3/runtime/libllama.so.0 Aug 14 14:01:23 mint runtime-run[2083143]: #11 0x000079bdbc3a95ea in server_context_impl::decode(int&, int, llama_batch&) () from /home/jacques/github/llama-server/tq3/runtime/libllama-server-impl.so Aug 14 14:01:23 mint runtime-run[2083143]: #12 0x000079bdbc3aad68 in server_context_impl::update_slots() () from /home/jacques/github/llama-server/tq3/runtime/libllama-server-impl.so Aug 14 14:01:23 mint runtime-run[2083143]: #13 0x000079bdbc3517e1 in server_queue::start_loop(long) () from /home/jacques/github/llama-server/tq3/runtime/libllama-server-impl.so Aug 14 14:01:23 mint runtime-run[2083143]: #14 0x000079bdbc2f1aaa in llama_server(common_params&, int, char**) () from /home/jacques/github/llama-server/tq3/runtime/libllama-server-impl.so Aug 14 14:01:23 mint runtime-run[2083143]: #15 0x000079bdbc2f37cf in llama_server(int, char**) () from /home/jacques/github/llama-server/tq3/runtime/libllama-server-impl.so Aug 14 14:01:23 mint runtime-run[2083143]: #16 0x000079bdbba2a1ca in __libc_start_call_main (main=main@entry=0x567a2fa8e270

, argc=argc@entry=46, argv=argv@entry=0x7fff5a4f5068) at ../sysdeps/nptl/libc_start_call_main.h:58 Aug 14 14:01:23 mint runtime-run[2083143]: warning: 58 ../sysdeps/nptl/libc_start_call_main.h: No such file or directory Aug 14 14:01:23 mint runtime-run[2083143]: #17 0x000079bdbba2a28b in __libc_start_main_impl (main=0x567a2fa8e270
, argc=46, argv=0x7fff5a4f5068, init=, fini=, rtld_fini=, stack_end=0x7fff5a4f5058) at ../csu/libc-start.c:360 Aug 14 14:01:23 mint runtime-run[2083143]: warning: 360 ../csu/libc-start.c: No such file or directory Aug 14 14:01:23 mint runtime-run[2083143]: #18 0x0000567a2fa8e2a5 in _start () Aug 14 14:01:23 mint runtime-run[2083143]: [Inferior 1 (process 2074938) detached] Aug 14 14:01:28 mint systemd-coredump[2083160]: [πŸ‘•] Process 2074938 (llama-server) of user 1000 dumped core. Module libgomp.so.1 from deb gcc-14-14.2.0-4ubuntu224.04.1.amd64 Module libgcc_s.so.1 from deb gcc-14-14.2.0-4ubuntu224.04.1.amd64 Module libstdc++.so.6 from deb gcc-14-14.2.0-4ubuntu2~24.04.1.amd64 Stack trace of thread 2074938: #0 0x000079bdbba9ec0c __pthread_kill_implementation (libc.so.6 + 0x9ec0c) #1 0x000079bdbba4527e __GI_raise (libc.so.6 + 0x4527e) #2 0x000079bdbba288ff __GI_abort (libc.so.6 + 0x288ff) #3 0x000079bdbbd3aae6 n/a (/home/jacques/github/llama-server/tq3/runtime/libggml-base.so.0.18.0 + 0x1dae6) #4 0x69672f7365757163 n/a (n/a + 0x0) ELF object binary architecture: AMD x86-64 Aug 14 14:01:29 mint systemd[1996544]: llama-server.service: Main process exited, code=dumped, status=6/ABRT Aug 14 14:01:29 mint systemd[1996544]: llama-server.service: Failed with result 'core-dump'. Aug 14 14:01:29 mint systemd[1996544]: llama-server.service: Consumed 1min 30.289s CPU time.

Hi Jacques! Thanks for the report β€” and glad the new runtime is giving you a real speed jump.

I've reproduced your scenario on our side with Muse-Glimmer-30B-TQ3_4S + the dflash drafter: multi-turn agent traffic with tool schemas, ~30k-token contexts, streaming, 4096-token outputs, and even concurrent requests β€” all clean, no crash. So it isn't a general bug in the current code; your stack trace (SIGABRT in graph_compute_async) points to a CUDA allocation failure during decode, which is environment-specific.

Most likely cause: VRAM exhaustion under agent load. Agent calls (system prompt + tool schemas + conversation history + large max_tokens) consume context far faster than basic queries. After ~15 GB of weights + drafter, a 24 GB card has little headroom left for KV at depth, and decode aborts the moment an allocation fails β€” exactly matching "basic queries work, agent crashes".

To pin it down, could you share:

  1. The log line just ABOVE the stack trace β€” that's the actual CUDA error message (journalctl -u llama-server --since "14:00" | head -60)
  2. Your full launch command (I can see you started with ~46 args β€” flags like -c, -ctk/-ctv, --spec-draft-n-max are the ones I need)
  3. Your GPU + VRAM state when the agent connects (nvidia-smi)
  4. Roughly when it dies β€” first agent turn, or after several turns?

Worth trying in the meantime: lower -c (e.g. 16384) if you have it higher, and -ctk q8_0 -ctv tq3_0 for the KV cache β€” both cut VRAM pressure significantly.

Happy to keep digging once you can capture those!

Sign up or log in to comment