Description
For local models through Ollama, OpenCode uses CPU processing instead of GPU on Linux (Ubuntu). Running Ollama standalone, it uses GPU, is there a way to force GPU usage when using command opencode serve?
Plugins
No response
OpenCode version
No response
Steps to reproduce
- opencode serve
- enter prompt
- select local model through provider Ollama
- press enter to initiate processing
OpenCode then defaults to CPU processing instead of GPU.
Screenshot and/or share link
No response
Operating System
Ubuntu 26.04
Terminal
Terminal
Description
For local models through Ollama, OpenCode uses CPU processing instead of GPU on Linux (Ubuntu). Running Ollama standalone, it uses GPU, is there a way to force GPU usage when using command opencode serve?
Plugins
No response
OpenCode version
No response
Steps to reproduce
OpenCode then defaults to CPU processing instead of GPU.
Screenshot and/or share link
No response
Operating System
Ubuntu 26.04
Terminal
Terminal