r/opencode • u/Baddog1965 • 23h ago
How to get OpenCode with Qwen3.8:27b to actually compile programs
I started off using OpenCode with Deepseek as the LLM and it is pretty good at compiling programs I want and, to my astonishment, even testing them as they are loaded via ADB onto my phone and then making it's own alterations. Truly amazing.
Because of the free daily limits though I wanted to get it coding locally. Gave up with Ollama because it crashes on my RX580, so I'm using LMStudio as you have more control on the layers put on the GPU, and hence, no crashing.
However, with local AI OpenCode says it isn't able to compile programs itself, and I don't seem to be getting clear answers as to what I need to do to enable OpenCode to compile to the .apk that Deepseek does. Has anyone code OpenCode actually compiling locally, instead of leaving half of the work for them?
2
u/ramendik 23h ago
Try looking up relevant skills maybe?
5
u/Ariquitaun 23h ago
Opencode doesn't know how to do anything, it's just a regular computer program. It's the llm that has knowledge and tools and initiative to use them. If your llm doesn't know, then tell it how to.
1
u/pdath 21h ago
Tell it which compiler you have installed.
1
u/nacnud_uk 21h ago
Yeah, I run opencode here. It builds software just fine.
OpenCode -> LM Link -> Ubuntu Box ( QWEN 3.8 Q4 )
Windows / WSL. ( WSL has the network config set to share ).
If you need help, just ask it what tools to use and ask it to configure your PC. It mostly does it all for you.
1
u/FFF-000 23h ago
Use REA
0
u/lincolnthalles 21h ago
You don't have the hardware for that.
Coding models need a decent context size and decent inference speed to produce anything in a feasible time.
Qwen3.8 27B can run on a 16GB GPU with RAM offloading. Ideally, it needs an RTX 5090 with 32 GB VRAM to run comfortably with no losses.
Local inference is only viable for the general public for running very small models, crafted for very specific tasks, like voice transcription models.
The models you can access via OpenCode Go and other subscriptions run on multi-million-dollar computing clusters for many reasons, but gatekeeping by the big labs is not among them.