Model frequently enters repetitive output loops”

#5
by Arkovski - opened

Hi,

Do anybody have the issue with model looping within given steps? Generally it works pretty well imo, but sometimes it just goes into:

"I need to do A" -> "I need to read B" -> "Oh, I am missing C" -> "I need to do A".... And it can hang in such state infinitely.

How do you deal with it and how to prevent it?

I haven't encountered this or got other reports of it. Let's wait to see if others also experience this.

Hello,

I've been experiencing this exact behaviour from this fine-tune. The original model (Unsloth's Q5_K_XL) doesn't seem to behave like that.

The model usually starts normally, then enters this reasoning/action loop where it does 3-5 actions (outputs a paragraph of reasoning text / makes a tool call) and then repeats indefinitely.

My setup:

  • Quant: Q5_K_M
  • Inference Engine: llama.cpp server (45cac7ca7 - gfx1201 Vulkan build)
  • Agentic Client: VS Code using GitHub Copilot Chat (all 3 modes affected)

Setting up the DRY (don't repeat yourself) policy helps when the model tries to output the same structured text more than once. This forces a change in the output tokens which sometimes breaks the loop, but it's not stable and can take multiple rounds. Here are my parameters (not fine-tuned, there might be better values):

{
  "dry_multiplier": 0.8,
  "dry_base": 1.75,
  "dry_allowed_length": 128,
  "dry_penalty_last_n": 512
}

Sign up or log in to comment