Inference Parallelism
Hover, focus or tap a scenario to see how the model is split and which links carry traffic.
Server A
- 0
- 1
- 2
- 3
- 4
- 5
- 6
- 7
Accelerators
Scale-up link
The fast link between accelerators inside one server, like NVLink or Infinity Fabric. Tensor parallelism swaps partial results over it many times per token, so it needs the most bandwidth.
PCIe
PCIe carries the model in at startup. While serving, it can move KV cache out to CPU memory and back.
- CPU memory
Scale-out network
Usually RoCE or InfiniBand, and slower than the links inside a server. Only occasional transfers cross it, like activations once per token or KV cache once per request.
Server B
- 0
- 1
- 2
- 3
- 4
- 5
- 6
- 7
Accelerators
Scale-up link
The fast link between accelerators inside one server, like NVLink or Infinity Fabric. Tensor parallelism swaps partial results over it many times per token, so it needs the most bandwidth.
PCIe
The link between each accelerator and the server's CPU memory. It loads the model weights at startup and can offload KV cache to CPU memory. In these three set-ups it carries no traffic while serving.
- CPU memory
Hardware
The model