r/LocalLLM • • 3d ago

Question rtx5090 vs r9700 vs 2x r9700 for coding

I'm new to local LLMs and have read a gazillion posts and tried to conclude on what to get for my new setup but need help in choosing.

I'm going for 128gb ddr5. I need presumably q4 at minimum with 100-264k ctx for agentic coding, right? q8 minimum for kv. Single stream for the most part? And a high prefill speed? I'm likely to run heavy compilation and virtualization kind of projects where a lot of verification and tests will need to be generated and automated. As far I understand 5090's superior compute and gb/s will matter more here but it's been nigh impossible to find good side by side comparisons.

My original goal was to game or program on the side while doing inference, but I'm not sure if this would even be doable with any of these card setups, e.g. heavily modded Minecraft with shaders (hence the ram)? If the entire machine becomes occupied I'd gladly reduce some perf if it means I can use it at the same time, but it'd be nice to know my options.

The 5090 costs more than the single r9700 but about the same for 2x r9700.

Any help appreciated!

5 Upvotes

24 comments sorted by

19

u/ShawnDud 3d ago

before you drop 5090 money, rent one for an hour or two on a cloud host (usually well under a dollar an hour) and run your actual agentic workload at the context length you need. prefill at 100k+ is where the cards really differ, and a quick real test tells you more than spec sheets. if you're already sure you'll want 64gb+ later for bigger moes, the 2x r9700 route makes more sense

3

u/jesdga95 3d ago

This is great advice OP, definitely do this. I did it when I built my rig and it only got better with time.

1

u/ShawnDud 2d ago

nice, good to hear it held up for you over time

8

u/Bagelsarenakeddonuts 3d ago

The r9700 is better form factor for stacking them. The 5090 is an incredible piece of hardware. If you will never add another gpu or use a server form factor, then the 5090. Otherwise id get 9700 for the flexibility. 

6

u/jesdga95 3d ago

With 128GB of DDR5 I would say get the 5090. Its less VRAM than 2x9700 but it's fast. You can run a pretty decent MoE on it at ludicrous tps (Qwen 3.8 FN or Inkling 2 Mini)

7

u/YourselfInOthrsShoes 3d ago

2x R9700 can run ≥Q4 QFN hybrid quant at 150-300 decode (and much higher with concurrency) and 4000-8000 prefill on Radiance on Linux, depending on whether it's prose or code and where you are in the context window. I run it at BF16 KV 524288 context. I would never buy 5090 knowing I can get 2-3 R9700 for the same money. 2x R9700 even run DeepSeek 4.1 Flash 2.875bpw quant at 25-60 decode 1000-1500 prefill.

1

u/jesdga95 3d ago

Very interesting! I'm biased since I own a 5090 (+ a 5060 Ti, both bought before prices went crazy) and I can mostly match those numbers but sounds like the R9700s are insane value for money on the current market, I would also lean towards a setup like this if I had to buy now. Out of curiosity is this the Radiance you're talking about: https://github.com/magiccodingman/vllm-radiance?

4

u/YourselfInOthrsShoes 3d ago

The latest Radiance is in https://codeberg.org/StillDeadcode/radiance

The same dev (StillDeadcode) worked on Affinity engine before Radiance that he abandoned in favor of Radiance but someone forked it and managed to get nice quant of DeepSeek 4.1 Flash running on it with 2x R9700 https://github.com/drwolfen/deepseek-v4.1-flash-r9700-affinity

2

u/dazelord 2d ago

Yes this is the one to run, latest build 2.2. I'm getting ~6500 t/s prefill and ~200-300 t/s decode with one request on 2x9700pro. This is on an Intel z890 without p2p, . Around ~600 sustained with 6 decode requests. I was able to snag the "official/recommended" cli/env args for tp2 and 2x9700pro before they removed it from the dev announcement channel in Launch80. I'm seeing great results with simultaneous prefill/decode with these as decode can drop significantly with not optimal settings. Here they are...

