Gemma 3 27B Fails at Local Coding: File Edits Break Due to Indentation Mismatches

DanTup · reddit · 2026-08-01

A developer running Gemma 3 27B locally (bf16 precision, served with vLLM) has identified a significant flaw in the model's coding capabilities.

Specifically, when attempting to edit files, the model frequently provides incorrect "original content" (particularly messing up indentation). This causes code editing harnesses to reject the modification because the exact text doesn't exist in the file, trapping the model in an infinite retry loop.

The user reproduced this issue across multiple harnesses like Goose, Copilot, and Codex, suggesting it is a shortcoming in the model's ability to accurately recall context rather than a tool-specific integration problem.

Original post →

More from Models

Models channel →