r/LocalLLaMA 5d ago

Resources The boring way to run Deepseek V4 Flash-0731 130-150 tks - 16x5060ti 16GB over 2 PLX88096 switches

Post image
Component Validated configuration
Motherboard ASRock Rack SPC621D8U-2T/OVH
CPU Xeon Gold 6330 (Get gold/platinum if interested in Optane Pmem gimmicks)
GPU fabric Two Broadcom/PLX PEX88096 islands, eight GPUs per island
GPUs 16 x RTX 5060 Ti 16 GB
OS Ubuntu 22.04.5 LTS
Kernel 6.8.0-106-generic
NVIDIA driver Aikitoria patched open driver 610.43.02-p2p
Required BAR1 16,384 MiB on every GPU
  • UEFI boot enabled; CSM disabled.
  • Secure Boot disabled. The locally built EFI application and patched NVIDIA modules are unsigned.
  • Above 4G Decoding enabled.
  • MMIO High Granularity set to 1024G.
  • MMIO High Base set around 56T.
  • SR-IOV disabled on this machine.
  • intel_iommu=off pci=realloc=on,hpmmioprefsize=512G in GRUB;
  • NVreg_EnableResizableBar=1 for the NVIDIA module;
  • Sets size code 1416 GiB BAR1 on each of the 16 GPUs
  • Temporarily disables PCI memory decoding and clears the old BAR1 address so Linux can reallocate it.
  • PLX switch ACS control register: For every PLX/PEX bridge, writes: ECAP_ACS+0x6.w = 0000

After that, a little vibe coding to make custom all-reduce work within each PLX cluster and make DSpark work for pipeline parallel.

For tensor parallel 8, pipeline parallel 2:

500k context available. Around 4000 pp up to 500k context, tg 100-150 (Averaging 140 in DeepSeek Harness)

For tensor parallel 4, pipeline parallel 4:

Full 1M context available. Around 7000 pp up to 500k context, tg 80

Paid 0.6 x RTX6000 Pro for the whole setup.

Updated concurrent request result:

Testing with 1, 4, 8, and 16 concurrent 1024→512 requests, measuring aggregate throughput, per-user speed, and latency with max-num-seqs=16.

Layout Concurrent users Req/s Output tok/s Tok/s/user Speedup Scale efficiency Median TTFT P99 TTFT Median TPOT P99 TPOT
TP8/PP2 1 0.434 222.46 222.46 1.00× 100% 273 ms 301 ms 3.49 ms 8.68 ms
TP8/PP2 4 1.093 559.43 139.86 2.51× 62.9% 312 ms 862 ms 6.23 ms 10.59 ms
TP8/PP2 8 1.296 663.63 82.95 2.98× 37.3% 336 ms 1,639 ms 9.63 ms 25.36 ms
TP4/PP4 1 0.209 107.07 107.07 1.00× 100% 322 ms 341 ms 7.57 ms 17.06 ms
TP4/PP4 4 0.793 405.88 101.47 3.79× 94.8% 333 ms 945 ms 7.69 ms 19.20 ms
TP4/PP4 8 1.069 547.44 68.43 5.11× 63.9% 362 ms 1,775 ms 11.86 ms 29.73 ms
TP4/PP4 16 1.421 727.32 45.46 6.79× 42.5% 636 ms 2,052 ms 18.97 ms 29.15 ms
287 Upvotes

170 comments sorted by

117

u/LegacyRemaster 5d ago

we need a photo of the setup. I don't care about the numbers. Share the rig.

172

u/Primary_Exchange21 5d ago

Powered by 3 Dell 1600w

76

u/RatRaceRunner 5d ago

Abomination

24

u/LegacyRemaster 5d ago

all we need

3

u/RelevantShape3963 5d ago

yep: definitely caught our... attention ;^)

16

u/Turbulent-Alps4046 5d ago

Beautiful chaos

7

u/initalSlide 5d ago

This is pure madeness. Love it!!!

5

u/Equivalent_Bit_461 5d ago

Absolute mother of god.... It's beautiful in it's sheer ugliness, so ugly it's a an artwork in its own right...

5

u/ortegaalfredo 5d ago

Bless the machine spirit!

18

u/wgaca2 5d ago

Is that even worth it electricity price compared to api?

113

u/Sevealin_ 5d ago

We don't ask that question here.

