OpenCode silently sends wrong top-p for Qwen models, hurting output quality
JadedSession · reddit · 2026-08-18
A Reddit user found that coding agent OpenCode always sends top-p=1.0, while Qwen models expect 0.95 (thinking) or 0.80 (no-thinking). The bug is invisible in llama.cpp and derivatives, but ninfer logs sampler settings per request and auto-configures correct ones.
The commit that introduced the change was nominally for another fix with no explanation. There's no per-model/provider override; the workaround is setting "build": {"topp": 0.95} in the agent config, which affects all models.
More from coding & agent
- "Harness to Weights": Folding Agent Scaffolding Into a Base VLM Without Gradients — YangYou1991 · 2026-11-30
- Qiaomu UI Learn ships as Antigravity plugin with 13,500+ real UI references for agent replication — vista8 · 2026-11-30
- DHH cracks Linux deep sleep on Zenbook A16: 0.16W overnight draw — cgarciae88 · 2026-11-30
- Sakana AI open-sources Agentic Scientist, pushing toward self-improving AI researchers — SakanaAILabs · 2026-11-30
- Blogger migrates Ghost blog to self-hosting in hours with Claude — kevinakwok · 2026-11-30
- Dev turns iPhone into an MCP server so local LLMs can read your phone data — Solid-Strawberry-333 · 2026-11-30