Lattice
Skip to content

Tensor parallelism

Splitting a single layer's computation across several GPUs, so every token passes through all of them.

By Entry last reviewedmethod

What it implies

It is the default answer to 'the model does not fit' and the easiest to get wrong, because it adds a collective operation to every forward pass and the cost grows with sequence length. If your model fits on one GPU with room for KV cache, do not do it. Two GPUs running two replicas behind a load balancer will usually beat one GPU running a sharded 70B.

Related terms

Rules of thumb

  • A definition is only useful next to the decision it changes. Read the linked layer to see where this term bites.
  • If a vendor's definition differs from this one, ask what it measures. Marketing definitions rarely name a number.
  • Every optimisation spends latency, memory or quality somewhere. Find out which before you turn it on.

Ask an AI about this page

Opens the assistant with this page’s link and a question already filled in.