<think> tokens leaking into output with llama.cpp

#6
by MonekyDBot - opened

Hey, ran into something weird — the blocks are leaking straight
into the output instead of being hidden. So the response literally starts
with The user says "yo"... and then the actual answer after .

Looks like the embedded chat template doesn't tell llama.cpp this is a
thinking model, so it shows up as thinking = 0 on startup even with
--jinja. Tried --chat-template qwen3 but that completely breaks generation.

Would be great if the template could be updated in the GGUF so llama.cpp
can properly separate the reasoning trace. Thanks!

Screenshot 2026-06-28 at 2.43.41 AM

Known issue on Qwen3 based models

Sign up or log in to comment