| Coincidentally, I just managed to get Qwen3 to go into a loop by using a fairly simple prompt: "create a python decorator that uses a trie to do mqtt topic routing” phi4-reasoning works, but I think the code is buggy phi4-mini-reasoning freaks out qwen3:30b starts looping and forgets about the decorator mistral-small gets straight to the point and the code seems sane https://mastodon.social/@rcarmo/114433075043021470 I regularly use Copilot models, and they can manage this without too many issues (Claude 3.7 and Gemini output usable code with tests), but local models seem to not have the ability to do it quite yet. |
The prompt was:
"Create a Python decorator that registers functions as handlers for MQTT topic patterns (including + and # wildcards). Internally, use a trie to store the topic patterns and match incoming topic strings to the correct handlers. Provide an example showing how to register multiple handlers and dispatch a message to the correct one based on an incoming topic."
https://pastebin.com/wefw7X2h