GPU memory & replicas
Weight memory = parameters × weight bits ÷ 8. KV cache = 2 × layers × KV heads × head dimension × cache bytes × total tokens × requests per replica. We add your overhead percentage, then fit each GPU within its usable memory allowance. Tensor parallelism divides weight memory but replicates KV heads when there are fewer KV heads than GPUs. Attention heads must divide across the selected GPU group.
The replica count is the larger of throughput demand and peak-concurrency demand. Optional standalone prefill demand is added to decode service demand. Additional spare servers are fully budgeted and powered. Throughput uses output tokens per second, with your benchmark and utilization target. Quantization metadata, activations and workspaces are approximated by overhead.