Hypothetical scenario. Northwind has eligibility rules for reusing answers, but uncached requests still need serving capacity. Dev proposes more accelerators. Maya asks whether they will handle independent requests, while Priya asks whether a complete model fits on any one worker.
Maya: “Will another device give us another place to send a question?”
Dev: “That depends on whether it holds a replica or a partition of the same model.”
Priya: “Draw the execution group before counting independent serving capacity.”
You will distinguish complete replicas, tensor partitions and pipeline stages, then relate their request paths to fit, communication and failure. The cache decisions from page 35 reduce some work; they do not settle how the remaining model work is placed.
Which devices cooperate on a single request?
Northwind's support model needs more memory than the selected worker provides. Dev proposes four accelerators. Priya wants predictable answer latency and Sam wants a recovery plan when one device fails. Before approving the allocation, the team must decide whether the devices hold independent complete models or collaborate on the same model execution.
Four replicas do not solve a model that cannot fit one replica. Dividing a model can solve that storage constraint while making each request depend on more participants. The topology therefore changes the failure and timing contract as well as the resource ledger. Draw the request's actual path before comparing capacity.
Replicas increase independent serving capacity
A replica contains a complete executable model deployment and handles its assigned requests. Load balancing can distribute independent work among replicas. Each replica still needs its own compatible model state and request cache. The total capacity depends on workload shape and the resources each request holds, not just the number of healthy processes.
Readiness should reflect whether the replica can serve the declared task, including artifact availability and required dependencies. A process accepting a health request can still lack enough memory for an admitted long session. Separate basic process health from admission and task availability so the router does not direct work based on an incomplete signal.
Failure of one independent replica can leave other replicas available, but an interrupted stateful conversation may need application recovery. A load balancer does not reconstruct an already generated partial response or confirm whether a tool effect happened. Preserve request identity and action reconciliation outside the serving topology.
Count independent serving groups rather than devices
Hypothetical scenario. Tensor or pipeline partitions cooperate to execute one model; replicas are independently eligible serving groups. Losing one required partition can remove its whole group, so a device count alone can overstate survivor capacity.
| Artifact | Concrete evidence | Decision boundary |
|---|---|---|
| Serving group | required devices/partitions, model identity | Shared failure boundary |
| Replica eligibility | loaded, compatible, admitted capacity | Routing choice |
| Admission envelope | token shapes, KV state, deadline | Useful work limit |
Record model/adapter identity, required topology and group-level admission. Routing distributes admitted requests among eligible groups, while the scheduler inside each group handles memory and token work. A new replica may need model loading and warmup before it contributes qualifying capacity. Scaling decisions need lead time, shared dependency limits and mixed request shapes, including long prompts and abandoned sequences.
Tensor parallelism divides work inside selected operations
Tensor parallelism partitions selected weight tensors and their computations across devices. Intermediate results require communication according to the layer design. It can make a model feasible when a single device cannot hold the required representation, while interconnect behavior becomes part of each request's critical path.
Choosing more partitions can reduce a local weight shard while changing collective overhead and the amount of useful local work. Do not infer linear latency improvement. Small per-device operations, interconnect contention or a slow participant can dominate. The supported architecture and runtime determine which partition counts and attention arrangements are valid.
The vLLM parallelism and scaling documentation describes serving deployment choices and their requirements. Check the specific supported setup and network assumptions. A configuration name is not proof that the model, kernels and topology are compatible.
Pipeline stages introduce a scheduling question
Pipeline parallelism places model stages on different workers and moves intermediate activations between them. A request must pass through its required stages in order. Independent microbatches can occupy different stages simultaneously, but an isolated request cannot skip those dependencies.
Autoregressive generation adds a repeated dependency: later token work depends on the current sequence state. A prefill scheduling example therefore does not automatically describe decode latency. Separate the input-processing workload from the continuing-token workload when evaluating the topology. They may benefit from different batching and placement decisions.
Uneven stages can create persistent idle time. If one stage takes much longer than the others, adding workers to a different stage may not improve the bottleneck. Measure stage service times and transfer costs under representative inputs rather than dividing layers evenly and assuming that layer counts predict equal work.
A weight shard is only part of local model fit
Hypothetical scenario. Choose a model with 28 GiB of weight payload and a four-way perfectly balanced partition. Selected local weight payload is 28 / 4 = 7 GiB. Now assume 2 GiB of request cache and 1 GiB of temporary and runtime allocations per worker. The selected total is 7 + 2 + 1 = 10 GiB per worker.
An 8 GiB worker cannot satisfy that example even though the weight shard fits. Increasing the partition count may change cache ownership and communication rather than simply dividing every term. Derive those components from the architecture and runtime, then validate the observed peak. This is a selected calculation, not a named model's deployment requirement.
Replicating this four-device serving group doubles independent groups and requires eight devices for two groups. It does not turn the four participating devices into four independent replicas. Keep the replica count and the per-replica parallelism shape explicit in capacity and availability records.
Compute the fill and drain before claiming throughput
Consider a deliberately simplified prefill pipeline with four balanced stages. Each stage takes an assumed ten milliseconds per microbatch, with no transfer cost and no overlap within a stage. One microbatch needs four stages, so completion takes 4 × 10 = 40 milliseconds.
For four independent microbatches flowing through this ideal pipeline, the selected completion interval is (4 + 4 − 1) × 10 = 70 milliseconds. There are 4 × 4 = 16 useful stage-slots across 4 × 7 = 28 available stage-slots during fill and drain. The selected utilization is 16 / 28 ≈ 57.14%.
Increasing to 16 microbatches gives (16 + 4 − 1) × 10 = 190 milliseconds and 64 / 76 ≈ 84.21% utilization. That improves the toy pipeline's fill/drain ratio while keeping more work in flight. It does not prove better interactive latency: batching waits, decode dependencies, unequal stages and memory can change the result.
Bandwidth and placement can dominate a partition choice
Choose a hypothetical intermediate payload of 64 MiB and an effective transfer bandwidth of 8 GiB per second. Converting the payload gives 64 / 1,024 = 0.0625 GiB. Its payload-only time is 0.0625 / 8 = 0.0078125 seconds, approximately 7.81 milliseconds, before latency and coordination overhead.
If the same boundary crosses a slower or contended path, the transfer can become a large fraction of useful stage time. Different operations may also require several exchanges. Placement should reflect the communication graph and measured interconnect behavior, not just whether each worker is individually available.
Keep inference participants on trusted network paths and authenticate control and artifact access. Model parallelism is a performance arrangement, not a substitute for network authorization or data-handling policy. A fast internal link can still carry sensitive activations and model material.
In the wild: deployment documentation names separate topologies
vLLM's parallelism documentation treats model placement and scaling as explicit deployment decisions. It provides a concrete implementation reference for checking tensor and pipeline arrangements rather than treating “distributed inference” as a single feature. Read current requirements against the actual model and cluster.
Hypothetical scenario. Northwind loses a worker inside one four-device serving group. The remaining three workers are healthy processes but cannot continue that group's configured request path. The router should stop assigning work to that incomplete group and direct eligible new work only to a separately ready group. An interrupted stream still needs application-level handling.
The serving group is a failure unit the application must understand
Record which workers form a model-serving group and what makes that group ready. Replacing a device can require reloading artifacts and reconstructing runtime state. A retry against another group consumes more inference work and may generate a different response; it does not continue the original stream automatically.
Bound retries under one request budget. Avoid replaying an already executed tool action merely because model generation restarted. The existing API operation chapter and durable-agent chapter provide those request and action distinctions. Distribution should preserve them rather than introduce an invisible second retry owner.
Choose fit, throughput and continuity as separate acceptance dimensions
Use replicas when a complete deployment fits and independent request capacity is the relevant constraint. Use tensor or pipeline arrangements when their supported partitioning addresses fit or execution needs, with an acceptable communication and scheduling cost. Combine them only with an explicit count of resources per complete replica group.
Measure time to first output, continuing-token behavior, completed task throughput and allocation at representative sequence lengths. Aggregate tokens per second can hide interactive waiting or one slow group. Keep the task and input distribution consistent when comparing candidate topologies.
A topology that makes a model feasible can still be the wrong application choice if recovery is too slow or latency violates the task contract. Consider a smaller accepted model or a different workload boundary before assuming that the largest feasible distributed deployment is the desired outcome.
Observe the complete group and its individual bottlenecks
Record queue waiting, stage computation, collective waiting and final response progress under the same request identity. A single group-level latency number can show a regression without identifying a slow device, an uneven stage or a transfer boundary. Conversely, healthy local utilization does not establish that the complete group is making useful progress.
Keep these measurements scoped to the actual workload and topology. Changing sequence lengths, batch depth and replica count at the same time can obscure the cause of an apparent improvement. A controlled comparison should preserve the task distribution and describe which resource or placement decision changed.
Test the serving group boundary
One device fails in a partitioned model. May the remaining devices be counted as unchanged replica capacity?
Reveal the design reasoning
Not if that group requires the missing partition. Remove or recover the group under its actual topology and recalculate admitted work. Spare device bytes are not an executable model.
Decision: Scale and fail over using qualifying group-level capacity and explicit startup evidence.
Identify the independent unit of service
Four devices each hold one quarter of a model. Does the router have four independent replicas?
No. They form one collaborating serving group if all four participate in one request path. Two independent groups require eight devices under that topology. Failure and admission must be evaluated for complete ready groups.
A 7 GiB weight shard fits an 8 GiB worker. Is the deployment approved?
Not without the remaining allocation. The selected cache and runtime terms add 3 GiB, reaching 10 GiB. Inspect peak local allocation and architecture-specific cache ownership before approving model fit.
The ideal four-stage pipeline reaches higher utilization with more microbatches. Must user latency improve?
No. Fill/drain efficiency and interactive latency are different outcomes. More in-flight work can add waiting and memory pressure. Evaluate prefill and autoregressive decode under the actual arrival and sequence distribution.
Northwind decision log
- Declare the devices and state that form one complete serving group.
- Account for communication, cache and temporary memory alongside weight partitions.
- Compare task latency and recovery separately from aggregate throughput.
Go deeper: replication and serving partitions
- Video lecture: Distributed Systems 5.1: Replication, Martin Kleppmann. Distinguish redundant service copies from participants in one computation.
- Book chapter: Distributed Machine Learning Patterns, chapter 4: Model serving patterns, Yuan Tang. Compare replicated and sharded services.
- Book chapter: Distributed Machine Learning Patterns, chapter 6: Operation patterns, Yuan Tang. Relate scheduling and operational metadata to the serving topology.
- Primary document: Parallelism and Scaling, vLLM contributors. Verify the supported deployment arrangement and requirements.
Carry the decision forward
Northwind can distinguish independent serving capacity from a model divided across devices. Page 37 combines placement with cache eligibility, admission and provider routing in a gateway whose destinations must preserve the application contract.