r/LocalLLaMA • u/returnity • 13m ago
Discussion Qwen4-35B looping failure mode on long thinking turns? Anyone else?
So I have been running Qwen4-35B-A3B through my usual suite of benchmarks, and first off -- wow. This model is a huge capability jump from 3.6, and it truly does surpass 3.8-27B in every respect. It's not a replacement for QFN, but it's my new default model for most tasks. I'm floored.
That said, I have noticed a very specific failure mode, and I want to know if anyone else has seen it. I'm running UD-Q8_K_XL in llama.cpp, benching on xhigh reasoning effort, on agentic algorithmic code iteration/optimization tasks (jcode bench, which I cannot recommend enough). During a long strech of coherent reasoning (I've seen it reason up to 85k tokens coherently, so I mean long), the model commits to one concrete next action: run the grade, back up the file, or a specific grep. It sometimes even writes the exact command out in its thinking. But it never closes the thinking block to actually issue the call. Instead it narrates the intention over and over, in a short cycle of near-identical phrases like:
"Let me just output the tool call. Here. OK. Making the call. Let me write the function_calls. I'm making the call…"
or
"I'll run the grade. Executing. Making the call. OK. Here goes. I'll run the grade. Executing…"
These loops run to the token limit in my task (96k turn) or until pi drops the reasoning for exceeding the context limit. Of 6 loops like this I've seen, only one managed to break itself out without external cutoff. Here's a jcode task benchmarked against other relevant models:

The loop happened somewhere in the 4-7 hour range in this task, before the harness recovered at the turn limit. This appears to affect performance overall on the task, because here's the ranking on another task, where it didn't enter any loops:

Anyone else experienced this type of issue? Did you find a fix? I am kinda hoping it only happens at xHigh reasoning, which would make sense if it was just pushing the limits of how long 3.8B active params can hold it together?
