Model reaches correct answer internally but won't commit — repeated web_search loops on small reasoning puzzles
Setup
- Build:
54b36ed(main) - Model:
DeepSeek-V4-Flash-IQ2XXS-w2Q2K-AProjQ8-SExpQ8-OutQ8-chat-v2-imatrix-0731.gguf(0731 weight release, IQ2XXS/w2Q2K routed experts) - Runtime:
ds4-agentvia./agent.sh, ctx 131072, Metal backend on an Apple Silicon Mac (M5 Max) - No DSpark/MTP in use
Symptom
On small logic-puzzle prompts, the agent burns a large amount of reasoning (~30k tokens) and, based on the reasoning trace, appears to arrive at the correct answer internally — but instead of committing to a final response it repeatedly invokes web_search_call to try to verify the answer, and its confidence in its own derived answer never stabilizes.
Two test cases:
-
Numeric transform puzzle:
11118888888855 -> 118885 | 79999775555 -> 99755 | AAABBBYUDD -> ?Here the run eventually stopped on its own — it found an answer via web search and checked its own derived answer against that, rather than trusting its internal reasoning.
-
Lateral-thinking riddle:
A feather → Heavy A ton of bricks → Light A gold bar → Heavy A secret → ?This one never stopped by itself — had to be manually interrupted. The model appeared to keep flip-flopping between candidate answers, unable to settle on which one was correct.
I quantized Qwen3.6-35B independently a while back and saw a similar pattern there too (excessive deliberation without commitment on small puzzle-style prompts), so my guess is this points at a routing failure in the MoE experts rather than something specific to this model or quant — possibly aggravated by the low-bit (IQ2XXS/w2Q2K) routed-expert quantization here. Not sure if this is fixable or just an inherent cost of this quant tier, but wanted to flag it in case it's useful data.
I think this current quants are susceptible to loops. I experienced this today with pi running on the q4 model (DeepSeek-V4-Flash-Q4KExperts-F16HC-F16Compressor-F16Indexer-Q8Attn-Q8Shared-Q8Out-chat-v2-imatrix-0731.gguf). Asked the cloud API deepseek-v4-flash to diagnose the problem:
What happened
Both sessions on Aug 2 ran the ds4 provider — local DeepSeek V4 Flash, the antirez Q4 quant
Session 1 (2026-08-02T01-56-59Z): You asked via Telegram why the agent "knows the time better than the Hermes agent." The model then entered a tool-call loop for 7.5 minutes (02:02:05 → 02:09:37), 39 consecutive assistant turns, each one issuing a grep/rg
search through pi's node_modules and dist looking for "where the current date gets injected into the system prompt." Its thinking
repeated the same pattern ~25 times: "let me check where the date is injected" → grep → "not finding it, let me check X" → grep.
The smoking gun is at 02:03:59 where it thinks "That search was noisy. Let me just directly answer the user." — and then issues
another tool call instead of text. It never converged. You had to type /stop.Session 2 (2026-08-02T02-10-23Z): You restarted and told it "you got stuck in a loop." The model immediately started looping
again — reading heartbeat.ts, extensions docs, agent-session source, repeating "let me understand the situation" each turn instead of answering.Verdict: both, in different roles
The quantized model is the one that loops. This is a classic convergence failure of a small quant: the model can't make the "I
have enough info, stop calling tools and answer" decision. It gets stuck in action-mode — 39 tool calls to answer a question that
needed zero. A full-precision/stronger model would have answered after 1–2 searches. The Q4 quantization degrades exactly this
stop/decision ability. Also notable: the extension registers it as reasoning: false, but the model still emits thinking tokens
that drive the loop.
can you share the exact prompt?
The answers
11118888888855 -> 118885 | 79999775555 -> 99755 | AAABBBYUDD -> ? ABD
A feather → Heavy A ton of bricks → Light A gold bar → Heavy A secret → ?
Heavy is answer, as in emotionally heavy