Poor tools use and endless resoning loop

#20
by qiaozhiyi - opened

Just like what i use it to reverse engineering
截屏2026-04-17 13.56.15

There will be issues with CUDA 13; it's not a problem with the model.

I use MAC not f**k nvdia

I'm using Windows CUDA 12.8, and everything works fine with llamacpp. Try adding the parameter --chat-template-kwargs "{"preserve_thinking":true}"

Same.
My OpenClaw continue to repeat a same sentences and fail to work till context runs out.

Same. Mac/LM Studio/OpenCode. Even in BF16

deleted
edited Apr 18

Qwen models have always had problems with this. Try Gemma 4, GLM-4.7-Flash, or Step-3.5-Flash if you want a model that' s better tuned to avoid it. BUT, with llama.cpp, you can set --reasoning-budget 4096 or something like that, and it will cut off the reasoning if it goes on too long. You can also set --reasoning-budget-message, which will let you end the thinking with something like "OK, I've thought long enough. Let's answer.", which is a fairly natural way for the model to stop thinking, as if it really chose too.

you just need the correct chat template thats all

@JoeSmith245 that's a very good idea!

Hi @JDlondon you mentioned about the correct chat template. Can you provide some pointers to fixing the default one?

Sign up or log in to comment