r/opencodeCLI • u/FlatStill2540 • 1d ago
Two weeks of running OpenCode on a local Qwen on a DGX Spark
For two weeks I've run OpenCode against a local model on a DGX Spark instead of the API for the long test fix loops. Magnitude has a one click connect for opencode so I used that.
I settled on Qwen 3.8 27B at 4-bit. It writes at about 67 tok/s and reads prompts at around 840, so a loop with a fat context still starts answering within seconds. The 35B MoE is faster but it lost track of the task more often in long loops.
Tool calls have held up as long as I keep the tool list short. With every MCP server I have turned on, it started picking the wrong tool around turn 20.
I still plan with the API model and let the local one grind through the loops.
anyone found a local model that stays on task past 30 tool calls?
2
u/ProfessionalPut458 6h ago
past 20 turns its usually a context degradation issue more than the base model capability. are you compacting the message history mid-loop or just letting the raw tool outputs stack up?
1
u/Senior-Assumption864 1d ago
how short do you keep the tool list before it stays on task?
1
u/AggressiveMonk 22h ago
27B is a dense model, you can try Qwen4 35b since it only has 3b active at a time, should help with attention
1
u/CIYUANAIHUB 5h ago
One thing I’d test before switching models: replay the same task twice on the 27B setup with the same compaction settings. In one run expose only the tools needed for that repo, and in the other expose the full MCP list. Record the first incorrect tool selection and what the model had just seen. Then repeat with the short list and change only compaction. That should help separate tool-choice confusion from context growth.