How can you stop your model from looping

Reddit r/LocalLLaMA News

Summary

Users report that AI models, including Qwen 3.6 35B, enter infinite loops when integrated with Copilot Chat or Hermes, generating excessive tokens or incorrect tool calls.

So i thought this is a small model issue but when i added a new gpu and i am able to run low mid model like Qwen 3.6 35b q4 or q5 this issue still exists now its not as much as small model but it does break when linking the model to copilot chat or Hermes the model mid task will start loop thinking or looping generating more than 40k token or generating a wrong tool call
Original Article

Similar Articles

I need a model that gets stuck in loops.

Reddit r/LocalLLaMA

A developer seeks a model that frequently gets stuck in loops (e.g., GLM Flash) to test loop detection and recovery features for an agent, aiming to develop heuristics that score loop probability and enable backtracking.

Laguna-S-2.1 "thinking forever" loops seem to be a quantization artifact

Reddit r/LocalLLaMA

The article reports that infinite thinking loops in Laguna S 2.1 AI model are likely caused by quantization artifacts. Switching to an MoE-aware APEX quant (e.g., Myric/Laguna-S-2.1-APEX-GGUF) and using default sampling settings (temp 0.7, top_p 0.95, top_k 20) resolved the looping for most cases. Additionally, framing prompts around tool calls can prevent overthinking.

qwen3.6-27b tools call loop

Reddit r/LocalLLaMA

User reports encountering infinite tool call loops when using qwen3.6-27b, despite adjusting parameters like temperature and top-k.