Section 01 · GGF-35
Layer-Split (--split-mode layer) vs Tensor-Row-Split (--split-mode row) Bandwidth Math
Without NVLink, row-parallel all-reduce across 80+ sync barriers per token can perform worse than simple layer pipelining.
Two RTX 3090 cards provide 936 GB/s each (1,872 GB/s combined raw bandwidth across two independent memory controllers), yet how llama.cpp splits tensors determines whether you see ~1x or ~1.6x single-card speed. In default --split-mode layer, GPU 0 executes layers 0–19 sequentially and passes one tiny hidden-state vector (~10–20 KB) over PCIe/NVLink to GPU 1 for layers 20–39. Because only one card executes at a time during batch=1 decode, effective bandwidth equals 936 GB/s with minimal synchronization latency—still yielding a 203.5 tok/s theoretical ceiling on Qwen 4 Q8_0!
In --split-mode row (tensor parallelism), both GPUs process halves of every layer simultaneously (~1,872 GB/s aggregate memory read) and perform an all-reduce synchronization twice per block (80 sync barriers per generated token on a 40-layer model). With a 4-slot NVLink bridge (112.5 GB/s bidirectional P2P), row-split nets meaningful gains on dense 32B/70B models; over bare PCIe 4.0 without P2P BAR routing (bouncing via host RAM), row-split sync overhead can erode gains—always benchmark both modes on your motherboard.
Remember to run nvidia-smi -q -d ECC / P2P checks on Linux dual-3090 servers: disabling Display/Xorg on both compute GPUs (via integrated graphics or headless SSH) frees an extra ~1.5–2.0 GiB across the 48 GB pair, ensuring 43.40 GiB Qwen 4 Q8_0 + 128K FP16 KV stays safely away from OOM crashes.
Layer_Split_Sync = 1 transfer/token (~16 KB) @ 936 GB/s | Row_Split_Sync = 2×N_Layers barriers/token @ ~1,872 GB/s gross