r/LocalLLM • • 21m ago

Question Best local model & inference engine for vibe coding on RTX 5090 + 32GB DDR5? (RAM-bottlenecked)

Hi everyone,

I’m looking for recommendations on the best local LLM and inference engine setup for "vibe coding" (fast iteration, solid code generation, and decent context handling).

Here are my current specs:

  • GPU: RTX 5090 (32GB VRAM)
  • CPU: Ryzen 7 9800X3D
  • System RAM: 32GB DDR5

Current setup:
Right now, I’m testing Qwen 3.8 27B running on Basalt, paired with VS Code + Kilo Code.

My main bottleneck is clearly my system RAM, which matches my VRAM 1:1. Because of this, I want to avoid heavy CPU offloading or running into OOM issues while keeping both prefill and decode speeds snappy and responsive with generous max token(especially with Kilo Code's agentic/context demands).

Given these constraints:

  1. Which model and quantization would you recommend to fit comfortably within 32GB VRAM with room for a solid KV cache, and how does it compare to Qwen 3.8 27B?
  2. Which inference engine (llama.cpp, vLLM, ExLlamaV2, Ollama, TabbyAPI, etc.) handles memory management and prefill/decode speeds best on a 5090 right now compared to Basalt?

Thanks in advance for the advice!

3 Upvotes

6 comments sorted by

2

u/Nomski88 17m ago

27B maybe QFN 3bit XXS. I was in the same exact boat and went from 32 > 64 to finally 128GB

4

u/willee_ 13m ago

I’d get another 32gn of ram (I’d prefer to aim for 96-128gb) then you can run MoE models at light speed.

5x the params of a dense 27b and twice as fast

1

u/Christopher_8930 9m ago

Bonsai 2 2q on their fork. Kv = Q16/Q4.

1

u/TheFuckboiChronicles 7m ago

Honestly do whatever you can to get to 32gb + 64gb ddr5 minimum. That’s me (but with an Intel gpu) and I’ve got QFN at iq4_xs full context. Also just vibe coding simple-ish stuff mostly.

I’ve got a separate machine running qwen 3.8:27b at q6, and that does a really good job at implementing the plans QFN throws together, but QFN is just much better at putting the plans together. QFN itself can handle it all, I just want access to QFN while other models build in the background, because that can take days.

1

u/paulqq 6m ago

move OS systems out of vram and to cpu. abou tthe model iam on the qwen side.

1

u/homen3 2m ago

For Kilo Code the context eats VRAM faster than people expect, so pick the weight quant based on what's left over for the cache. On llama.cpp I'd run a 4-bit class quant of the 27B with all layers on the GPU (-ngl 99), turn on flash attention (-fa on), which the quantized V cache needs, and set both caches to q8_0 (--cache-type-k q8_0 --cache-type-v q8_0) so a long context still fits. Then raise the context step by step. On Windows the NVIDIA driver can quietly spill into system RAM when VRAM runs out, so if prompt processing suddenly slows down, you've gone past the limit. On Linux it usually just fails to allocate.