Quick summary · Chapter 10
Specialized Hardware
The essential ideas, decisions, and diagrams from this chapter. Follow the section links for the examples, calculations, and fuller argument.
The main idea
Suppose a team asks for eight GPUs to run a model. I’d ask why they need eight and why they need their own. A regional model service may already keep requests where they need to be, and a negotiated API price may make sense if the traffic holds up. If the team still needs its own devices to meet the latency or placement requirements, I want to see what it can serve on the hardware it can get. Before anyone buys a fleet, someone has to find enough space, power and cooling to run it, and say what customers can expect when a machine fails.
The arithmetic a planner owns
The raw weight payload is parameters times bytes per parameter. A seventy-billion-parameter model therefore needs about 140 GB at 16 bits, 70 GB at 8 bits or 35 GB at 4 bits, using decimal gigabytes. Actual allocation also includes scales, metadata and runtime state. Quantization can reduce memory and alter quality or speed; evaluate the chosen method rather than assuming a fixed quality loss.1
For a conventional transformer attention cache, the bytes per retained token are:
The factor of two counts keys and values. Grouped-query attention can use fewer key-value heads than query heads, and other attention designs need different calculations. PagedAttention addresses cache allocation and sharing; it does not imply that every seventy-billion-parameter model has the same cache size.2 The memory-only concurrency bound is:
Take a hypothetical configuration with 80 layers, 8 key-value heads, head dimension 128 and two bytes per cached value. The cache per token is 2 × 80 × 8 × 128 × 2 = 327,680 bytes. At 8,000 retained tokens, a request needs 2,621,440,000 bytes, or about 2.62 GB, before allocation overhead. Suppose 70 GB of weights fit in 141 GB and we reserve 14.2 GB for other use: 141 − 70 − 14.2 = 56.8 GB remains. The memory bound is = 21 requests. With 64 key-value heads instead of eight, each cache would be eight times larger and the bound would fall to two. These invented configurations show why head count belongs in the calculation, not whether either workload meets its latency target.
What must be measured
Monthly token volume leaves out the busy minutes that set the size of the fleet. Measure the model and request mix under the latency target, then talk to the platform team about which devices they can put together before launch. A serving team can find a workable configuration on the bench while the launch still waits for enough hardware in one place.
An experiment on shared hardware, before the fleet
Rent time to answer the question that would otherwise make you buy a fleet on faith. A shared research service can run interventions against a model it already hosts. For a serving benchmark you control, rent a GPU pod or use a function platform that provides a GPU. Both rented options meter the time the work uses.
Renting makes it cheap to discover that the model, machine or performance target needs to change. Use the time to measure goodput and learn what failure and maintenance will cost. Those results are what you take into the fleet decision.
The sizing process
The experiment gives you a rate at which the actual configuration can serve requests on time. Apply that rate to the busy interval, then look at how the fleet behaves during maintenance and what happens when a machine fails. The supplier’s purchase unit can change the answer even when the workload stays the same, as the eight-device example shows.
When another team reruns the test, give them enough to set up the same workload and understand the purchase it informed:
- Workload: peak arrival rate, prompt and output lengths, TTFT and TPOT objectives and the share that must meet them.
- Configuration: model, precision, engine version, device, VM size, devices per replica.
- Evidence: benchmark command and date, goodput per device, memory bound, bandwidth floor.
- Failure and supply: purchase unit, failure allowance, maintenance plan, supply arrangement, lead time, fallback.
- Revisit when: the model, precision or prompt lengths change, goodput falls, or a contract date nears.
vLLM, “Quantization”, checked October 3, 2026. Methods and supported hardware differ by release. Raw weight arithmetic excludes scales, metadata and runtime allocations.↩︎
Woosuk Kwon and colleagues, “Efficient Memory Management for Large Language Model Serving with PagedAttention,” SOSP 2023, https://arxiv.org/abs/2309.06180. Describes the cache memory lost to reservation and fragmentation under contiguous allocation, and paged allocation as the remedy. Its OPT-13B example applies the same per-token formula: 2 × 5,120 × 40 layers × 2 bytes, about 800 KB.↩︎