Capacity planning
LLM GPU memory and KV cache calculator
Estimate model weight storage, per-token KV-cache capacity, concurrent sequences, and minimum tensor parallelism across common GPUs.
Open gpu memory toolInteractive engineering utilities
Back-of-the-envelope capacity, roofline latency, token-cost, and launch-configuration calculators built with explicit formulas so you can verify every assumption before renting GPUs.
Capacity planning
Estimate model weight storage, per-token KV-cache capacity, concurrent sequences, and minimum tensor parallelism across common GPUs.
Open gpu memory toolPerformance modeling
Model prefill TTFT, decode TPOT, arithmetic intensity, and GPU memory-bandwidth vs. Tensor Core compute bottlenecks.
Open latency & roofline toolUnit economics
Compare self-hosted GPU hourly spend at realistic utilization against per-token API pricing and find your break-even load.
Open cost per 1m tokens toolDeployment configuration
Generate pinned CLI and Docker launch commands with context limits, KV memory fractions, chunked prefill, and tool parsers.
Open command builder toolThey use exact parameter byte sizes, KV-cache tensor formulas, vendor datasheet Tensor Core FLOPs, and GPU memory bandwidths. Real throughput and VRAM usage also include framework buffers, CUDA graph capture memory, paged block fragmentation, and request scheduling overhead, so verify final figures by benchmarking your pinned container.
Leave 1.5 to 4 GiB per GPU for PyTorch runtime state, CUDA graphs, temporary prefill activations, and quantization metadata. Long contexts or high chunked-prefill token budgets need more activation headroom.
Generating one token at batch size 1 performs roughly 2 FLOPs per parameter while reading all resident weights from HBM, yielding an arithmetic intensity near 1 to 2 FLOPs per byte. An H100 BF16 Tensor Core reaches peak compute only near 295 FLOPs per byte, so decode waits on memory bandwidth until batching amortizes weight reads.
Self-hosting beats per-token APIs when sustained 24/7 traffic keeps your fleet above the break-even utilization threshold. Spiky or low-volume workloads often cost less per million tokens on a metered API because idle GPU hours stay expensive.