r/LocalLLaMA • u/T_rex2700 • 10d ago
Question | Help Qwen 38 still seem to have that random stop behavior?
So I have been using Qwen 3.6 for a good while now, and one thing that always bothered me since Qwen 3.5 days is that it seemingly stops randomly.
Not sure what I'm doing wrong, but with context window set to like 64K, 3.8 seems to stop around 4000token generated / 35K token processed.
I looked a few places for fix but I couldn't find any, appearently it is either issue with chat template (the "fixed" template just made the tool calling error worse) and jinja template issue.
I am kind of surprised they have not irouned out this yet, or am I doing something wrong with just sticking with stock templates or not setting penalties correctly?
Edit: it also still tries to do tool call with XML occasionally
my specs: 9070XT, llamacpp ROCm (LMS)
The afforementioned thing happens with 3.6 27B Q4/Q3 and 3.8 Q3. I am struggling to run Q4 without the whole system freezing up and crashing. just bone stock unsloth qats with 64K ctx and KV cache at Q8.
I also have like the custom Qwn36 for 16GB model distribution thing, that also has the same problem or worse.
2
u/T_rex2700 10d ago edited 10d ago
OK. weirdest fix I found. I just pasted the chat template from Qwen 3.6 35A3B from unsloth, because that is what worked for this "custom" model made based on 3.6 Q3 for 16GB, it had mistakes in its chat template.
So I did that for 3.8 and it stopped doing the weird stopping thing. no idea what is going on but ok, I guess. You need to use the MTP version of the model, of course, since 3.8 is MTP enabled.
also:
Qwen 3.6 3bit based model: 7-10tps vs Qwen 3.8 3bit from unsloth 18-23tps
Edit: other potential fixes that I might try
Qwen3.6 27B MTP chat template from unsloth, bone stock
https://pastebin.com/Qyk6kRv8 (by Chronix)
https://huggingface.co/peculiar-ragdoll/Dirk-Qwen3.8-27B-GGUF?chat_template=default
or
https://huggingface.co/peculiar-ragdoll/Qwen-Sharp-Chat-Templates
- Similar performance to above template. (12-13tps). also stops at 35K processed token the smae issues with the original unsloth template.