You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Poor Performance and High Resource Usage with Ollama Models in opencode #4182
Installation Method: Installed via choco install opencode
Model Used: hf.co/unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q4_K_M
Description:
When using Ollama models through opencode, the performance is significantly degraded compared to using the same model directly with Ollama. Specifically:
Token Generation Speed:
Ollama (direct): ~16 tokens/second
opencode: ~0.5 tokens/second or much slower
Resource Usage:
CPU and GPU usage are much higher than expected when running the same model via opencode, even though the performance is much worse.
OpenCode version
opencode v1.0.55
Steps to reproduce
Install opencode via choco install opencode
Run a large language model (hf.co/unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q4_K_M) using opencode
Compare token generation speed and resource usage with direct Ollama usage
Observe significantly lower performance and higher resource consumption
Screenshot and/or share link
Even with the addition of a request from /opencode/src/session/prompt/qwen.txt, ollama gives 12 tokens per second, while opencode is around 0.5 or less.
Is there a way to measure token speed in opencode?
Activity
github-actions commentedon Nov 11, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Nov 11, 2025
Idk how opencode could be affecting your token speed, maybe if you are doing openai compatible endpoint it buffers? Idk