← All questions
Inference & ServingMedium· Tensor Parallelism· Memory Management· Optimization

Tensor parallelism divides your parameter memory by t....

In vanilla TP, matmul activations (FFN intermediate, attention projections) divide by t, but pointwise activations stay full-size. Sequence parallelism addresses this by replacing the row-parallel AllReduce with ReduceScatter and AllGather, allowing GPU k to hold only s/t rows through pointwise ops, effectively dividing memory for those layers by t without changing total communication costs.

Code playground (Python)