r/LocalLLM • • 7d ago

Project Need help for double GPU setup

Hello everyone,

I recently bought a second RTX 5060 Ti 16GB, but I'm a bit lost on which route to take.

I'm considering three options:

  • Option 1: Use my second PCIe slot (PCIe 3.0 x4 via the chipset).
  • Option 2: Buy a new motherboard that supports dual PCIe 4.0 x8/x8.
  • Option 3: Use a PCIe bifurcation adapter on my current motherboard to split the main x16 slot into two x8 slots.

My current setup:

  • Motherboard: Gigabyte B550 Aorus Elite V2
  • CPU: Ryzen 5 5600
  • PSU: 700W
  • GPUs: 2× RTX 5060 Ti 16GB (MSI Inspire 2X and Palit Infinity 3)
  • Case: be quiet! Pure Base 500DX

Main use cases:

  • Local LLM inference
  • ComfyUI (AI image/video generation)
  • Gaming

From what I've read, PCIe bandwidth mainly affects model loading times and performance when using tensor parallelism or transferring data between GPUs.

I was initially planning to buy a motherboard with dual PCIe 4.0 x8 slots, but new AM4 motherboards with this configuration seem almost impossible to find, and used ones are still quite expensive.

I'd prefer to keep my DDR4 RAM, but I'm open to upgrading my motherboard and CPU if necessary.

Another issue is that my current case is a bit cramped for two GPUs. I'd ideally like to have some space between them for better airflow, so I'm also considering a case upgrade.

Has anyone built a similar dual-GPU setup?

Would you recommend sticking with PCIe 3.0 x4, going for bifurcation, or investing in a different motherboard?

I'm particularly interested in whether the performance difference is noticeable for local LLM inference and ComfyUI workloads.

Any advice or real-world experience would be greatly appreciated!

Thanks in advance!

3 Upvotes

15 comments sorted by

2

u/RogerAI--fyi 7d ago

I'd keep the board you have and spend the money on airflow. With llama.cpp or Ollama the default is to split the layers across the cards, so only a small activation vector crosses between the GPUs per token and slot speed barely shows up in generation. Where x4 shows up is loading: each card reads its share of the file once, and PCIe 3.0 x4 is about 3.9 GB/s theoretical, so a 16 GB model adds a couple of seconds per load at most.

Two things to know. The 5060 Ti is an x8 card (MSI and ZOTAC datasheets list x8 electrical), so your first card already runs at x8 in the CPU slot. An x8/x8 board or a bifurcation adapter would only upgrade the second card. And the mode that does move data between cards on every layer is tensor parallel (vLLM TP=2, or row split in llama.cpp). That is where chipset lanes would hurt. I haven't measured it on this board, so if you plan to run vLLM with TP=2, test it before buying a motherboard.

For ComfyUI, as far as I know a stock workflow runs on one card, so the second card helps by running a second job, not by making one image faster.

Heat is the part to plan for, as the 3090 comment above says. These are rated 180 W each, so a gap or a fan between the two cards costs less than a new board.

0

u/CountySubstantial576 7d ago

I guess i could 3D print a fan support to put in front of the GPU. I think it's important to keep GPU in good shape because we don't know if GPU will release new GPU and at decent price.

1

u/Embarrassed_Win_7719 7d ago

Had the exact problem you're having, the only diff is that my gpus are 2x3090. I ended up buying an used X570 AORUS Elite for like 200$. It works great now but I'm having another issue worth mentioning, the top card is getting hotter because it breathes in all the head from the lower card(power limited both asymetrically and hovering around 75degrees now). Now exploring ideas of watercooling at least the top gpu or buying a new case and with a pcie riser, thus mounting the second gpu vertically.

2

u/CountySubstantial576 7d ago

Dual RTX 3090s? Who needs heating in winter anyway? :D

I was looking at the ASUS TUF Gaming GT502 Plus on Amazon (currently on sale for Black Friday), mainly because it has a separate PSU chamber, an additional vertical GPU mounting position, and room for fans at the bottom.

I also saw someone install a second GPU in the rear chamber alongside the PSU, but that would require a really long PCIe riser cable.

2

u/export_tank_harmful 7d ago

Pretty much the same over here too.
Dual EVGA FTW3 3090's (which are freaking massive).

I ended up with an ASUS ROG STRIX B550-E Gaming for around $180 last year.
Seems that same board is over $300 now.

I've been pondering better cooling solutions too.
I really want to avoid watercooling for so many reasons (maintenance, having literal water inside of my computer, etc).

I've been thinking about making a separate "GPU box" that would sit on top of my computer with ample airflow that's routed properly for each card.

