#792 · AI & Technology Tool

Prompt Caching GPU Requirement Calculator

Estimate the accelerator count needed for a prompt-cached inference workload. The calculation treats uncached prefill, cached-prefix handling, and output decoding as separate capacity demands, applies a target utilization limit, and adds optional redundancy. This makes the bottleneck visible instead of averaging incompatible processing stages into one token rate.

Calculator

GPU sizing assumptions
req/s
Sustained production request rate.
tokens
Tokens requiring normal prefill.
tokens
Prefix tokens handled through cache.
tokens
Generated tokens per response.
tok/s
Effective uncached prefill capacity.
tok/s
Effective cached-token capacity.
tok/s
Aggregate output-token capacity per GPU.
%
Maximum planned sustained utilization.
GPUs
Extra devices for failure or maintenance.

How to use this calculator

  1. Enter the sustained request target and token mix per request.
  2. Supply measured per-GPU throughput for uncached prefill, cache handling, and decoding.
  3. Choose a sustainable utilization ceiling and optional redundant GPU count.
  4. Use the required integer total for provisioning and the stage loads to identify the bottleneck.

Formula

Stage GPU load = request rate × stage tokens/request ÷ stage throughput/GPU ÷ utilization
Capacity GPUs = ceiling(max(stage loads))
Total GPUs = capacity GPUs + redundancy GPUs

What the result means

The total is an integer provisioning estimate. The largest stage load determines capacity because each stage must keep pace with incoming work. Redundancy is added after rounding the workload requirement.

This stage-bottleneck model assumes the stated GPU rates are compatible with your serving architecture. Memory capacity, model replicas, tensor parallelism, and cache residency may impose a higher minimum.

Example calculation

At 20 requests/s, 800 uncached, 3,200 cached, and 400 output tokens, with per-GPU rates of 50k, 500k, and 8k tok/s at 70% utilization:

Prefill load = 0.46 GPU
Cache load = 0.18 GPU
Decode load = 1.43 GPU
Capacity = 2 GPUs; +1 redundant = 3 GPUs

Tips for better results

  • Benchmark aggregate decode throughput at the intended batch policy.
  • Check model-memory and KV-cache limits in addition to compute throughput.
  • Size against a peak interval, not only a daily average.
  • Keep utilization below 100% to limit queue growth.
  • Treat redundancy as unavailable capacity during normal planning.

Frequently asked questions

Why is the maximum stage load used instead of adding all three loads?

The model treats stages as separate capacity constraints. If they share the same compute pool without overlap, a summed-work model may be more conservative.

Does the result guarantee the model fits in GPU memory?

No. Verify model weights, runtime overhead, batching, and KV-cache memory separately.

Should redundant GPUs count toward normal throughput?

This calculator excludes them from required workload capacity so they remain available for failure or maintenance.

What utilization target should I enter?

Use a level supported by your latency tests and operating policy; lower targets provide more queue and burst headroom.

How does a higher cache hit share affect GPU count?

Moving tokens from uncached prefill to faster cached handling can lower prefill load, but decoding may remain the bottleneck.

Variables and units

VariableMeaningUnit
λTarget request raterequests/second
uTarget utilizationdecimal
λ × tokensStage token demandtokens/second
SStage throughput per GPUtokens/second/GPU
NProvisioned GPUswhole GPUs

Browse calculator categories

22 category hubs