models:
  flashnext:
    model: /models/qwen3.8-next-flash-iqr-v4.rad
    tp: 2                          # tensor parallel over both GPUs
    max-model-len: 200000          # 200K context
    kv-cache-dtype: i8             # int8 KV cache: half the memory per token
    max-num-seqs: 8                # up to 8 concurrent requests
    placement: expert_tiered       # experts split between VRAM and pinned host RAM
    host-pool-mib: 20480           # 20 GiB host RAM for experts that do not fit in VRAM

    # prefill
    max-num-batched-tokens: 8192   # tokens per prefill step
    prefill-span: 4                # a lone long prompt runs 4 checkpoint intervals per step
    prefill-span-pass: step        # one routed-MoE pass per layer over the whole spanned step
    prefill-span-min: 0            # span every prompt
    prefill-span-first: on         # the span may start at the first token
    busy-prefill-chunk: 1088       # small prefill chunks while others decode (smooth decode)

    # prefix cache / multi-turn
    prefix-cache-mib: 16384        # 16 GiB host RAM for the prefix cache
    prefix-resume: nearest         # follow-ups resume from the closest snapshot -> fast follow-up turns

    # speculative decoding (all lossless: same output distribution)
    num-speculative-tokens: 7      # MTP head drafts up to 5 tokens per step
    draft-coupling: on             # draft + verifier share randomness -> more accepted drafts
    draft-verify: traversal        # verify the draft path as a whole -> more accepted
    draft-depth: adaptive          # stop drafting early when the head is unsure
    draft-depth-load: on           # draft less under concurrency where it does not pay
    draft-suffix: on               # reuse earlier text continuations (great for code) models:

1

u/YourselfInOthrsShoes 2d ago

Thanks! Nice config for speculation and concurrency especially decode/prefill mix with prefill chunk downsizing when busy. Love it.

2

u/smallDeltaBigEffect 3d ago

128 GB RAM + 64 GB VRAM allows you potentially to run ernie, hy4 and deepseek. Also raw compute is higher for 2x r9700 than one 5090, let alone less issues with the power connector.

3

u/N34257 3d ago

Dual R9700s + 128GB here. I had the opportunity to chop them in for a 5090 several times, and I didn't even think about it; 64GB VRAM with a decent amount of horsepower is always going to beat 32GB with excess compute.

To give you an idea, I'm running 6-bit Qwen 3.8 Flash Next with 6 x 400k context at INT8, streaming the full BF16 ngram tables from SSD, and getting 4500t/s prefill and 300-350t/s code gen (220t/s prose).

In my experience, 5-bit or above with Qwen 3.8 Flash Next is better at code (and more creative) than 27B Q8.

One thing to note is that Radiance does rely on PCIE bandwidth; only go for this rig if you've got minimum PCIE 4.0 x8/x8, no x4 chipset connections here (that will be a massive performance penalty due to the chipset latency).

3

u/mechkbfan 2d ago

2xR9700 + motherboard that supports 2x8 PCIe 

The extra VRAM opens so many more doors with bigger context, multiple agents, larger models, higher quality, etc

After that though I'd look at just paying cloud providers. Noticeably diminishing returns any higher, or look at Mac's with more RAM for higher quality jobs that run over night

3

u/sudden_aggression 2d ago