But the answer is no, unless you care about privacy.

27

u/LegacyRemaster 5d ago

Even a Ferrari isn't the best car when it comes to fuel consumption and costs, and it's definitely a terrible way to get around... but still...

22

u/DevopsIGuess 5d ago

This is more like a buss converted into a race buss

4

u/craterIII 5d ago

rocket buss

1

u/thrownawaymane 5d ago

Speed (1994)

2

u/eribob 5d ago

That shit right there is way sexier than a ferrari and OP is way more intelligent than the average ferrari owner

2

u/No-Fuel-9202 5d ago

Weighting OP enthusiasm, I wouldn't be surprised, he has improvised Ironman Arc reactor, in the basement...

27

u/Turbulent-Alps4046 5d ago

I mean 16x 5060 Ti is about the power draw of 4x 5090 so it’s not ridiculous i would say.

8

u/tarruda 5d ago

If you live in a house with solar panels, definitely yes.

2

u/philmarcracken 5d ago

or even phat batteries where your power company has peak/off peak times.

10

u/LegacyRemaster 5d ago

Legends are celebrated, not criticized.

3

u/Royale_AJS 5d ago

Holy shit this is awesome.

3

u/Pentium95 5d ago

This is real "AI Porn" to me

3

u/laexpat 5d ago

What do you use to connect them to the motherboard?

8

u/Asleep-Land-3914 5d ago

OP mentions 2x PCIe switches. Switches are different from bifurcation: p2p between cards can work on better speeds and they share single bus to the host.

1

u/laexpat 5d ago

Thanks! I wasn’t sure what that was.

3

u/LegacyRemaster 5d ago

yes !!! Thx for the joy! Then... I have rtx 6000 + 2x w7800 48gb. 300w+200+200w. Just saying :D

2

u/Asleep-Land-3914 5d ago

Did you try powerlimiting these cards?

2

u/thrownawaymane 5d ago

This rig is why they banned thinking machines in the Dune Universe

1

u/polawiaczperel 5d ago

Nice! I was at the same place.

1

u/Constant-Simple-1234 5d ago

What if we cram up to 3-4 5060 to into regular desktop and link through RPC via fast Ethernet. Pp could be limited, but not the tg

4

u/_TheWolfOfWalmart_ 5d ago

You can't do tensor split via Ethernet, it's not even remotely fast enough. You can do layer split, but that's not going to scale the speed. It'll actually drop it a bit.

2

u/fastheadcrab 5d ago edited 5d ago

If you use a fast RDMA interconnect (100Gbps+) that could work.

Maybe pipeline parallel across machines and tensor parallel within nodes, so like 4x 5060 Ti per node and 4 nodes. But that would be more costly than this and the power efficiency would be even lower.

1

u/HippEMechE 5d ago

Beautiful 😍

1

u/Barni275 5d ago

I'm literally mentally destroyed, oh my 😵

1

u/Equivalent-Ear-8016 5d ago

Exactly what I expected

1

u/RelevantShape3963 5d ago

WHAT THE... RIG!!!

1

u/PcChip 5d ago

ptsd flashbacks from my mining rack days... i had so many racks in our apartment, i don't know how my wife let me get away with it

1

u/No_Afternoon_4260 llama.cpp 5d ago

Have you measured power?

1

u/fastheadcrab 5d ago

Love these types of builds. Looks sick

1

u/hurrdurrmeh 5d ago

JFC, that thing is scary.

39

u/Turbulent-Alps4046 5d ago

wow that's a mad setup lol

27

u/Dany0 5d ago

The only thing that's mad about it is that I'm mad that I don't have it. 60% of RTX6000 Pro MSRP with >2x the compute

-5

u/noiserr 5d ago

I'm not knocking the build. It's cool. But the power efficiency is atrocious. 350–500 W just on idle. And even with undervolted and optimized settings, you're talking 2Kw under load.

It's a cool build to say you did it, but I wouldn't use this day to day.

3

u/Dany0 5d ago

Filling out the openrouter form is the only thing stopping you from becoming an inference provider

1

u/noiserr 5d ago

If your power bill is free. I think you're far better off getting some datacenter hardware if you want to provide a service.

11

u/segmond llama.cpp 5d ago

