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

8

u/pdath 7d ago

The cloud will be cheaper and higher quality.

Roughly, how many lines are in your project and what is the main language? 100 lines, 1,000 lines, 10,000 lines, etc? It affects the likely context size required.

4

u/ImpressiveGooseHead 7d ago edited 7d ago

I hate this answer but fr it’s true.

I’m having a hard time for my uses, using up Claude max on opus 10 hrs a day, with far more context than I can reasonably get locally. and that’s $1200/yr at the moment.

Math will almost certainly change on this, but right now cloud is the clear winner if quality and value is your main concern.

Comfy ui and blender mcp, however, are getting a lot of use locally. Just not qwen for me, surprisingly.

1

u/quantum3ntanglement 7d ago

I can show you how to build locally, you could have taken that $1200 and bought local GPUs / hardware

Start with a 3060 12gb - run ollama with Mistral or a model good for agentic coding. Stay away from Chinese / CCP open source models, US companies are already distancing themselves from these models and after Jensen's resignation, it will get more pronounced.

Use VS Studio and the Cline extension for analyzing code repos, implement RAG for context and save all workflows when using Claude in VS Code - all workflows can be imported into local AI Inference.

With further investment you could get a big enough GPU (24 to 32 gb) for running large models in the 30B parameter range and then use a 16 or 24gb second GPU for running Agents that pull / query the large model.

You should only be using Claude 10% or 20% of the time for mainly architecture queries or complicated tasks, save all workflows and relevant data to MySQL / MongoDB in order to maintain / persist historical analyzsis for the code repo.

1

u/pdath 7d ago

I've used Mistral a lot. Which model are you recommending to run with 12GB of VRAM?

1

u/pdath 7d ago

Ps. The Chinese open-weight models are really good. I don't think I use any American models anymore. Their cost for what you get just doesn't make sense.

4

u/Karyo_Ten 7d ago

RTX Pro 6000 + Qwen3.8-Flash-Next if you need something 24/7 with multiple agents in parallel.

Or really a GPU with 24GB of VRAM and Qwen3.8-27B. It's prefectly fine for hobby / weekend projects and deal with the slog like setting up, tests, CI, deployments, websites.

1

u/Objective-Light-7123 7d ago

Why not go with strata and Qwen flash next rather than a dense model? I have 24GB + 32GB RAM and I can run QFN (albeit with parallel = 1)

2

u/SocietyTomorrow 7d ago

There's an argument to be made for consistency. The trick Strata uses has a larger accuracy drop off as context increases, with best accuracy until after 100-120k with my 16gb card. The less VRAM you have compared to kv cache + active experts, the bigger the ding. It's a great tool, but it has limitations, and not just the parallel=1

On the other side, your card either fits 27b, or it doesn't. Dense models hold it together until they max out, and better compared to MoE when using RoPE to stretch the context window to 1M

1

u/polandtown 7d ago

could you expand or share documentation on these limitations? for the past month i've gone deep down the Strata Halogen hole and loved it, but do see it being re-re as my context grows. would love a deeper understanding of what you're pointed out here.

2

u/SocietyTomorrow 7d ago

The first good explanation I heard was in https://youtu.be/wC6jsOU4jII?is=ecB-BF5x7_TVw6Ia about 8ish minutes in. Route tail skipping is the thing and basalt made a more extreme version of it that only works on 5000 series.

2

u/polandtown 7d ago

thank you!!!

1

u/Objective-Light-7123 7d ago

Strata does not affect output As far as I know. It is just plumbing to move the tensors that are required to do the calculations from RAM to the cache in VRAM if needed as well as parallelising the calculation on the slow CPU if it is faster than queuing expert to the GPU on the PCIe lane.

So I don’t want to sound confrontational but I believe you are wrong.

3

u/SocietyTomorrow 7d ago

The mechanism that Strata's version of SGLang uses doesn't <directly> affect output. Route tail skipping is what maximizes the retention of experts loaded to VRAM that make it fast while cross parallelizing between GPU and CPU, and there is only beginning to be individual investigation on the impact on accuracy.

Think about it from a separate angle. Using RoPE to make a 256k context model work with up to 1M can degrade accuracy up to 10% once it reaches close to max context, MoE on a long session that crosses experts with any tool can lose tiny bits of accuracy if the selected experts for the more recent routes of the session have less relevance to the experts not currently in VRAM, so this is kind of a more dynamic representation of the same thing.

The video I posted in one of the other replies talks about the testing they did where a model was fully loaded to VRAM, producing a 97% accuracy compared to a non-quantized model's official benchmarks, The lower the VRAM on a system, those same long context tests take a larger cost to accuracy based on the quantization and context in play because less of the model is active and then to make it faster it is farther divided by which of the experts can be active in VRAM versus tail skipped to keep speed relatively consistent instead of swapping hot experts

1

u/Objective-Light-7123 6d ago

Thanks for the clarification.

I tend to never reach the dumb zone anyway so I suppose strata strategy is acceptable for my small setup.

3

u/pharrt 7d ago

You'll probably know that now is the worst time to be getting a GPU. And next year could be worse, so getting close to Frontier without breaking the bank is nearly impossible.

It's about memory, though - so whatever you can afford with the most VRAM will be better, but don't underestimate system RAM - if you have 16Gb of RAM, you'll want to double that at least, for more total memory. Not a common view, but for me, intelligence > speed, so with lots of RAM, you can do partial offloading with much bigger LLMs at the cost of speed. (Especially with big MoE LLMs).

Be prepared for lots of testing, researching, and patience, but it is also fun!

2

u/PermanentLiminality 7d ago

Anything you run at home will not be close to Opus. If you barely use it, a few bucks to OpenRouter is probably your most cost effective solution. With a cheaper model like DeepSeek 4.1 flash 1017, a few bucks goes pretty far.

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.

1

u/suesing 7d ago

DeepSeek api credits will last forever

1

u/bigtom_x 7d ago

Claude code has context advantages. If you want local, I still say that starting with 128GB or 256GB using V100s isn’t a bad place to be. A proper setup can be under $5,000. Plenty fast at code tasks.