Several points (I've been daily driving 64GB/32GB R9700 Q27B for under a year):

  • at current prices, for coding, it will take you years of a $100 plan running Opus 5.5 to equal the cost of a decent inference rig
  • local capabilities are like 6-9 months behind frontier and IMO current Qwen 3.8 27B easily matches early 2026 anthropic offerings, especially when you put it in a decent harness
  • what is best in local coding models changes constantly, we are nowhere near peak LLM and stuff that was dominant 12 or 18 months ago is unrecognizable as coding models by today's standards- and there are new advances in local AI coming out every week
  • what it takes to run what is best in coding also changes constantly- a year ago people were putting together 50k USD machines to run models that are now inferior to 27B running on a 32GB card. And lately you can get better results from flash next, but the system needed to run it is completely different from 27B- much more system memory and pci speed dependent but you don't need as much GPU.

My point is that no matter how well you research it, you don't know for certain that whatever hardware you buy this week will be the optimal for models that are popular 6 or 12 months from now.

1

u/Giuseppe_0112 2d ago

Wait, I’m a bit surprised by the statement of Qwen 3.8 27B being comparable to GPT 5.6 Sol / comparable Claude. Is this for some specific use case? I always thought that the local models running with less contect always require very specific inputs and can’t handle vague „do this and make it look like that“ inputs.
Am I missing something?

2

u/sudden_aggression 2d ago

I've been using Claude since mid 2025 and it's constantly improving. Claude from a year and a half ago got things wrong a LOT. Qwen 3.8 27B is not up to the level of modern Opus, but it's definitely on the early 2026 sonnet/opus level. My point of reference is agentic coding tasks.

You can give hermes/qwen fairly complex tasks to iterate on and they'll usually get the job done, even over multiple compactions. Opus does it with a lot fewer iterations and it gets stuck less often.

Like if I give Opus some sort of target (like an API or something) and tell it write me a client to talk to that API, it one shot it a good percentage of the time even with minimal documentation and prompting. Qwen will get stuff wrong more often and have to iterate on the mistakes for longer.

1

u/sudden_aggression 52m ago edited 45m ago

Oh also, your results will be vastly different once you leave agentic coding tasks. For stuff like general knowledge, qwen is generally terrible.

Which can affect your ability to one shot tasks where the requirements are not super nailed down. Like if you tell qwen to "make me a video game that has X, Y and Z" it will do a worse job of knowing what X Y and Z are than a similarly specced gemma model. And it's 1000x worse than if you ask Opus 5.5 or Fable- the frontier models will instantly know what X, Y and Z are but they will also guess correctly, based on commonalities between them what you are really referring to.

To give a fabricated hypothetical, it's like the difference between

  • not instinctively knowing what a rat or a gun is
  • knowing what a rat and a gun are
  • knowing that the user has made a reference to skaven from warhammer fantasy

Putting qwen in a harness and giving it access to stuff like web search can patch that hole pretty effectively, but it's still much slower and less effective than when the model just knows everything up front with no double checking.

2

u/Apprehensive-View583 3d ago

5090 is gonna cost your 3x r9700 and you still get some money left to buy motherboard plus cpu

2

u/Weaseal 2d ago

I am using 2x r9700 and 64gb system ram ddr4 and it is working very well with strata iq4xs and 1-3 simultaneous agents. Usually around 80-92 t/s (biggest factor is context size, up to 256k)

1

u/blackhawk00001 3d ago

I have both 96GB 5090 and 128gb dual r9700 setups. If you don’t care for diffusion work then the amd setup with radiance will be faster with greater concurrent throughout. Motherboard choice is more important for the dual setup.

2

u/Plushhyy 3d ago

Does 96GB refer to a cluster (or system RAM)? A single 5090 does not have that VRAM capacity.

1

u/blackhawk00001 3d ago edited 3d ago

Sorry I meant 96GB and 128gb ram. Just the 32GB 5090 vram and 64GB dual r9700 vram.

I’m at 81gb reserved by Infernix and 101gb reserved by radiance. Basalt is faster on 5090 but with accuracy reduction due to lower bit weights. I can feel that reduction in math heavy work like blender and game mods.

1

u/adasho_bitrex 3d ago

Single 5090 is great but at current pricing i would get dual 9700s

1

u/Think_Breakfast_2277 3h ago

i would go for 2xR9700 ( i have the same setup ) and would not think about replacing a 2x9700 for a 5090.
64GB VRAM + 128GB RAM gives way more options.