Why do local LLMs keep breaking JSON output? Reddit weighs fixes from JSON mode to constrained decoding

nomadrone · reddit · 2026-11-26

A local-LLM user vents about a persistent pain point: models understand the task and return the right content, but mangle the JSON — extra sentences, missing fields, parser-breaking output — which is painful in real workflows.

The thread surveys the common mitigation paths and asks for community experience: prompt instructions, JSON mode, constrained decoding, or validate-and-retry pipelines. It also asks whether smaller models are notably worse at structured output and whether any small local model is surprisingly reliable.

Original post →

More from Infra

Infra channel →