How the calculation works

All memory is in GB (10⁹ bytes), as GPU vendors print it. Every model figure comes from the model’s config.json, model card and file list on Hugging Face; every GPU figure from NVIDIA’s or AMD’s spec page. Both are listed with their dates under the calculator.

  • Weights (GB) = the size of the model’s published checkpoint at that precision (its weight files on Hugging Face), which includes every expert of a mixture-of-experts model, any vision encoder and any multi-token-prediction layers. Below the lowest published precision it is an estimate: parameters × bits ÷ 8.
  • KV cache per token (bytes) = the elements each token adds on the layers whose cache grows with context × KV bits ÷ 8. For a grouped-query layer that is 2 × key-value heads × head dimension, the formula in NVIDIA’s Mastering LLM Techniques: Inference Optimization with the model’s key-value heads. For a multi-head latent attention layer (Kimi K3, GLM-5.3) it is the latent width, kv_lora_rank + qk_rope_head_dim. DeepSeek-V4.1-Flash’s card states its cache as 890 bytes per token, which is used as given.
  • Per sequence = KV per token × context, plus caches capped by a window (MiMo’s sliding-window layers, 128 tokens; MiMo’s 5-layer speculative-decoding drafter, 1,024 tokens; DeepSeek-V4.1-Flash’s sliding window, 128 tokens), plus the fixed state of linear-attention layers (Qwen3.8, Kimi K3, GLM-5.3-Flash) worked out from the config.
  • KV cache (GB) = per sequence × concurrent sequences.
  • Memory needed = (weights + KV cache) × (1 + overhead %).
  • Usable per GPU = GPU memory × usable share. The default of 92% is vLLM’s default --gpu-memory-utilization.
  • GPUs per model copy = memory needed ÷ usable per GPU, rounded up, then laid out as tensor parallel groups of 1, 2, 4 or 8 GPUs within a server and pipeline stages beyond that.
  • Copies: the calculator also tries splitting the sequences across several copies of the model, each holding its own weights, and keeps the option with the fewest GPUs.
  • Servers = GPUs ÷ GPUs per server, rounded up. GPU power (kW) = GPUs × the GPU’s maximum watts ÷ 1,000 (for the Ryzen AI Max systems, the whole processor’s maximum TDP).

ITBroker.com planning assumptions (not published figures; the first two are editable on the page or in the GPUs-per-server field):

  • Overhead of 10% on weights and cache, for activations, buffers and fragmentation.
  • GPUs per server of 8 for PCIe data center cards, 4 per workstation and 2 per desktop. (8 per HGX and Instinct board and 72 per NVL72 rack are vendor figures.)
  • Linear-attention state at 4 bytes per value. Qwen3.8’s config sets this; for Kimi K3 and GLM-5.3-Flash it is our assumption.
  • Sparse-attention indexer keys (GLM-5.3, GLM-5.3-Flash, Qwen3.8-Flash-Next) counted uncompressed at the KV precision, which overstates them slightly.
  • MiMo’s drafter counted always (the model card’s quick start turns speculative decoding on), with each of its 5 layers shaped like the model’s own sliding-window layers, since the card doesn’t give its shape.
  • DeepSeek-V4.1-Flash’s sliding window counted as separate keys and values of 512 values each on all 40 layers at the KV precision; DeepSeek doesn’t publish its size, so this is likely an overestimate.

Other limits: lower-precision estimates are a floor, since quantized files keep some layers at higher precision. With plain tensor parallelism, serving software copies the cache of latent-attention and few-KV-head models to every GPU; the calculator assumes the cache is split (data-parallel attention), so test the exact configuration you plan. Treat the GPU count as a starting point to test, not a final design. NVIDIA Vera Rubin and AMD Instinct MI455X aren’t listed yet: their memory is published but their per-GPU power isn’t.

Worked example

Serving MiMo-V2.6-Flash as released (MXFP4 experts; checkpoint 177.74 GB; 309B total and 15B active parameters) with a BF16 KV cache, for 64 concurrent sequences of 65,536 tokens, on H200 GPUs (141 GB, up to 700 W), with the default 10% overhead and 92% usable share. The model card lists 48 layers: 39 sliding-window layers (8 key-value heads, window 128) and 9 global-attention layers (4 key-value heads), with keys 192 wide and values 128, plus a 5-layer drafter with a 1,024-token window.

  • Weights: 177.74 GB, the published checkpoint.
  • KV cache per token: 9 layers × 4 heads × (192 + 128) × 2 bytes = 23,040 bytes.
  • Per sequence: 23,040 × 65,536 = 1,509,949,440 bytes, plus the sliding-window cache of 39 × 8 × 320 × 128 tokens × 2 bytes = 25,559,040 bytes, plus the drafter’s cache of 5 × 2,560 × 1,024 tokens × 2 bytes = 26,214,400 bytes: 1.56 GB.
  • KV cache: 1.56 GB × 64 = 99.95 GB.
  • Memory needed: (177.74 + 99.95) × 1.1 = 305.5 GB.
  • Usable per H200: 141 × 92% = 129.72 GB, so memory needs 3 GPUs (305.5 ÷ 129.72 = 2.35, rounded up). Tensor parallel groups come in 1, 2, 4 or 8, so the layout is 4 × H200 in one 8-GPU server. Two copies of 32 sequences would need 2 GPUs each, also 4, so one copy is kept.
  • GPU power: 4 × 700 W = 2.8 kW, before the server, networking and cooling.
  • Precision: the H200’s spec lists FP8 but not FP4, so the FP4 experts need serving software that unpacks them; the memory figures are the same.

Consumer cards and small systems

The models listed are large. The smallest, Qwen3.8-27B, fits one RTX 5090 (32 GB) only at the FP4 estimate and with few sequences: at 32,768 tokens one sequence needs about 17.8 GB, and eight need two cards. Its published FP8 checkpoint needs two RTX 5090s even for one sequence, and 16 GB cards need two cards even at FP4 and 8,192 tokens. A Ryzen AI Max+ 395 system with 96 GB set aside as GPU memory holds the FP8 checkpoint with four 32,768-token sequences and room to spare. Every other model listed needs data center GPUs, or more consumer cards than one desktop holds.

Power and space

Once you know the GPU count, the next question is where they run. GPU servers are dense: an 8-GPU server’s GPUs alone can draw several kilowatts before CPUs, fans and cooling. Use the colocation power calculator to turn the result into circuits (the next-step link fills in the GPU count and watts), the server room BTU calculator for the heat, and see colocation and AI infrastructure for where to put them. Model and GPU specifications are dated under the calculator; check them against the exact model version and hardware you buy.