r/LocalLLM • • 1h ago

Question Best local models for Python & agentic coding on 4GB VRAM + 24GB RAM?

Looking for recommendations on a 100% offline/local stack for my older laptop without hitting OOM errors or sluggish speeds.

Hardware:

  • Laptop: ASUS TUF A15 (Windows 11)

  • CPU: Ryzen 7 4800H

  • GPU: GTX 1650 (4GB VRAM)

  • RAM: 24GB DDR4

  • Storage: 256GB NVMe SSD + 1TB HDD

Questions:

  1. Python & Agentic Coding: For local coding and tool-calling (OpenCode, Cline, Aider via Ollama/llama.cpp), should I stick to 3B–7B dense GGUFs fully in VRAM, or offload larger quantized MoE models across CPU + GPU?

  2. Tool-Calling Reliability: Which specific models and quantizations handle tool use reliably within a 4GB VRAM ceiling?

Thanks for any model names, quantizations, or launch flags that work well on similar specs!

4 Upvotes

2 comments sorted by

1

u/eagle2809 1h ago

With a 4GB VRAM ceiling and 24GB system RAM, keeping dense models in the 3B 7B range quantized around Q4 K M (or Q4 o for tightest memory) generally feels much smoother for agentic loops than heavy CPU/GPU MoE offloading, since token generation slows down noticeably once layers spill into DDR4—especially when Cline/Aider/OpenCode keep growing the context window. For tool-calling reliability on tight VRAM, smaller instruct models with strict JSON/schema formatting tend to behave more predictably than oversized models crawling on CPU.
I've also been curating lightweight AI setups and model/tool picks for low-VRAM machines over on libreaideck.com if you want to compare low-resource workflows alongside whatever benchmarks folks share here.

1

u/relzzyfr 3m ago

You can try models like gemma-4-E2b or gemma-4-e4b if you can fit it
But hey , ill be honest with you , i think its better to stick with cloud models for now until you can upgrade your gpu to atleast 24 gigs , i have 12 gigs of vram and im unable to find a reliable model of local coding that can even perform a fraction of what cloud models like gemini in antigravity and deepseek api are able to give , and 4gb is way to small to run anything decent , i would say try to exploit cloud models as much as you can for now before their prices start going up !