How I stopped Qwen2.5-Coder-14B from hallucinating UI & workflows by pairing it with a deterministic C# ValidationResolver (running on a single 24GB A10)
retained text
Local \`qwen2.5-coder:14b\` on a 24GB NVIDIA A10 generating an enterprise form in real time—without writing a single line of raw HTML or SQL. To eliminate hallucinations, the model is locked into a strict DSL and every output has to pass a deterministic C# \`ValidationResolver\` (bottom right at 0:10) before the Human-in-the-Loop button unlocks and renders it onto the canvas. All raw vs. healed outputs are automatically scored and exported as SFT/DPO \`.jsonl\` pairs for future fine-tuning.
document fetched 2026-10-27 00:43 · canonical https://reddit.com/r/LocalLLaMA/comments/1xfjdss/how_i_stopped_qwen25coder14b_from_hallucinating