# NVIDIA P104-100 8GB x4 at PCIe Gen1 x1 — layer split vs tensor parallelism Measured 2026-10-01~02. Methodology **METHOD v1.3** ([`../METHOD.md`](../METHOD.md)). Raw data [`../results/p104-100-x4-gen1x1.jsonl`](../results/p104-100-x4-gen1x1.jsonl). Derived metrics live in [`p104-100-x4-gen1x1-metrics.md`](p104-100-x4-gen1x1-metrics.md). > Measurement conditions are in METHOD. This document holds only **this platform's > environment, results and interpretation.** > Conclusions that span platforms are in [`../FINDINGS.md`](../FINDINGS.md). **The same card model as [`p104-100-x4.md`](p104-100-x4.md), on the slowest PCIe link there is.** The cards now sit on x1 mining risers, so every link runs at Gen1 x1 (~250 MB/s) — a quarter of the Gen1 x4 the first P104 run had. The model file and the llama.cpp commit are identical to that run, which makes this the closest thing in the repository to a same-card bandwidth comparison. It is still **not a single-variable experiment** — the host CPU and RAM changed as well (section 1). **What it confirms and what it overturns.** Layer split still buys no decode speed, and tensor parallelism still decodes fastest — 1.51x layer split at four cards, down from 2.29x. What changes is everything that depends on prefill: the warm prefill ranking reverses, and tensor 4 cards needs 21.5 warm turns to overtake layer 4 cards in a session, against 1.2 at Gen1 x4. --- ## 1. Environment ### Hardware | Item | Value | |---|---| | GPU | NVIDIA P104-100 8GB x6 installed, **up to four used per cell** (GP104, sm_61, Pascal) | | VRAM | 8,192 MiB per card, 8,109 MiB usable (83 MiB reserved) | | Memory bandwidth | about 320 GB/s (GDDR5X 256-bit) | | Power limit | 180W (not changed during measurement) | | CPU / RAM | **Intel Core i7-5820K**, 6 cores 12 threads / **16GB** DDR4 | | Mainboard | Gigabyte GA-X99-UD4P | The earlier P104 run used an AMD EPYC 7232 with 32GB. **The host changed together with the link** ([Notes and Caveats 11)](../FINDINGS.md#notes-and-caveats)). The earlier report did not record card UUIDs, so whether these are the same physical units cannot be shown. **PCIe link** — **every card runs at Gen1 x1.** `width.max` reads 4 because that is what the card supports; the x1 riser is what holds it at 1. Confirmed the same under load. ``` index, pcie.link.gen.current, pcie.link.gen.max, pcie.link.width.current, pcie.link.width.max 0, 1, 1, 1, 4 1, 1, 1, 1, 4 2, 1, 1, 1, 4 3, 1, 1, 1, 4 4, 1, 1, 1, 4 5, 1, 1, 1, 4 ``` **Topology** — raw `nvidia-smi topo -m` output. All six cards hang off the same host bridge. ``` GPU0 GPU1 GPU2 GPU3 GPU4 GPU5 CPU Affinity NUMA Affinity GPU NUMA ID GPU0 X PHB PHB PHB PHB PHB 0-11 0 N/A GPU1 PHB X PHB PHB PHB PHB 0-11 0 N/A GPU2 PHB PHB X PHB PHB PHB 0-11 0 N/A GPU3 PHB PHB PHB X PHB PHB 0-11 0 N/A GPU4 PHB PHB PHB PHB X PHB 0-11 0 N/A GPU5 PHB PHB PHB PHB PHB X 0-11 0 N/A X = Self PHB = Connection traversing PCIe as well as a PCIe Host Bridge (typically the CPU) ``` **P2P** — `nvidia-smi topo -p2p r` reports `OK` for every pair. ### Software | Item | Value | |---|---| | OS | Ubuntu 24.04.5 LTS, kernel 6.8.0 | | Driver / CUDA | 580.178.04 / 12.8 | | llama.cpp | `465e49b9c` (build 10830) — **the same commit as the earlier P104 and V100 runs** | | `CMAKE_CUDA_ARCHITECTURES` | `61` (the earlier runs used `61;70` to share a binary with V100) | | **NCCL** | 2.26.2-1+cuda12.8 | | Model | Qwen3.8-27B-Heretic Q3_K_M (below) | ⚠️ **CUDA 13 dropped Pascal (sm_61).** The toolkit has to be 12.x. A driver reporting `CUDA Version: 13.0` only states the driver's ceiling (METHOD section 6). ### Model The same file as the earlier P104 run — **sha256 identical.** | Item | Value | |---|---| | Source | `RVN-BF16-mtp.gguf` (METHOD 1-1) | | Quantization | Q3_K_M, `--tensor-type blk.64=q8_0` | | Size | 13,752,763,616 bytes (13,115 MiB) | | sha256 | `727e7d8b3ab3af1a6eeb166f3d7aac93d51ac0cdc06200e8f1cbac9074591ca4` | > ⚠️ **Without NCCL installed this measurement is void.** Symptoms, before-and-after > figures and how to check are in [METHOD 1-2](../METHOD.md). On this platform > `NCCL not compiled in` and `internal AllReduce init failed` appear in none of the > server logs. --- ## 2. Results - **Prefill (pp)** = how fast the prompt is read. `prompt_per_second` - **Generation (tg)** = final output token rate. `predicted_per_second`, on confirmed output rather than drafts — `predicted_n` is 400 on every turn - Cold is one run, warm is the mean of four turns - **Percentages** are relative to **the slowest cell for that metric**, which is 100 | Metric | Baseline cell (100%) | Value | |---|---|---| | Cold pp | tensor / MTP on / 4 cards | 55.3 t/s | | Warm pp | tensor / MTP on / 4 cards | 39.2 t/s | | tg | layer / MTP on / 4 cards | 6.18 t/s | ⚠️ **Nine of the eleven cells were measured two at a time on separate GPUs.** The same cell was first run alone and concurrently, and the difference was within 2.1% (section 5-1). METHOD v1.3 permits this ([Notes and Caveats 10)](../FINDINGS.md#notes-and-caveats)). ### 2-1. Generation speed ranking (all 11 cells) | Rank | Cell | tg | % | |---|---|---|---| | **1** | **tensor / MTP off / 4 cards** | **11.16** | **180%** | | 2 | tensor / MTP off / 3 cards | 10.70 | 173% | | 3 | tensor / MTP off / 2 cards | 9.58 | 155% | | 4 | tensor / MTP on / 3 cards | 8.24 | 133% | | 5 | tensor / MTP on / 4 cards | 7.74 | 125% | | 6 | layer / MTP off / 3 cards | 7.62 | 123% | | 7 | layer / MTP off / 2 cards | 7.61 | 123% | | 8 | layer / MTP off / 4 cards | 7.40 | 120% | | 9 | tensor / MTP on / 2 cards | 6.57 | 106% | | 10 | layer / MTP on / 3 cards | 6.24 | 101% | | 11 | layer / MTP on / 4 cards | 6.18 | **100%** | | — | layer / MTP on / 2 cards | failed | — | **Three things to read off this.** 1. **The top three are still tensor parallelism with MTP off** — the same winner as at Gen1 x4 and on V100. But the split modes no longer separate cleanly: at Gen1 x4 all six tensor cells beat all five layer cells, here **tensor with MTP on interleaves with layer split**, and `tensor / MTP on / 2 cards` falls to ninth. 2. **MTP costs tensor parallelism far more than at Gen1 x4.** Turning it on costs tensor 4 cards 31% here against 17% at Gen1 x4 (section 3-5). 3. **The cold pp ranking is the tg ranking turned upside down, more sharply than before.** Layer split leads cold prefill by up to 548% while the tg leader manages 110% (section 3-2). ### 2-2. Layer split, MTP off | N | Cold pp | % | Warm pp | % | **tg** | **%** | Warm turn | |---|---|---|---|---|---|---|---| | 4 | **302.6** | **548%** | 68.6 | 175% | 7.40 | 120% | 64.7s | | 3 | 245.7 | 445% | 69.4 | 177% | 7.62 | 123% | 63.0s | | 2 | 202.5 | 367% | 70.2 | 179% | 7.61 | 123% | 62.9s | **N=1 cannot be measured here.** The 13,115 MiB model does not fit on one 8GB card (the attempt is in the raw data as a failed row). `tg_1` in the derived metrics is a derived value ([Notes and Caveats 2)](../FINDINGS.md#notes-and-caveats)). ### 2-3. Layer split, MTP on | N | Cold pp | % | Warm pp | % | **tg** | **%** | MTP acceptance | Warm turn | |---|---|---|---|---|---|---|---|---| | 4 | 186.8 | 338% | 56.8 | 145% | 6.18 | 100% | 29.9% | 77.5s | | 3 | 180.8 | 327% | 57.0 | 145% | 6.24 | 101% | 29.9% | 76.9s | | 2 | failed | | | | | | | | `layer-mtp-2` failed to allocate its compute buffer on load (`cudaMalloc failed: out of memory`, 268.06 MiB on device 1). **The same cell completed at Gen1 x4 with the same commit and the same model file.** The cause is undetermined (section 5-2). ### 2-4. Tensor parallelism, MTP off | N | Cold pp | % | Warm pp | % | **tg** | **%** | Warm turn | |---|---|---|---|---|---|---|---| | 4 | 60.7 | 110% | 47.2 | 120% | **11.16** | **180%** | **51.4s** | | 3 | 64.1 | 116% | 48.7 | 124% | 10.70 | 173% | 52.4s | | 2 | 64.6 | 117% | 48.6 | 124% | 9.58 | 155% | 56.8s | **Prefill gets slower as cards are added** (64.6 → 60.7). Each card added is another participant in every all-reduce over a 250 MB/s link. ### 2-5. Tensor parallelism, MTP on | N | Cold pp | % | Warm pp | % | **tg** | **%** | MTP acceptance | Warm turn | |---|---|---|---|---|---|---|---|---| | 4 | 55.3 | 100% | 39.2 | 100% | 7.74 | 125% | 33.1% | 71.0s | | 3 | 57.7 | 104% | 40.4 | 103% | 8.24 | 133% | 36.2% | 69.6s | | 2 | 59.9 | 108% | 41.1 | 105% | 6.57 | 106% | 29.1% | 78.7s | ⚠️ Tensor parallelism changes the generated content as N changes (METHOD 6-2), so **do not read an acceptance difference as an effect of GPU count.** ### 2-6. Temperature and throttling Aggregated from the telemetry in METHOD 1-8, **over the GPUs each cell actually used** (a concurrent cell's CSV records all six cards). | Cell | Peak | Mean | therm % | pcap % | |---|---|---|---|---| | layer-nomtp-4 | 63 | 49 | 0.0 | 6.2 | | layer-nomtp-3 | 67 | 52 | 0.0 | 8.2 | | layer-nomtp-2 | 75 | 57 | 0.0 | 2.9 | | layer-mtp-4 | 63 | 51 | 0.0 | 7.6 | | layer-mtp-3 | 60 | 52 | 0.0 | 0.3 | | tensor-nomtp-4 | 61 | 49 | 0.0 | 2.1 | | tensor-nomtp-3 | 61 | 51 | 0.0 | 3.0 | | tensor-nomtp-2 | 68 | 55 | 0.0 | 0.0 | | tensor-mtp-4 | 58 | 51 | 0.0 | 1.9 | | tensor-mtp-3 | 69 | 50 | 0.0 | 3.7 | | tensor-mtp-2 | 65 | 56 | 0.0 | 0.0 | **No thermal throttling in any cell.** Power capping stays at 0~8% of active samples. Temperatures are in °C; the denominator is samples with utilization above 5%. ### Validation checklist (METHOD section 4) | Item | Result | |---|---| | No `NCCL not compiled in` | **Pass** — zero in all server logs | | No `internal AllReduce init failed` | **Pass** — zero | | `prompt_n` matches the targets | **Pass** — all turns within ±1% | | Cold `cache_n` = 0 | **Pass** | | Warm `cache_n` >= 22,000 | **Pass** — minimum 22,521 | | `predicted_n` = 400 | **Pass** — every turn | | Warm `tg` spread within 5% (**MTP off cells only**) | **Pass** — 0.6~4.4% | | Thermal and power throttle aggregated | **Done** (section 2-6) | | No kernel Xid during the run | **Pass** — zero since boot | Failed: `layer-mtp-2` (compute buffer out of memory on load). --- ## 3. Interpretation Figures and the calculations behind them are in [`p104-100-x4-gen1x1-metrics.md`](p104-100-x4-gen1x1-metrics.md). The Gen1 x4 values quoted below are from [`p104-100-x4.md`](p104-100-x4.md). ### 3-1. Layer split does not use the cards during decode — same at Gen1 x1 | N | 2 | 3 | 4 | |---|---|---|---| | tg | 7.61 | 7.62 | 7.40 | Flat within 3%, as at Gen1 x4 and on V100. Only one card computes at a time, so a narrower link has little to slow down — **layer-split decode lost only 4~6% against Gen1 x4.** ### 3-2. Cold prefill still favours layer split — warm prefill now does too | | Cold (23,037 tok) | Warm (637~790 tok) | |---|---|---| | layer 4 | **302.6** | **68.6** | | tensor 4 | 60.7 | 47.2 | | Ratio | Gen1 x4 | **Gen1 x1** | |---|---|---| | Cold — layer ahead | 1.91x | **4.99x** | | Warm | tensor ahead 1.51x | **layer ahead 1.45x** | **This overturns a conclusion that held on both earlier platforms.** At Gen1 x4 and on V100 warm prefill favoured tensor parallelism. At Gen1 x1 the all-reduce per batch costs more than tensor parallelism gains from splitting the work, even for a 700-token warm prompt. ### 3-3. Generation still dominates a warm turn — less than before | | layer 4 | tensor 4 | |---|---|---| | Prefill | 10.7s (17%) | 15.5s (30%) | | Generation | 54.0s (83%) | 35.8s (70%) | At Gen1 x4 the same split was 14% / 86% for layer and 20% / 80% for tensor. **Warm prefill grows into a third of a tensor-parallel turn**, so the advantage tensor parallelism has in generation is partly given back. **The cold turn is where Gen1 x1 bites.** Reading 23k tokens takes 76s under layer split and **380s under tensor parallelism**. Tensor parallelism wins every warm turn (51.4s against 64.7s) but needs **21.5 warm turns** to repay that five-minute deficit, against 1.2 at Gen1 x4 (metrics section 1). ### 3-4. Decode is still not bandwidth bound — the link pulls utilization down further | Configuration | Effective bandwidth | Against spec | Gen1 x4 | |---|---|---|---| | layer 4 | 102 GB/s | 32% | 34% | | tensor 4 | 38 GB/s | **12%** | 19% | Layer split barely moves. Tensor parallelism uses **less** memory bandwidth than before, because more of each token's time is spent waiting on the link. Decode on this card was not memory bound at Gen1 x4 and is less so here. ### 3-5. MTP — same verdict, and tensor parallelism pays more for it | | layer 4 | tensor 4 | tensor 3 | tensor 2 | |---|---|---|---|---| | **Cost multiple** | **2.26** | **2.90** | 2.86 | 2.72 | | Gen1 x4 cost multiple | 2.25 | 2.42 | — | — | | Break-even acceptance | 42.4% | **63.9%** | 62.6% | 57.9% | | Measured acceptance | 29.9% | 33.1% | 36.2% | 29.1% | | Measured change | −16.4% | **−30.6%** | −23.0% | −31.4% | **Layer split pays the same multiple as at Gen1 x4** (2.26 against 2.25) — its verification batch does not cross the link more often. **Tensor parallelism's multiple rises from 2.42 to 2.90**, because verifying a batch of four adds all-reduce traffic on top of a link that is already the bottleneck. Acceptance is unchanged (the model, fixture and seed are the same), so the larger loss comes entirely from the cost side. **The cost model still predicts the result** — within 1 percentage point in four of five cells. `tensor-mtp-3` misses by 4.4 points; it is also the cell with the widest warm spread (section 4). --- ## 4. MTP variance Warm 4-turn `tg`. Per METHOD section 4 the 5% rule does not apply to MTP on cells. | Cell | Warm 4 turns | Spread | |---|---|---| | layer-nomtp-4 | 7.60 / 7.43 / 7.28 / 7.28 | 4.4% | | layer-mtp-4 | 6.15 / 6.00 / 6.24 / 6.34 | 5.5% | | layer-mtp-3 | 6.21 / 6.06 / 6.29 / 6.40 | 5.5% | | tensor-nomtp-4 | 11.19 / 11.17 / 11.15 / 11.12 | 0.6% | | tensor-mtp-4 | 6.82 / 7.25 / **9.37** / 7.52 | **33.0%** | | tensor-mtp-3 | 6.98 / **12.09** / 6.58 / 7.30 | **66.9%** | | tensor-mtp-2 | 6.38 / 6.73 / 6.90 / 6.29 | 9.3% | The pattern matches Gen1 x4 — **MTP under tensor parallelism swings by tens of percent** from one turn to the next while MTP-off cells stay within a few percent. --- ## 5. Concurrent measurement and failures ### 5-1. Concurrent measurement Six cards allow two cells at a time on disjoint GPUs. **Before running the matrix that way, the same cell was run alone and concurrently, and the difference was checked.** | Cell | Metric | Alone | Concurrent | Difference | |---|---|---|---|---| | layer-nomtp-4 | cold pp | 302.5 | 302.6 | +0.0% | | | warm pp | 68.6 | 68.6 | 0.0% | | | tg | 7.52 | 7.40 | −1.7% | | layer-nomtp-2 | cold pp | 206.8 | 202.5 | **−2.1%** | | | warm pp | 70.7 | 70.2 | −0.7% | | | tg | 7.68 | 7.61 | −0.9% | | tensor-nomtp-4 | cold pp | 60.7 | 60.7 | −0.1% | | | warm pp | 47.2 | 47.2 | −0.1% | | | tg | 11.19 | 11.16 | −0.3% | **The largest difference is 2.1%.** The likely reason there is no contention despite a shared host bridge: each card's own x1 link saturates first, so there is no spare bandwidth to fight over upstream. That is an inference, not a measurement. Which cells overlapped, and on which GPUs: | Cells run together | GPUs | |---|---| | layer-nomtp-4 ‖ layer-nomtp-2 | 0-3 ‖ 4-5 | | tensor-nomtp-4 ‖ tensor-nomtp-2 | 0-3 ‖ 4-5 | | tensor-mtp-4 ‖ tensor-mtp-2 | 0-3 ‖ 4-5 | | layer-mtp-3 ‖ tensor-mtp-3 | 0-2 ‖ 3-5 | | tensor-nomtp-3 ‖ (layer-mtp-2 load attempt, failed) | 0-2 ‖ 4-5, first ~5 minutes only | | layer-nomtp-3, layer-mtp-4 | alone | The reported values are the concurrent runs; the alone runs are kept in the raw data with `validity: side`. ### 5-2. `layer-mtp-2` — out of memory on load ``` allocating 268.06 MiB on device 1: cudaMalloc failed: out of memory failed to allocate compute pp buffers ``` | Cause | Verdict | |---|---| | Different llama.cpp build | **Ruled out.** Same commit as Gen1 x4, where the cell completed | | Different model file | **Ruled out.** sha256 identical | | A concurrent cell taking VRAM | **Ruled out.** It ran on GPUs 4,5; the concurrent cell used 0-2 | Remaining differences are the CUDA architecture list (`61` against `61;70`) and the driver (580.178 against 580.173). **Neither was tested; the cause is undetermined.** In practice it costs nothing — layer split with MTP is the slowest configuration on this card at any card count. --- ## 6. Limits specific to this platform - **Not a single-variable comparison with Gen1 x4.** The host CPU (EPYC 7232 → i7-5820K), RAM (32GB → 16GB), driver and architecture list changed along with the link. Prefill and decode are GPU bound and the CPU only tokenizes and samples, so the link is taken as the main factor — **but it was not isolated** - **The single-card baseline is derived**, as at Gen1 x4 - **`layer-mtp-2` is missing** (section 5-2) - **Nine cells were measured concurrently** (section 5-1) - **The cards sit on x1 risers**, which also lengthen the electrical path. PCIe error counters (AER) were not checked during the run - Tensor parallelism changes the output as N changes (METHOD 6-2) --- ## 7. Raw data and cell validity | | Content | |---|---| | [`../results/p104-100-x4-gen1x1.jsonl`](../results/p104-100-x4-gen1x1.jsonl) | One JSON line per cell. `devices` and `concurrent_with` record the GPUs and the overlapping cell | ### Cell validity | Class | Cells | Basis | |---|---|---| | **Valid** | 11 cells | Validation checklist passed | | **Side** | layer-nomtp-4, layer-nomtp-2, tensor-nomtp-4 (alone) | The concurrency check in section 5-1 | | **Failed** | layer-mtp-2 | Compute buffer out of memory on load | | **Failed** | layer-nomtp-1 | The model does not fit on one card. Not part of the matrix |