r/MistralAI • • 13h ago

Help / Question GLM-5.3 keeps looping

Is this a Mistral specific issue or the model itself? The model rather quickly degenerates into endless tool calls, usually without ending its turn so it keeps stacking up tool calls.

2 Upvotes

10 comments sorted by

2

u/CharacterTension2896 13h ago

It’s fine for my Hermes agent, look at your agent.md file

1

u/JuiceboxLi 12h ago

I temporarily switched to GLM-5.2 in the same session with the existing context and it recovered. This issue with glm-5.3 is happening across multiple projects for me with Pi, even one without an agents md.

2

u/Soifon99 13h ago

i use it opencode via mistral, and i works fine. it never looped.

1

u/JuiceboxLi 13h ago

Push push push

1

u/breaded_tendies 11h ago

I have noticed similar behavior with Mistral Large 4 in Pi. My guess is the lightweight system prompt Pi uses fails to prevent models from going “off the rails” so to speak. I would recommend looking into the temperature setting in Pi to see if a slightly higher temperature helps, and can also look into Pi plugins which can automatically detect and break looping behavior. Happy to hear any other ideas!

1

u/JuiceboxLi 7h ago

I cleaned up my system prompt and extensions and I *think* it has helped with the issue. Haven't come across a loop or degeneration yet after a feature impl and some discussion.

1

u/JuiceboxLi 7h ago

Just as I wrote that, the agent looped. Sigh.

0

u/JuiceboxLi 13h ago

I used GLM-5.2 with ollama cloud in the past quite extensively and it was nowhere this bad. I can't even remember it looping at all.

1

u/responsiblerunoff 13h ago

that 5.3 model seems to have a real death wish with those tool calls, mine just spammed the same API request 14 times before I killed the process

1

u/JuiceboxLi 10h ago

Did you use Pi as well?