I've been using Qwen 2.5 Coder
(bartowski/Qwen2.5.1-Coder-7B-Instruct-GGUF) for some time now, and it has
shown significant improvements compared to previous open weights models.
Notably, this is the first model that can be used with
Aider. Moreover, Qwen 2.5 Coder has made notable strides
in editing files without requiring frequent retries to generate in the proper format.
One area where most models struggle, including this one, is when the
prompt exceeds a certain length. In this case, it appears that the model
becomes unable to remember the system prompt when the prompt length is above ~2000 tokens.
Which backend are you using to run it, and does that backend have an option to adjust context size?
I noticed in LM Studio, for example, that the default context size is much smaller than the maximum that the model supports. Qwen should certainly support more than 2000 tokens. I'd try setting it to 32k if you can.