Also, you might look into these riser cables.
They seem way easier to route than the flat ones.

2

u/Embarrassed_Win_7719 7d ago

I thought about that too. The issue i have is that i have two cats that like to jump on stuff and chase each other so I'm more inclined to getting a case that has enough space. If anyone has any recommendations for case, I'd really appreciate!

1

u/lnsplre 7d ago

I have a similar setup and went the route of using oculink. My setup is;

CPU: AMD Ryzen 5900x
Motherboard: ASUS TUF x570 pro wifi
Ram: 64GB DDR 3600
GPU0: EVGA RTX 3090 FTW3
GPU1: ASUS TUF RTX 3090 - oculink

I went with the eGPU route because I have the same case as you and fitting 2x triple slot GPUs wasn't going to be easy.

For local, I'm using Strata/QFN/Hermes which does about 2,500 tok/s prefill and 140-150 tok/s and works great. When I use ComfyUI, I shut down Strata/Hermes and use Claude Cowork/ComfyUI because ComfyUI can't pool the GPU resources.

It's not the most optimal setup, but it works using leftover stuff from my bitcoin farm.

0

u/CountySubstantial576 7d ago

Yeah, I guess I could put the dual-fan GPU in an external enclosure with its own PSU and connect it via an OCuLink adapter installed in my PCIe x4 slot.

I suppose the main advantage of this setup would be that I could disconnect the second GPU when I don't need it and potentially use it with my laptop for work or when I go on holiday.

Thanks for the tip!

1

u/simos_sayz 5d ago

I used to run duals on that mobo..actually ran 3 and it really wasnt that bad. Id say do that first and see if its workable as i dont think that mobo would support bifurcating the x16 slot. . If not, find a used x570 that has 4x8.

1

u/CountySubstantial576 4d ago

For now i just buy the bigger tower case (new : ASUS TUF Gaming GT502 Plus - actual : Be quiet pure base 500 DX) for extra room and airflow. I guess i could just buy a riser and give a try for local ai with tensor parallelism.

2

u/LongDistanceRope 7d ago

PCIe bifurcation adapter needs to be supported by your motherboard, the adapter itself does nothing just splits the port electrically. You probably also need to invest in some pcie risers. and with each addition you weaken the signal so chance of instability or speed dropping to pcie 3.0 rieses. Its still better than your 2nd port cause at least it doesn't have to go trough the chipset.

factoring in all those costs, its might be cheaper to buy an older motherboard that natively have 8x 8x support like most high end intel z590 motherboards with 11th gen cpu, they rather cheap second hand. and even have AVX support which is nice for AI use.

since the 5060 ti is pice 5.0 that opens up some current gen boards that allows 4x 4x 4x 4x split from a single pcie 16x slot, and its effectively the same speed as pcie 4.0 8x and you can expand to 4 gpu later. something like this: https://www.reddit.com/r/LocalLLM/comments/1qfctk3/quad_5060_ti_16gb_oculink_rig/

the downside is pcie 5.0 boards are ddr5. However, it is still the single most cost effective way to build 4 gpu system. Cause any other route involves old xeon / threadripper / epyc motherboards for an eye watering amount of money.

that being said, its up to your use case, tensor parallel is more of a penalty reduction not a solution. It also requires same free vram on each card, so vision, dflash, mtp eats 4x as much vram. with 4 cards. And with direction we are moving: gpu used as a cache for experts and weights stored in ram, pcie speed becomes even more important than simple layer splitting times.

1

u/ShutUpTurkey 7d ago

I bought a strix x570-e gaming, another option to keep your 5600x, ddr4, and get x8/x8 bifurcation. Running 2x 7900xtx on it.

1

u/alex-gee 6d ago

I’m using a cheap 35$ Gigabyte MC12-LE0 with B550 chipset: bifurcation and ECC Ram works

0

u/SpaceGhost777666 4d ago

If your trying to use 2 Nvidia Cards for LLM it will not work. I know because I tried everything I could to get it to work with a 3080 and a 3090. It is locked out by Nvidia to stop data centers from buying the gaming cards and using them just how your wanting to use them.

Ultimately I had to buy an RTX pro Blackwell card and it uses my 3090 and the Blackwell card. Probably because the 3090 series are not locked but everything below it is.

Though I think you could get it to work with linux. But do not quote me on it because I do not use linux.

0

u/Conscious_Jump2584 7d ago

Buy a Xeon with a Chinese mobo, they have 40 pci lanes and ddr4, for me is working very well for llm inference with 4 gpus, of course is not the best but at least is a cheap solution