All glossary terms

Model architecture

Tensor parallelism

The model's weight matrices are split across several GPUs that compute every layer together. Fits big models and speeds up single-stream decode.

Tensor parallelism cuts one layer of the model into pieces and gives each GPU in a group one piece. The GPUs compute that layer at the same time and combine their results with a collective operation (an all-reduce), so from the outside the group behaves like one very wide GPU. The model only has to fit in the group, not on any single card inside it.

The payoff is speed on a single request. One decode step has to read the whole set of weights, and the group reads those weights in parallel, so the step finishes sooner than one card could manage. That is a different trade from data parallelism, where each card owns the whole model and serves different users: tensor parallelism makes one request faster, it does not add serving capacity on its own.

The cost is communication. Every layer ends in a collective exchange that crosses the interconnect between the cards, so tensor parallelism wants very fast links such as NVLink between GPUs and it hurts badly over slow ones. The interview framing: tensor parallelism buys single-request speed with interconnect bandwidth, and replicas buy capacity with dollars - the two moves solve different problems.

A worked example

A 70B model in 8-bit weights (70 GB), on one H100 with 3.35 TB/s of bandwidth versus two of them joined tensor-parallel, where about 15 percent of each step is spent on the collectives.

  1. One card: 3.35 TB/s / 70 GB = about 48 tokens per second, the decode ceiling from bandwidth.
  2. Two cards tensor-parallel: each reads half the weights at the same time, 35 GB apiece, so the step takes 35 GB / 3.35 TB/s = about 96 steps per second.
  3. Subtract the collectives: 96 x 0.85 = about 81 tokens per second for the single user.
  4. The gain holds only while the interconnect keeps up; over slow links the all-reduce can erase it.

Two cards in lockstep roughly double single-user decode minus the communication tax. The same request gets faster; the fleet, and its capacity, do not change.

Where this shows up

Test yourself

Related terms