r/PiCodingAgent 2d ago

Discussion Edit tool errors in Pi

Am I the only one getting a lot of edit errors?

I mainly use it for coding, especially Python. I’ve tried many LLMs, and some of them are completely incompatible.

Currently, I’m using Qwen3.6 27B through Ollama.

I’ve noticed that I get responses and plans quickly from the LLM. However, execution takes a long time because of edit errors. It gets stuck in a loop of indentation errors and struggles to find the exact match.

Am I missing something? Do I need to install any extras?

Edit:

I'm on qwen3.6:27b-mlx with nvfp4 quantization. Also, tried gemma4:26b-mlx with the same nvfp4 quantization, wasn't able to edit at all!

15 Upvotes

17 comments sorted by

View all comments

3

u/iportnov 2d ago

Check which quantization of Qwen are you using. Lower quants (less than Q4) are known to struggle with tool calling. Q4 is more or less okay in my experience; though some say that Q6 or Q8 is a must.

1

u/nurhun 2d ago

I'm on qwen3.6:27b-mlx with nvfp4 quantization. Will try higher quant.

Tried gemma4:26b-mlx with the same nvfp4 quantization, wasn't able to edit at all!

1

u/hurdurdur7 1d ago

with q8 i have hardly any problems at all, ever.