Building a Hybrid Local/Cloud Coding Agent for 5 Devs — Are 2x RTX 3090 Enough for 64k Context?
Hi everyone,
I'm designing a hybrid AI coding workflow for a small team (~5 developers) and I'd love some feedback from people already running local coding agents/models at scale.
The idea is:
OpenCode as the main coding interface
A custom local router in front of the models
Local executor model (probably Qwen 27B FP8 or similar via vLLM)
Cloud model only used as a planner/architect
The cloud model would generate structured execution plans
The local model would actually implement the code changes on the repo
So the flow would look something like:
Plain text
Developer request
→ Router
→ (optional) Cloud planner via Codex/Claude CLI
→ Execution plan
→ Local Qwen executor
→ Code changes
Important details:
I do NOT want to send the whole repository to the cloud
The planner would only receive:
compressed repo tree
selected files/chunks
task description
The local model would keep full repo/tool access
I want to avoid huge always-on cloud costs
The main reason for this architecture is:
better reasoning from cloud models
lower cost
keeping code local
avoiding massive VRAM requirements from full long-context usage
My main question:
Would 2x RTX 3090 (24GB each) realistically be enough for:
~5 developers concurrently
coding tasks
64k context
vLLM
Qwen 27B FP8 or 4-bit
aggressive use of RAG/retrieval
planner architecture described above
Or is 64k for 5 concurrent developers still too ambitious even with:
FP8 KV cache
retrieval instead of raw repo dumping
planner/executor split
I'd also love recommendations on:
better local models for executor roles
whether MoE models make more sense here
experiences with long-context coding workflows
whether 2x3090 is a dead end and I should target 2xA100/H100 instead
whether anyone already built a similar planner/executor architecture
Curious to hear what people would recommend for a setup like this.
About this post
- Posted
- Archived
- Score
- 2 · 67% up
- Kind
- Text
- ID
- 1tlepwv
32 comments
Use concentrate.ai or OpenRouter and learn what model you wanna host. After that rent GPUs on vast or Tensordock. From there, you’ll know what model and what hardware works for your current needs. Try before you buy.
2 3090s? That’s just enough for 1 person.
How about 4 3090s on a threadripper 3970 with 56gh ram 7*8 sticks
With vllm I’d say 5 is ok.
Nah, you want full context for agentic. OP says 64k tokens but in practice you want 128k. Qwen saves you space since the DeltaNet/conv1d cache is 164MB at BF16 but because of that you want BF16 kv cache for attention. FP8 at worst if you use Turboquant. That’s too big to fit.
Very interesting how you will limit cloud agent not to read your whole repository when it is planning
At 64k max context, he has a great way to limit his agent from reading too much- it literally won't fit.
I was planning to use rag and specific prompt to address exactly what the local model need to do without scanning all the code (I can accept slowness for that)
The most interesting part of the post is dilemma of choosing between 2x 3090 ($2k/48gb) or 2x a100 ($6-8k / 80gb) or maybe 2x h100 (30k/192gb)
3090 could barely make the math, say for one engineer with electricity from solar panels. Keeping enough context in the cache for 5 sessions if 100gb+ area. Initial prompt on Claude code is about 40k, Kilo code 20k, opencode 10-15k.
If privacy is highest priority (no code to blackbox cloud providers) there are other options to consider before building your own hardware setup. You could rent GPU on build.nvidia.com or TPU at Google, setup there vllm and see if that works for your working pattern
If the concerns are easier (no data outside or the country/region) then there are cloud hosted qwen or deep seek, it's open source models and China will not get your code, and you would get decent price per token
64k context isn’t gonna carry you far for coding
this is why I need cloud planner to concentrate the effort in little piece of code
Sure but at that point you’re not really doing things “local”, especially the most important part.
Short answer: No chance, lol.
Longer answer: Maybe, with a shitload of optimisation and assuming you're not blasting 5 x 64k prompts simultaneously.
1 person? Yes. 5 people? No.
You’re doing the wrong thing though. Electricity cost per token for Qwen 3.6 27b on 3090s is more expensive than Deepseek V4 price per token.
If you’re trying to save money, just use Deepseek V4 via API. It’ll be smarter AND cheaper than electricity.
I know but our customer won't allow us to use non American ai provider 😔
There are American providers of deepseek. It’s open weights so it doesn’t necessarily have to be run by a Chinese company.
for all who said that 2x3090 is not enough, we are experimenting this setup on runpod at this moment and running q8 context and fp8 model. with 2 developer the setup is performing well but I would like to know something about your experience with more developer so I'm here to accept any kind of advice
Just pay for a cheap cloud subscription it will be infinitely better than this
Hi there, your set up matches mine and I manage to run full context vLLM on 4bit awq queen 3.6 27B, happy to help if you have specific questions.
I will be making a post of how I found my optimal ai workflow soon in either case.
Deleted before we saved it.
Waste of time. You'll barely get decent performance for 1 person, let alone 5
You can look at the following repo. It claims 4 concurrent users at 262k context. https://github.com/noonghunna/club-3090