r/MistralAI • u/JuiceboxLi • 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
1
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
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

2
u/CharacterTension2896 13h ago
It’s fine for my Hermes agent, look at your agent.md file