Designing Multi-Node LLM Inference Topologies: Tensor vs Pipeline Parallelism

NoraLin 91 2026-11-12 00:18:05 Edit

Deploying massive frontier Large Language Models (LLMs)—such as 70B, 405B, and multi-expert MoE architectures—for high-concurrency enterprise applications requires crossing single-node physical compute and memory boundaries. While a single 8-way NVIDIA H100 server provides 640 GB of aggregate High Bandwidth Memory (HBM3), hosting a 405B parameter model in 16-bit floating point precision requires over 810 GB purely to store static weights, before allocating memory for dynamic KV cache token sequences. Even under FP8 quantization, serving 405B models with sufficient batch concurrency mandates multi-node clustering. However, splitting an autoregressive model across multiple physical nodes introduces complex communication dynamics: architects must choose how to divide layers and attention heads between Tensor Parallelism (TP) and Pipeline Parallelism (PP). Understanding the exact latency trade-offs between Time-to-First-Token (TTFT) and Inter-Token Latency (ITL) dictates whether an inference cluster meets conversational response SLAs or stalls under network serialization.

Designing Multi-Node LLM Inference Topologies: Tensor vs Pipeline Parallelism Cover Poster

Definition of Inter-GPU Communication Overheads in Model-Parallel Inference

Every generated token requires sequential execution through all transformer layers; if layers are sharded across network nodes via Tensor Parallelism, the cluster must execute two AllReduce operations per layer over network links. Distributed model inference differs fundamentally from distributed training. Training optimizes for aggregate global throughput across massive batch sizes, where network communication can be hidden behind backward gradient calculations. In contrast, online inference is strictly latency-sensitive, bifurcated into two distinct operational phases with opposing computational characteristics.

Multi-Node Tensor Parallel vs Pipeline Parallel Partitioning Architecture

Prefill Phase vs Autoregressive Decode Phase

The lifecycle of an LLM generation request consists of two distinct stages:

  1. Prefill Phase (Prompt Processing): The model processes the entire prompt sequence in parallel. This phase is highly compute-bound, achieving high arithmetic intensity (FLOPs per byte) that efficiently saturates tensor cores. Parallelizing the prefill phase across more GPUs dramatically reduces Time-to-First-Token (TTFT).
  2. Decode Phase (Token Generation): Tokens are generated autoregressively, one token at a time. Each generated token requires reading all model weights from HBM into on-chip cache to execute matrix-vector multiplications. This phase is entirely memory-bandwidth bound. Scaling decode throughput requires minimizing communication synchronization latency between tokens.

Tensor Parallelism (TP) shards individual weight matrices within each linear layer across GPUs. During decoding, every single transformer layer requires two collective AllReduce operations across all participating GPUs. If a model has 80 layers, generating a single token requires 160 sequential AllReduce operations:

Autoregressive Token Generation Communication Profile:
Model: 80 Transformer Layers | Generation: 1 Output Token
Sequential Communication Operations Required:
Layer 1: Self-Attention AllReduce -> MLP AllReduce (2 operations)
Layer 2: Self-Attention AllReduce -> MLP AllReduce (2 operations)
...
Layer 80: Self-Attention AllReduce -> MLP AllReduce (2 operations)
Total: 160 AllReduce steps PER TOKEN.
Within NVLink Domain (50ns latency):
160 * 50ns = 8.0 microseconds communication overhead per token (< 1% of step time).
Across 400GbE Network Fabric (1,200ns latency):
160 * 1,200ns = 192.0 microseconds network overhead + TCP serialization = 12 to 18ms delay PER TOKEN.
(Result: Token generation speed collapses from 60 tokens/sec down to 18 tokens/sec).

Enterprise Relevance: Optimizing Time-to-First-Token and Inter-Token Generation Latency

Prefill is compute-bound and scales efficiently with high Tensor Parallelism, reducing TTFT, whereas decoding is memory-bandwidth and communication-bound, where Pipeline Parallelism introduces bubble delays. Because crossing inter-node network cables for 160 AllReduce operations introduces fatal serialization penalties, inference topology architects must balance Tensor and Pipeline Parallelism based on user SLA priorities.

LLM Inference Prefill vs Decode Phase Latency Dynamics Flowchart

The Trade-Off: TP-Within-Node vs PP-Across-Nodes

