AI generated
Yes, you can mix cards. A second 16GB card is a big win over spilling into system RAM. Don't expect it to be faster than one card, though. Think of it as "one card's speed, with double the VRAM". 1. Do they have to match? - llama.cpp: No. Any mix works: different generations, different VRAM sizes, even different vendors through Vulkan. By default it splits the model by layers across the cards (-sm layer). Use -ts to balance the split, e.g. -ts 16,12 for a 16GB + 12GB pair. Two NVIDIA cards on CUDA is the least hassle. - vLLM / tensor parallel: Effectively yes. Tensor parallel (TP) splits every layer evenly, so the smallest and slowest card limits both of them. Use identical cards if you plan to go this route. 2. How fast vs a single 32GB card? - llama.cpp layer split: The cards take turns. GPU1 runs its layers, then GPU2 runs the rest. They don't work at the same time on a single request, so two equal cards give you roughly the speed of one of them, minus a few percent. The traffic between cards is tiny (just activations), so PCIe x8 or even x4 is fine. With mismatched cards, the slower card drags the average down in proportion to how much of the model it holds. - vs a real 32GB card: It depends on memory bandwidth, since token generation is bandwidth-bound. A 32GB card with similar bandwidth runs at about the same speed. A 5090 (~1.8 TB/s) would clearly beat two mid-range cards. - Tensor parallel (vLLM, or -sm row in llama.cpp): Both GPUs work at once, so it can beat one card. Consumer GeForce cards have no P2P, so the sync between them goes over PCIe through the CPU and eats much of the gain. My data point: 2×4080 with vLLM TP=2 gets about the same tokens/s as I'd estimate for a single 4090. The real benefit was fitting 32GB, not raw speed. 3. vs offloading to RAM This is where a second GPU shines. Dual-channel DDR5 gives about 60–90 GB/s, while a GPU has 500–1000 GB/s. Even putting 10–20% of a dense model in RAM can cut your speed in half. Keeping everything in VRAM across two cards is easily several times faster.(One exception: MoE models offload surprisingly well with --n-cpu-moe, because only a few experts are active per token.) Practical checklist - PSU headroom, physical slot spacing (many cards take 2.5–3 slots), and case airflow - PCIe lanes: x8/x8 is ideal, but x4 is OK for llama.cpp layer split. Mainly model loading gets slower. - The KV cache (context) also splits across cards, so 32GB total gets you a ~27–32B model at Q4 with usable context, which a single 16GB card can't do.