Archived
o_proj and down_proj are column-sharded, so under TP each rank holds a partial sum of the projection. The post-attention and post-feedforward norms ran on those partials and the all-reduce summed the normed halves: sum_r rmsnorm(p_r) instead of rmsnorm(sum_r p_r). HF and vLLM (RowParallelLinear) reduce first. At TP 1 there is no all-reduce and nothing changes.