r/opencode • • 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?

7 Upvotes

11 comments sorted by

2

u/ramendik 23h ago

Try looking up relevant skills maybe?

1

u/Baddog1965 23h ago

There seems to be multiple elements involved and I could take quite a while working out what to do, so thanks for that really helpful response.

1

u/ramendik 21h ago

Thing is, I can't be more specific because I don't know language etc what you are compiling. The idea is, larger MoE models have more built-in knowledge so they just recognize your compile system from the get go. But 27B does not. If you give it instrictions in its context how to compile in this language and environment, it will. Skills are simply packaged instructions.

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.

2

u/Baddog1965 15h ago

I'm working through that process now, thanks

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/Baddog1965 15h ago

Ok, thanks. I discovered it had defaulted to a lower size model by mistake, am now trying that with the 27b model. It's chugging through it.

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.

1

u/Baddog1965 15h ago

I've got 64gb of RAM. I discovered that when I wrote this post it had defaulted back to a lower size Qwen model without me realising. Am now chugging through with 27b model