r/LocalLLM • u/benreben • 4d 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:
- 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?
- 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!
10
u/willee_ 4d 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
4
u/paulqq 4d ago
move OS systems out of vram and to cpu. abou tthe model iam on the qwen side.
4
u/homen3 4d 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.
3
u/Nomski88 4d ago
27B maybe QFN 3bit XXS. I was in the same exact boat and went from 32 > 64 to finally 128GB
2
u/Christopher_8930 4d ago
Bonsai 2 2q on their fork. Kv = Q16/Q4.
1
u/TheFuckboiChronicles 4d 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/sanosuke1861 4d ago
I have somewhat of the same setup as you do (difference is the CPU). For my small vibe coding projects I just use Strata with different models to play around with.
Qwen 3.8 FN coder-IQ1_M
inkling-2-mini
Qwen 3.8 FN IQ3_XXS (my main model most of the time.)
Qwen 3.8 FN Q2_0
Qwen 3.8 FN swift-IQ3_XXS
My main harness is OpenCode currently. No idea what would best work for you and I am sure my setup is also anything but perfect but it works for me so far. :)
1
u/bbqfetus 4d ago
Ninfer-all. Ninfer builds only work for Nvidia cards, built with CUDA kernals instead of general purpose ones, and has quants that aren't available on other inference servers, like mxfp8, rk8v4, or rk4v4e8 and you want to rope qwen to a million token context.
There's also a loop adapter that just came out for qwen 3.8 27b, increasing its scores often by 10 points on benchmarks while cutting reasoning tokens.
https://github.com/iamwavecut/ninfer-all
1
u/paq85 4d ago
Ninfer, kv cache at fp8 for keys, nvfp4 for values. 240k context. 8gb ram for prompt cache.
1
u/StatementWrong4453 4d ago
Fitting the model plus KV cache inside the 5090 is the whole game. A coder model in the 14B-30B range at Q4/Q5 leaves real KV headroom for Kilo Code's context demands, and it beats a bigger model that spills to CPU. For engines, llama.cpp is fine on a single GPU.
1
u/batmanButthole 4d ago
Inkling 2 mini?
1
u/Asleep_Literature_70 4d ago
You can run QFN with that using rustingstrata or strata.
1
u/pdath 4d ago
I would have thought that would run a Q5 version of 27B with a 128k context without issue.
I've tried Q4, and although it is faster, I find the code quality and "looping" not worth the extra speed - and it costs me more time fixing up what it produces.
I would suggest pairing it up with OpenCode TUI. It's been a good combination for me.
If you got an extra 32GB of system RAM (total 64GB), I would take a look at Qwen 3.8 Flash Next. Even better code quality than 27B.
I would not focus so hard on tokens/s. I would focus on the total time to complete the job.
Otherwise, just go for a 1-bit quantised model. It will be blazingly fast, but you will spend a considerable amount of time fixing bugs.
1
u/Kemerd 4d ago
Honestly man, pick up a side gig and buy more RAM. The time spent isn’t worth it trying to min max with 32GB imo
1
u/alconaft43 4d ago
basalt + qfn or 27b