Skip to content
Friendly disclaimer: flozi00 TechHub is a solo side-project next to a full-time job — personal learning notes, no official statements. Verify critical steps yourself.

HBM Capacity and KV-Cache Economics

How context length consumes GPU memory, why HBM uses more wafer input per bit than DDR5, and what NVIDIA and TrendForce have actually said about Rubin and Rubin Ultra capacity.

3 min readflozi00
aimachine-learninggpuhbmgpu-memoryinferencehardware
Skip to the full article
Watch · explore · understand

Turn a memory limit into a session budget

After weights and runtime reserves, the remaining fast memory sets a resident-context capacity.

AI-assisted learning visualization · schematic article explanation

Step 1 / 3Subtract what is already occupied

Weights, activations and runtime workspaces consume HBM before KV is allocated. A capacity reduction therefore acts on the remaining KV pool, not on a wholly empty device.

Costs & resourcesCurrent stepSelect a block to explain it
Available HBM capacity
Use the actual system’s capacity, not a speculative SKU.
Weights + runtime reserves
These bytes are unavailable for the KV pool.
Remaining KV pool
Available HBM minus the other resident state.
  1. Available HBM capacity Remaining KV pool
    total capacity
  2. Weights + runtime reserves Remaining KV pool
    subtract
What to remember

Scarce HBM constrains both the memory budget and placement choices; resident capacity alone is not serving throughput.

Supply forecasts and hypothetical SKU comparisons are dated scenarios. Prefix sharing, paging and offload can change the simple per-session budget.

Terms and the complete walkthrough
Resident
State currently occupying the memory tier being budgeted.
KV pool
The part of GPU memory available to retain attention keys and values.
  1. Subtract what is already occupied

    Weights, activations and runtime workspaces consume HBM before KV is allocated. A capacity reduction therefore acts on the remaining KV pool, not on a wholly empty device.

  2. Size one session correctly

    For conventional attention, retained KV scales with layers, KV heads, head dimension, element size and tokens. Latent or hybrid architectures require their own state definition.

  3. Interpret the quotient as capacity

    Dividing the pool by per-session bytes estimates how many contexts can remain resident. It does not measure requests per second: active decode also consumes bandwidth and compute, while paused sessions may live elsewhere.

All connections

  • Available HBM capacity → Remaining KV pool: total capacity
  • Weights + runtime reserves → Remaining KV pool: subtract
  • Model and context geometry → KV bytes per resident session: size the cache
  • Remaining KV pool → Resident-session capacity: available budget
  • KV bytes per resident session → Resident-session capacity: cost per session
Set your own pace. Pause at any time or select a step directly.

High-bandwidth memory (HBM) capacity affects how many long-context requests an inference server can keep resident. Supply constraints and allocation matter too. This guide separates a per-request KV-cache calculation, published GPU specifications, and forecasts about future memory configurations. Neither compute nor memory alone predicts realised serving throughput.

Calculate the KV budget first

For conventional multi-head, grouped-query or multi-query attention, an uncompressed KV cache has approximately

2 × layers × KV heads × head dimension × bytes per element × cached tokens

bytes per sequence. The factor two is for keys and values. Allocation blocks, sliding windows, prefix sharing, quantisation, other model state and serving overhead can change actual memory use. Architectures such as DeepSeek's multi-head latent attention require their own cache-layout calculation rather than blindly using this formula. See the KV-cache guide.

Here is a hypothetical 64-layer, 128-dimensional, two-byte-per-element comparison at 100,000 cached tokens:

Attention layoutKV headsBytes per tokenKV per 100k-token sequence
Multi-head attention642,097,152209.7 GB
Grouped-query attention8262,14426.2 GB
Multi-query attention132,7683.28 GB

These are decimal GB and arithmetic storage figures, not measured GPU occupancy or concurrent throughput. An idle agent whose KV state has been offloaded does not consume the same HBM as one whose complete cache stays resident. Prefix reuse and paging also make “one agent equals one full cache” an unreliable general rule.

Supply side: what the sources actually establish

Micron described an approximately 3:1 wafer-supply trade ratio for HBM versus DDR5 to produce the same number of bits, with the ratio expected to rise in later HBM generations.1 This is an industry estimate, not a universal conversion for every process and product. TrendForce projected that HBM would account for roughly 30% of DRAM wafer input but 13% of DRAM bit supply among the top three suppliers by the end of 2027.2 Those figures describe a forecast and corroborate the direction of the wafer trade-off; they are not a measured law of physics or a guarantee of 2027 output.

NVIDIA publishes up to 288 GB HBM4 per Rubin GPU in preliminary specifications.3 NVIDIA's rated HGX B300 is 270 GB HBM3E per GPU; GB300 NVL72 lists 279 GB.4 These products should not be grouped under a single “288 GB B300” specification.

TrendForce reported in August 2026 that NVIDIA was evaluating several Rubin Ultra memory-stack options and explicitly said the final specification had not been determined.5 A possible lower-capacity variant is a scenario, not an announced 192 GB Rubin Ultra SKU or a confirmed reduction from the 288 GB Rubin GPU. The earlier version of this article incorrectly presented that comparison as a product step-down.

A labelled capacity scenario

Assume, only for illustration, a GPU with 288 GB usable rated memory and 40 GB reserved for weights, activations and runtime; the remaining 248 GB could hold at most 248 / 7.0272 ≈ 35.3 complete 100k-token sessions if a particular model used 70,272 KV bytes per token. Under an otherwise identical hypothetical 192 GB GPU, the remaining 152 GB could hold 152 / 7.0272 ≈ 21.6 such sessions. This is a 39% reduction in the scenario's KV budget (152 / 248), not evidence of Rubin Ultra's eventual specifications or a measured request limit. Different weights, fragmentation, quantisation and offload policies change both numbers.

For deployment planning, measure the actual model's KV bytes per token and the server's reserved memory, then benchmark with realistic context lengths, cache sharing and concurrency. Capacity controls how many full contexts can reside; bandwidth, compute, scheduler and interconnect affect how fast they run. FP8 KV storage can approximately halve two-byte element storage when supported, but accuracy and implementation need testing. Offloading cold KV to host memory trades HBM capacity for transfer traffic and latency.

Sources and product status checked on 29 September 2026. Forecasts and scenarios are labelled as such.

Footnotes

  1. Micron investor presentation, describing the HBM-versus-DDR5 wafer-supply trade ratio. ↩

  2. TrendForce, HBM wafer input and bit-supply forecast, 2 June 2026. ↩

  3. NVIDIA, Rubin GPU architecture, preliminary capacity specification. ↩

  4. NVIDIA Blackwell Ultra datasheet, rated HGX B300 and GB300 NVL72 memory. ↩

  5. TrendForce, Rubin Ultra configuration evaluation, 4 August 2026. ↩