Files
cookbook/docs/bench-standard-gaps.md
ClaudeandClaude Opus 5.5 976a8b40e5
ci / check (push) Successful in 11s
Multi-GPU recipes and mixed setups
Several of one GPU: <gpu>/<model>/<N>x-<engine>-<profile>.md with gpus,
tp and pp (tp × pp = gpus) and a declared PCIe topology. Different GPUs:
mixed/<setup>/, named after its cards, with the same layout as a GPU
folder and a generated mixed/README.md. Runs must sit in their recipe's
setup folder. Energy, and bandwidth for pipeline parallel or mixed, are
left out where bench-standard measures one GPU only; docs/
bench-standard-gaps.md lists those gaps for the benchmarks repo. The
wanted lists take the fewest of one GPU a model fits in.

Demo: 2x Arc B580 with vLLM TP 2 and llama.cpp layer split for
Qwen3.8-27B, -sm row as what lost, and Arc Pro B60 + Arc B580 mixed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 18:59:51 +01:00

2.5 KiB
Raw Permalink Blame History

bench-standard gaps for multi-GPU runs

What bench-standard 0.5.0 doesn't record well when a server uses more than one GPU, and how the cookbook works around it. Each section is written to be filed as an issue on benchmarks. The cookbook doesn't change that repo.

1. gpu_count counts every GPU in the machine

Now: collect-env.sh counts all devices xpu-smi lists. A 2-GPU server on a 3-GPU machine records gpu_count=3, and the gpu note says 3x .... Wanted: count the devices the server uses: ZE_AFFINITY_MASK / ONEAPI_DEVICE_SELECTOR from the launch command, or the engine's own device log. Cookbook meanwhile: takes the count from tp × pp and ignores gpu_count.

Now: gpu_bdf is the first device, and pcie_link, pcie_max and rebar describe it alone. Wanted: one entry per GPU used, e.g. pcie=Gen4 x8 · Gen4 x4 (chipset). With tensor parallelism over PCIe, the slowest link decides the result. Cookbook meanwhile: recipes declare topology, one link per GPU; submitters add it in --special-notes.

3. No interconnect information

Now: nothing about how GPUs talk to each other. Wanted: a note on the collective transport (oneCCL settings from the env flags, whether P2P over PCIe is used or traffic goes through host memory). Cookbook meanwhile: recipes describe it under Pitfalls.

4. Bandwidth share ignores pipeline parallel and mixed GPUs

Now: postrun.py multiplies the bandwidth by tp and the weights by tp (vLLM's per-worker figure). With pp > 1, or with two different cards, the share is wrong. Wanted: scale by the GPUs used, with each GPU's own bandwidth; for pipeline parallel, decode reads each stage's weights in turn, so the reference is the per-stage sum of time, not the sum of bandwidth. Cookbook meanwhile: shows the bandwidth share only for tensor parallel over equal GPUs.

5. Power and energy of one GPU

Now: gpu-power.sh samples one device, so J/token for a 2-GPU run counts half the power. Wanted: sample every GPU used and sum. Cookbook meanwhile: leaves energy out of every multi-GPU recipe.

6. A standard model that needs more than one card

The standard models (9B, 27B) fit one 24–32 GB card, so multi-GPU only matters on the 10–16 GB cards. A larger model, like a 70B-class dense model or a big MoE, would make multi-GPU recipes on the B60, B65 and B70 meaningful. It has to go into the standard models table first.