Pipeline Parallelism (PP) groups sequential layers into blocks and assigns each block to a different GPU or node. Instead of synchronizing after every layer, PP communicates only at stage boundaries, transmitting intermediate activation vectors point-to-point. For an 80-layer model split across two nodes (PP=2), communication occurs only once per forward pass (transmitting a compact activation tensor), completely eliminating intra-layer AllReduce network bottlenecks.

However, Pipeline Parallelism introduces "pipeline bubbles": upstream nodes sit idle while downstream nodes process subsequent layer blocks. In online serving, continuous batching engines (such as vLLM and TensorRT-LLM) mitigate bubble overhead by interleaving concurrent user requests across pipeline stages:

Parallelism StrategyInter-Node Communication PatternTTFT Impact (Prefill)ITL Impact (Decode)Recommended Scope
Pure Tensor Parallelism (TP=16)160 AllReduce operations across network cablesFastest TTFT (high FLOP saturation)Severe latency degradation (>40ms/token)Unsuitable across multi-node fabrics
Pure Pipeline Parallelism (PP=4)Point-to-point activation transfers between nodesSlower TTFT (pipeline serialization bubble)Stable ITL (no per-layer network stops)Batch offline processing
Hybrid Parallelism (TP=8 intra, PP=2 inter)NVLink for TP; 400GbE RoCEv2 for PP boundariesBalanced TTFT (< 250ms for 2K context)Sub-22ms Inter-Token LatencyProduction frontier model serving (405B)

On high-performance infrastructure such as OneSource Cloud private AI infrastructure, bare-metal nodes feature dedicated 8-way SXM5 NVLink interconnects internally and dedicated, non-blocking 400GbE RoCEv2 networks externally. This architectural design enables technology teams to deploy hybrid 2D/3D serving topologies that completely confine Tensor Parallelism to ultra-fast NVLink domains while scaling massive models across physical server nodes at line rate.

Operational Boundaries: Sizing Multi-Node Topologies for 70B, 405B, and MoE Architectures

Configure 16x H100 GPUs across two 8-GPU nodes using TP=8 strictly within each node's NVLink crossbar, and PP=2 across the nodes over dedicated 400GbE RoCEv2 links, accompanied by micro-batching to minimize pipeline bubbles. To establish production-ready inference deployments, infrastructure engineers should align cluster topology with model parameter scales.

Multi-Node LLM Inference Latency and Throughput Telemetry Benchmark

1. Llama-3-70B Topology: Strict Single-Node TP=8

For 70B models, never span inference across multiple physical nodes. A single 8-way H100 node configured with TP=8 accommodates full 16-bit weights (140 GB) and leaves 500 GB of HBM3 for PagedAttention KV cache blocks. This configuration delivers sustained inter-token generation speeds of 45 to 65 tokens per second per stream.

2. Llama-3-405B Topology: Hybrid TP=8 Intra-Node, PP=2/PP=4 Inter-Node

When deploying 405B in FP8 precision (410 GB static weights), deploy a minimum of two 8-way H100 nodes (16 GPUs total):

  • Node 1 (GPUs 0-7): Layers 1 through 63 executed under TP=8 over local NVLink.
  • Node 2 (GPUs 8-15): Layers 64 through 126 executed under TP=8 over local NVLink.
  • Inter-Node Interconnect: Dedicated 400GbE RoCEv2 point-to-point queue pairs transmitting activation tensors between Layer 63 and Layer 64.

This hybrid topology achieves conversational inter-token generation speeds (under 25ms per token) while providing over 800 GB of aggregate VRAM for high-concurrency KV caching.

Frequently Asked Questions About Model-Parallel Inference Topologies

Why shouldn't Tensor Parallelism be extended beyond 8 GPUs on an H100 cluster?

Because H100 nodes feature 8 GPUs interconnected via full NVLink; extending TP to 16 GPUs requires crossing inter-node network cables, increasing AllReduce latency by an order of magnitude.

Can OneSource Cloud infrastructure host multi-node 405B LLM inference?

Yes, OneSource Cloud provides multi-node clusters equipped with 8x H100 or H200 GPUs interconnected with dedicated, non-blocking 400GbE RoCEv2 fabrics, enabling hybrid TP=8 and PP=2/PP=4 configurations that serve 405B models with predictable inter-node RDMA latency.

Previous: Private LLM Deployment: Infrastructure Requirements for Enterprise Teams
Next: Sizing KV Cache Memory and Paged Capacity for LLM Serving Latency
Related Articles