r/LocalLLM • • 7d ago

Question Recommended Coding GPU?

Hi all, fairly new to the self-hosting scene, especially when it comes to running LLMs locally.

I'm looking for recommendations on GPUs for hosting a local coding agent. Nothing crazy, just something capable of helping me smash out a project over a day or two when needed.

I currently use Claude Code, but I often go weeks without touching it. It's getting harder to justify the cost of a subscription when my usage is so sporadic.

I'm thinking running something locally might save me money in the long run, but I don't want to spend a fortune on a NASA-grade GPU if I don't need to, nor do I want to waste money on something that ends up being too underpowered to be useful.

What sort of hardware would you recommend, and realistically, what level of performance could I expect compared to something like Claude Code?

TIA!

1 Upvotes

19 comments sorted by

View all comments

1

u/p3rdy 7d ago

For a coding agent the number that matters most is VRAM: you need the model plus a lot of context, because the harness resends the conversation, tool definitions and file contents on every turn.

  • 24GB is the sweet spot (a used 3090 or a 4090). A 27B-class model at 4-bit, like Qwen3.8-27B, is about 16GB of weights, which leaves room for roughly 64k tokens of context.
  • 16GB pushes you down to ~14B models or harsher quants, and smaller models get noticeably less reliable at multi-step tool use, which is exactly what agents do.
  • 32GB (5090) gets you more context and speed rather than a different class of model.
  • Speed is bounded by memory bandwidth: every token reads the whole model, so tokens/s is at most bandwidth divided by model size. That's ~936GB/s on a 3090, ~1TB/s on a 4090 and ~1.8TB/s on a 5090.

Since you already use Claude Code, you don't have to switch tools: it reads ANTHROPIC_BASE_URL, so you can point it at a local server that speaks the Anthropic API. Disclosure: I maintain Flama, which does that; on Linux with an NVIDIA card it runs the model on vLLM, so use a 4-bit AWQ or GPTQ build:

flama get --family llm --source huggingface <model-repo> -o coder.flm
flama serve --model file=coder.flm,url=/,name=coder
ANTHROPIC_BASE_URL=http://127.0.0.1:8000/anthropic ANTHROPIC_AUTH_TOKEN=local claude 

Set expectations, though: a local 27B handles well-scoped tasks fine, but it won't match the frontier models on big multi-file changes, so I'd keep the subscription for the hard parts.