Skip to content

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.

2 points32 comments
Open on Reddit
About this post
Posted
Archived
Score
2 · 67% up
Kind
Text
ID
1tlepwv

Author

1
posts
8
comments
0
media
View profile

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.

6 points

2 3090s? That’s just enough for 1 person.

3 points

How about 4 3090s on a threadripper 3970 with 56gh ram 7*8 sticks

1 points

With vllm I’d say 5 is ok.

0 points

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.

1 points

Very interesting how you will limit cloud agent not to read your whole repository when it is planning

3 points

At 64k max context, he has a great way to limit his agent from reading too much- it literally won't fit.

2 points

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)

-2 points

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

3 points

Short answer: No chance, lol. 

Longer answer: Maybe, with a shitload of optimisation and assuming you're not blasting 5 x 64k prompts simultaneously.

2 points

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.

1 points

I know but our customer won't allow us to use non American ai provider 😔

1 points

There are American providers of deepseek. It’s open weights so it doesn’t necessarily have to be run by a Chinese company. 

1 points

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

1 points

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.

1 points
unknown author

Deleted before we saved it.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.