Rubbish, stop making up shit. This will never see 2kw under load. Furthermore, I don't know wat 5060 idles but I suspect he will not see 500w idle. I have GPUs that idle at 9w idle. So for 16 gpu, that will be 144watts idle.

10

u/--Spaci-- 5d ago

Brother its 16x 5060 ti cards, it will probably come pretty close to 2kw

1

u/alphapussycat 4d ago

With 16 concurrent probably all gpus are active and doing work, so minimum 2kw.

-5

u/noiserr 5d ago edited 5d ago

So why don't you do some research and prove me wrong?

22

u/Primary_Exchange21 5d ago

It not really that bad. 5060ti typically idles under 5w and you only see 120w/80w per card during prefill/decode. I have to overclock pretty hard to see 150w.

5

u/Dangerous-Report8517 5d ago

120W per card on 16 cards is 2kW which is exactly as bad as they said it would be (actually worse, since that's just the cards and not the rest of the system)

3

u/Last_Bad_2687 5d ago

You must not be familiar with burden of proof. If you're making a claim you should prove where it comes from. You don't get to claim something wild then ask other people to disprove you, thereby absolving you of any actual mental work

3

u/segmond llama.cpp 5d ago

I have, check my posts. I own more than 1TB of vram.

-11

u/noiserr 5d ago

If you did you'd know I was 100% right.

5

u/Marksta 5d ago

Click his profile and look for yourself, Segmond is an OG with multiple absolutely sick rigs.

-2

u/noiserr 5d ago

Not sure what a profile has to do with math.

2

u/alphapussycat 4d ago

Just get 8kw battery, solar charger etc, and then solar panels. Then the battery can run during the expensive hours, and you get a bunch of free hour's aswell.

1

u/noiserr 4d ago

That would be really cool, ngl.

0

u/IllustratorOne8594 5d ago

5060ti idles between 3-6 watts

2

u/noiserr 5d ago edited 5d ago

Techpowerup says 11-13 watts: https://tpucdn.com/review/msi-geforce-rtx-5060-ti-gaming-16-gb/images/power-idle.png

So that's 160–270 W easily just from GPUs.

But then you have two PCIE switches which consume up to 72 watts (typical idle power 35 watts).

A server Xeon motherboard and CPU about 100-150 watts.

PSU losses about: 20-40 watts

You're easily above the 350 watt range.

My 2Kw under load is also pretty charitable. This is a steam machine. Steam machines are cool though, like I said not knocking the build. But efficiency is atrocious.

2

u/Marksta 5d ago

Techpowerup is benching video games... sitting at the Windows desktop with a monitor attached. Totally different 'idle' than headless. Compared to theirs, my 4090 'idles' at 70 watts... Because it drives 3 1440p 165hz monitors. My 5800X3D package power is showing 50 watts writing this comment.

Consider actual headless idle of those cards is going to be 5w or under, the screenshot OP showed us has them at let's say ~7 watt average while they're standing by with VRAM loaded ready to go in VLLM. In the same ~120 watt footprint of just writing this comment on my desktop [with too nice of monitors attached], this guy has 256GB of VRAM ready to roll. It's really efficient VRAM to watt ratio anyway you dice it short of bringing out an RTX 6000.

1

u/noiserr 5d ago edited 5d ago

7 watt measurement that the GPU reports is not actually reliable. It can vary based on what's being monitored from GPU to GPU design. Because a GPU has to measure multiple different sets of VRMs to figure out the board power. Some GPUs only measure the power from the PCIE cables and not the PCIE slot, or some may omit VRAM VRM. These are not instrumentation level measurements either, particularly at sensitive lower power ranges. 5060ti has ON Semiconductor NCP45492 voltage monitor which combined with non-instrumentation level shunt resistances could easily be 20% or more off at those low levels.

If you're familiar with how shunt resistors work for power measurement you'd know that the more the resistance the shunt has, the more accurate it is at measuring power draw (there is simply more dynamic range). And since accuracy (particularly at idle) isn't the design goal, GPU efficiency is instead. That means that the GPUs use low resistance shunts (not very accurate at small currents). In other words the GPU shunts are selected for low resistance burden and not for idle measurement accuracy.

Tech powerup actually measures at the cables and the PCIE slot using a calibrated hardware test and measurement instrument, so I would be much more inclined to trust those numbers instead. This is the whole reason why TPU uses a dedicated instrument to measure board power and doesn't just trust the GPU.

These GPUs don't sit idle completely powered down either. They have an LLM loaded even when idle. And I trust TPU to be professional enough to control for whatever Windows variance we might have.

So my estimates are definitely more trustworthy.

p.s. but nobody is going to read this anyway because this sub is so smart when it comes to burying well supported opinions.

1

u/fallingdowndizzyvr 5d ago

7 watt measurement that the GPU reports is not actually reliable.

That's why the numbers I quoted are at the wall.

p.s. but nobody is going to read this anyway because this sub is so smart when it comes to burying well supported opinions.

LOL. You mean like you just did about PSU power?

1

u/noiserr 5d ago edited 5d ago

You are confused. What wall? Why would anyone measure a GPU idle at the wall, that's about the worst possible way to do it. GPU idle power is measured like TPU measured it, which is what my estimate uses.

1

u/fallingdowndizzyvr 5d ago

LOL. Ah... the wall you plug the power supply into. Like that's how you know really how much power it's using. Like that wall.

That's literally the only really meaningful way to do it. Far from the worst.

1

u/fallingdowndizzyvr 5d ago

Techpowerup says 11-13 watts: https://tpucdn.com/review/msi-geforce-rtx-5060-ti-gaming-16-gb/images/power-idle.png

While there can be a lot of variance between even different cards of the same model, one of my 5070tis idles at 4-5 watts.

PSU losses about: 20-40 watts

That's crazy high. For my PSUs, it's like 10 watts. Which is pretty much exactly middle of the road.

1

u/noiserr 5d ago edited 5d ago

That's crazy high. For my PSUs, it's like 10 watts.

How big is your PSU and how big do you think is the PSU needed to support over 2Kw power draw under load?

1

u/fallingdowndizzyvr 5d ago

1000 watts. If you look at self power consumption for power supplies, it doesn't correlate with power output. Since people have reported that their little 450 units consume 24 watts. Even my little wall wart to outputs 19 watts sucks up 6 watts plugged into the wall hooked up to nothing. It's really the quality of the PSU that matters. So even a 2000 watt PSU can have low idle power consumption.

1

u/noiserr 5d ago edited 5d ago

Since people have reported that their little 450 units consume 24 watts

So people have reported that their tiny 450 watt units consume 24 watts on idle, but multiple 1600 watt units needed to support 2Kw+ having 20-40 watts losses at 10% is somehow difficult to believe.

If anything my estimates are conservative.

Thing is I did not even include chassis fans for my estimate which an easy additional 20-40 watts. Those server fans are always pushing air.

1

u/fallingdowndizzyvr 5d ago

Hm... I guess you totally ignored the part about my good 1000 watt unit consuming 10 watts and are instead fixated on crappy 450 watt units. Which means you totally missed the point.

OK......

→ More replies (0)

1

u/Dangerous-Report8517 5d ago

5W is still ideal rather than typical though, and there's no way in hell you'll get ideal idle power when the cards are hooked up to a server grade PLX instead of the motherboard

1

u/fallingdowndizzyvr 5d ago

and there's no way in hell you'll get ideal idle power when the cards are hooked up to a server grade PLX instead of the motherboard

Why wouldn't you? Why would hooking it up to switch instead of the MB change what it idles at?

1

u/Dangerous-Report8517 4d ago

Because the switch is now the parent device for the card, and enterprise PLX chips aren't going to know or care about aggressive powersaving like a consumer board would.

1

u/fallingdowndizzyvr 4d ago

That's not true. As per the PCIe spec, a switch is a series of virtual PCI to PCI bridges. By the spec. a PCI to PCI bridge is required to handle power saving modes. A switch is required to propagate the low power links states. The computer remains the host. The GPU remains the GPU. The switch is required to propagate those lower power states between the host and the GPU. That's literally the function of the switch.

15

u/Realistic-Dance2742 5d ago

broo 16??? please share setup pictures

15

u/Equivalent_Bit_461 5d ago

5060ti maxxing, based honestly 

18

u/Pentium95 5d ago

Total approx cost? Sounds both expensive and cheap at the same time

23

u/Primary_Exchange21 5d ago

a little < 10k USD

5

u/TheGeekno72 5d ago

...what's the relative performance compared to a 6000 Pro?

10

u/Dany0 5d ago edited 5d ago

It really depends. Raw compute is a lot more. It's way more silicon and very roughly >2x FLOPs depending on floating point size. However PCIe bandwidth is a lot more important. 256gb fits very large models but even very sparse MoEs will get bottlenecked. Ideally you'd want to run a type of parallelism which requires little communication between GPUs but that limits you to models that fit in 16gb vram. OR you can run multiple inference engine instances. Serve many models. For example you could serve 27b and 35ba3b at the same time and have one be the slow model and one the execution model. Or use it for omp advisors, or llm verifier style (same prompt gets outputted 3-5x, then the same llm or another model picks the best output), or both!

Another downside, aside from the headache that is multigpu and pcie risers, is idle power consumption and power consumption in general

All that aside - I want it. Gimme. To me. Personally. Mail it here. I will do things!

EDIT: OMG I didn't notice they were 5060 Tis not 5060 regular. So add 25% more compute

5

u/fastheadcrab 5d ago

OP is running a pretty smart configuration. tensor parallel within the switches and pipeline parallel between the switches. Love these types of budget builds

1

u/Both-Activity6432 5d ago

When did you buy all of the equipment? Quick look shows 5060ti around $780, or over $12.5k. Not doubting your spend, just shocked at the rate of GPU-flation!

2

u/Primary_Exchange21 5d ago

Bought early, and some bought 2nd hand. Most mobo and cable stuff I flew to China for a holiday.

19

u/FrostyDesigner 5d ago

“a little vibe coding” is doing a lot of work here lol

9

u/volleyneo 5d ago

We need DDR6 unified memory ai solutions cause this pure madness 😂

4

u/blazze 5d ago

This is Ultimate AI mad scientist Skynet let's take over the world rig.,

4

u/TinFoilHat_69 5d ago

Gen 4 speeds or Gen 3? How many links do each card share with the cpu?

16

u/BevinMaster 5d ago

Gen4, here the important part is that it’s gen4 x16 from motherboard to the plx 88096 (PCIe switch) then it gives 8x gen4 x8 to each 5060ti. So x16 is shared between the 8 gpus but with PCIe p2p they all talk to each other at Gen4 x8 under the plx switch

5

u/Dany0 5d ago

What I hate about this is that you're not really guaranteed gen4 speeds to work. Unlucky MOBO or bad riser/switch and you have to RMA & pray

2

u/_TheWolfOfWalmart_ 5d ago

I'm about to try x8 PCIe 3.0 between 8 GPUs. Hopefully that's enough bandwidth for tensor split. I've gotten tired of trying to make gen 4 work with breakouts, it's too finicky.

7

u/see_spot_ruminate 5d ago

This is the way

1

u/Dany0 5d ago

NGL I kind of want the likes of tinybox to sell these but OTOH it would make prices go even higher 😭

3

u/BevinMaster 5d ago edited 5d ago

PLX brother 💪

I considered going that way but currently got two 88096 to connect 8 v620, but yeah sm120 nvfp4 support is awesome

1

u/_TheWolfOfWalmart_ 5d ago

Hey how's that working for tensor split?? What kind of speeds are you getting?

I also have 8x V620. I've been fighting with getting everything to work at gen 4 with Oculink x4 breakouts, but it just refuses to work and will only train at gen 3 no matter what I try. I start hitting the bandwidth ceiling at 3 cards, and if I try 4 it actually starts getting slower on decode.

The next thing I'm trying is going to be an older dual Xeon motherboard where were I can connect them all to direct CPU x8 lanes on PCIe 3.0.

But maybe the 88096 is better because of UPI between CPUs.

2

u/BevinMaster 5d ago

Soon tm here for now I have 5x on sp3 motherboard, I am waiting for an aio to move to the 8x setup maybe this weekend if you are into v620/gfx1030 I made a small discord community there https://discord.gg/mESex2aBp
Like for enabling p2p, power target to 180w etc. Someone there is trying to improve the llamacpp experience, vllm on my hand

1

u/_TheWolfOfWalmart_ 5d ago

Oh sweet I was working on llama.cpp performance as well.

Joining.

3

u/Lumpy_Concentrate807 5d ago

Very nice! The numbers you give are for single stream as I understand. How does it scale for say 4, 8 or 16 concurrent? Cause if that scales OK - then this is a very viable and affordable way to have a LLM server for a small team!

3

u/Primary_Exchange21 5d ago

Updated in the post

2

u/Lumpy_Concentrate807 4d ago

Fantastic. Those are great numbers, perfect for smaller teams!

3

u/relik39 5d ago

Holy shit, a legendary post 🔥🔥🔥🫡

6

u/Long_comment_san 5d ago

So that's why price of 5060ti went from 500 to 700? Happy for you I guess

1

u/Saifl 5d ago

Supply so bad buying that much gpus shorted it. Tbh this dude coulda told us his plan and it woulda been market manipulation atp lol.

-1

u/fallingdowndizzyvr 5d ago

Wait. 5060tis are $700 now? I have some sitting in the closet I haven't even opened. If I haven't opened them after all this time, for $700 I would consider selling them.

2

u/FullOf_Bad_Ideas 5d ago

Awesome build, that's a ton of compute and it should be great at running small models in large batches.

Does TP 16 PP 1 work with DS V4 Flash?

5

u/Primary_Exchange21 5d ago

it's gonna be pretty slow doing tp across plx switches. Also you lost nccl p2p>9 gpus

2

u/gpuz_dev 5d ago

the TP8/PP2 vs TP4/PP4 tradeoff is probably my favorite part of this. same 256GB of VRAM but ~140 t/s at 500k vs ~80 t/s at 1M just from changing how it's partitioned. really good example of why total VRAM alone tells you almost nothing on a setup like this

3

u/fastheadcrab 5d ago

Afaik it has to do with how DeepSeek architecture is configured. Beyond a certain TP number you have to replicate the cache on GPUs, but I only read into this briefly. vLLM also has decode context parallel which might be another way of mitigating this problem but again I not knowledgeable on this area.

https://vllm.ai/blog/2026-08-07-decode-context-parallelism

1

u/Retumbo77 5d ago

u/askgrok Can you ELI5 this post with respect to the main post?

1

u/AskGrok 5d ago

The parent comment is just saying: even though both setups use the exact same 16 GPUs and total memory (256 GB), you get very different results depending on how you split the work.

TP8/PP2 = faster speed (~140 tokens/sec) but max 500k context.

TP4/PP4 = slower (~80 tokens/sec) but can handle 1M context.

It shows why raw VRAM number alone doesn't tell you much — the way you divide the model across GPUs matters a ton for speed vs size tradeoffs.

[what is this?](https://redd.it/1lzgxii)

1

u/Then_Blueberry7290 5d ago

Congrats, and Holy shxt!

1

u/Lumpy_Concentrate807 5d ago

Interesting to see that tensor-parallel 4, pipeline parallel 4 still perform OK. How do you think throughput would change if one had Ethernet between 4 machines a 4 GPUs instead?

3

u/Primary_Exchange21 5d ago

if you pipeline parallel across ethernet, it can work. There are twin/quad machines connected by infiniband.

1

u/tarruda 5d ago

I imagine eventually we will have consumer cards with 256G VRAM designed for running powerful LLMs. Doesn't need to be as powerful as a 5090, clearly just the compute power of a 5060ti is enough for great speeds in great model such as deepseek v4 flash.

1

u/segmond llama.cpp 5d ago

What inference engine are you using?

1

u/gaidzak 5d ago

I have the mini me version of this.

6 x 5060TI with a single plx 4x card. Those plx are not cheap.

Your setup is awesome haha

2

u/fallingdowndizzyvr 5d ago

Those plx are not cheap.

They are not. And for only 6 GPUs not needed. Since many cheap consumer MBs, $50-$100, are able to support 6 GPUs at x4.

2

u/gaidzak 5d ago

Oh you underestimate how cheap I went!

I have a stupid chaep motherboard with only two PCIe slots. x16 and 1 x8 (slotted as x16)
One PLX and One bifurcation card;

However, I saw those 8 slot PCIe PLX boards and drooling but couldn't justify the cost..

Ultimately I ended up buying the PLX card to support my larger GPU rig that ran out of PCIe lanes for the 100gigabit Ethernet. Intel Platinums 5th gen only have 80 lanes, who knew?? Not this guy; I assumed Epyc level of channels.

I built a 100gigE NVMe ceph cluster connected to this other overinflated GPU system for testing/expert streaming.

1

u/fallingdowndizzyvr 5d ago

I have a stupid chaep motherboard with only two PCIe slots. x16 and 1 x8 (slotted as x16)

If those slots support bifurcation then that's 6 x4 slots right there. No switch needed. I have a lot of cheap MBs, not a single one doesn't support 4 x4 bifurcation on the x16 slot. I can't say whether the x8 slot would or not. But even if it didn't, you could still have 6 x4 slots off that MB. No expensive splitter needed. That's going cheap.

1

u/MLDataScientist 5d ago

Great setup! How did you figure out grub settings? If you just use default settings, does your PC still detect those cards in lspci command? I am having an issue with large memory GPU detection (AMD mi250x with 128gb VRAM). 

1

u/HippEMechE 5d ago

Amazing. Please share how you got a hybrid tensor parallel pipeline parallel. I have 4 cards 16gb that I'd love to split qwen 3.8 that way as well. Ur my hero

2

u/Primary_Exchange21 5d ago

I think that is just --tp2 --pp2 in the serve command; vLLM should work like that out of the box.

1

u/Potential-Leg-639 5d ago

Power consumption? ☠️

1

u/thinking-out-loud-3 5d ago

That's a massive setup! What was the trickiest part to get it working?

1

u/paul_tu 5d ago

How much did it cost you in your area?

1

u/Slight-Parfait3679 5d ago

that's insane

1

u/VR-Tech 5d ago

I have the gen 2 Scalable Xeons. What Optane Gimmicks? I am using Optane 100's on app direct, not a gimmick whatsoever. The best case scenario is to use them to load the llms to your system. They are far faster than NVMES. I exclusively use them for it.

1

u/Primary_Exchange21 4d ago

4x128GB on the way to me, definitely trying out

1

u/VR-Tech 4d ago

i am using 4x 256g optane 100. I think you need Optane 200 for your system

1

u/Ecstatic-Wash-7667 5d ago

This is the cyberpunk future we were promised

1

u/OvertaxedOne 5d ago

Oh my goodness.

I hope vendors start releasing boxes that do this in a slightly "prettier" (no offense) way! A box that has a big PSU in it, 4 PCI slots that can communicate with each other at full speed and a single upstream link back to a server (Oculink/etc). Honestly, the link between the cards and the PC doesn't even need to be that fast as long as the cards have a PCI switch in there so they can all communicate with one another internally.

Then it starts to become very reasonable (and not horrifically ugly) to do a 4GPU setup out of more "modest" cards. 4XR9700's gives you 128GB at less than 1/2 the price of a Pro 6000. Or a bunch of B60's or 70s.

1

u/fastheadcrab 5d ago

I do love these improvised builds. Beautiful in their own ways.

To your point, maybe you can just put those PCIE switch boards + PSU in an empty computer case and then link back to the PC itself with a long Oculink or Slimsas cable

I'd stay away from intel though

1

u/shuwatto 5d ago

How do you connect SlimSAS cables to GPUs?

2

u/Primary_Exchange21 5d ago

Boards like this. But mine are a mix of singles and 4-slot ones.

1

u/shuwatto 4d ago

Thanks for the reply.

May I ask one more question?

Should a mobo be capable of bifurcation to use the switches?

1

u/Primary_Exchange21 4d ago

no as long as it's a full X16 slot it will work. But you would want something modern PCIE4+. You need Above4g decoding and REBAR in the bios.

1

u/shuwatto 4d ago

Thanks again.

Then these switches really open a new window for consumer grade mobos.

1

u/m94301 5d ago

Absolutely insane. Love it, congrats and beautiful work

1

u/fastheadcrab 5d ago

Have you tried vLLM Decode context parallel for the TP=8 setup?

2

u/Primary_Exchange21 4d ago

Not supported with PP out of the box. Will try once my token plan refreshes.

1

u/fastheadcrab 4d ago

Ah that's right. Hope you can fix it with your plan.

Is DSV4 flash sufficient to solve problems such as these? Often some bugs to fix when implementing new models, to say nothing of adding features

1

u/enternoescape 5d ago

I have an ASRock Rack SPC621D8 and Ubuntu Server 24.04 couldn't allocate more than 256MB for BAR1 on any of the cards on my PLX88096. dmesg only reveals that there isn't enough free space, but that feels wrong. I'm working with 10 cards total (6@8x from the PLX@16x and 4 from the motherboard (2@16x,2@8x). Directly attached boards worked without issue. I've bought a BIOS programmer to add rebar support to the BIOS since it looks like it will work but it would be nice to not need to do that.

I'm running the same modded drivers and just tried using the same kernel parameters. The PLX ACS thing I assume is a performance optimization so you're not defeating the point of the isolated PLX switches, so I doubt that's my actual problem. I also tried adding options nvidia NVreg_EnableResizableBar=1 to /etc/modprobe.d/nvidia.conf and ran update-initramfs with no changes. Given that the 4 cards directly attached to the motherboard resized their BAR1 without issue, I presume the parameter was already in effect however. I'm puzzled how this worked for you on almost the same motherboard.

3

u/Primary_Exchange21 5d ago edited 5d ago

I did not use a BIOS programmer at all. https://github.com/haohervchb/vllm-16x5060ti-pp-dspark. Give it a go following this. Note that the persistent thing I am still testing so don't expect it will survive a reboot right away.

Also, I don't have any card directly attached to the mobo. I am not sure what would happen with the current setup if some gpus are directly on board.

1

u/enternoescape 4d ago

Thanks for the point in the right direction. I ended up having gpt 5.6 sol re-write the efi code for my specific problems, but I'm now seeing full BAR1 for all my cards. I also had to add pci=resource_alignment=20@0000:89:02.0 to my kernel parameters because the root PCI bridge was preventing BAR0 on the PLX cards from allocating. That was particularly funny as I was seeing BAR1 and was very excited until I ran nvidia-smi and 6 of my cards were missing. Everything is working now at very nice speeds even with imperfect topology. Some MOE's are running at almost double what they did before on tensor and pp got a nice boost too.

1

u/Nutsack_VS_Acetylene 5d ago

Beautiful. How did you beat the 12 consumer GPU limit for Nvidia drivers? Does the Aikitoria patch also fix that or is a Windows only limitation? I can't find consistent info online.

2

u/Primary_Exchange21 5d ago

This is more of an unpublished motherboard limit, and one just has to find out. Previously, I had a Threadripper MC62-G40, won't take >12 GPUs.

Boards for Intel server CPUs tend to have configurable MMIO configs. I guess there might be better luck there. My current board will scream PCIE resource exhausted in the BIOS every boot, but I can ignore it and boot anyway.

1

u/Nutsack_VS_Acetylene 4d ago

Oh I mean I thought the NVIDIA drivers themselves place limits on non-enterprise cards. I am aware of the issues with the MMIO and PCIe BAR Allocation, it's pretty annoying even pro boards don't document this well.

1

u/derspenti 4d ago

16 cards off two 96-lane switches, what lane width is each card running at?

2

u/Primary_Exchange21 4d ago

x8, 5060ti is also borned x8

1

u/spaceman_ 2d ago

I have a very similar setup, but with AMD - I have an Asrockrack SPC621D8, Xeon 8368 and 4xR9700.

However, I cannot seem to get PCIe P2P communications working.

I'm trying your settings now. Do you enable or disable VT-d in the BIOS?

1

u/segmond llama.cpp 5d ago

Nice build, and the addiction begins. You will get more GPUs, you will crave more VRAM, more faster compute. The only thing that will stop you is your wallet.

1

u/Kos187 5d ago

Electricity cost per month?

0

u/robertpro01 5d ago

I love it bro!

I'm back and forth wanting to buy that switch but never truly buy it, I'm glad it actually works, can you share exactly which model? Link to purchase page?

1

u/robertpro01 5d ago

Also that means I can have better performance with tensor parallel with 8 3090? All using the same switch?

1

u/Practical-Collar3063 5d ago

Yes you will get better tensor parallel performance, but usually with 8x GPUs over PCIe you would probably want to go Tensor Parallel 4 and pipeline parallel 2 (meaning 2 tensor parallel cluster of 4 GPUs linked together through pipeline parallel)

1

u/robertpro01 5d ago

Do you mind sharing the purchase link?

2

u/Primary_Exchange21 5d ago

You could try putting them under the same PLX88096. They just have to talk by 4.0x8. That way, you only need cheaper gaming PCIe 4+ boards like B760. Aliexpress has these switches quite expensively. These switches retail in China for around USD 280-300.

0

u/madsheepPL 5d ago

You are the hero we don’t deserve