Upgrade to Pro — share decks privately, control downloads, hide ads and more …

An LLM memory budget with visible assumptions

voltwake
November 05, 2026

An LLM memory budget with visible assumptions

An eight-page worked guide to separating ideal weight payload from a simplified KV-cache budget. It explains GB versus GiB, grouped-query attention inputs, context and concurrency sensitivity, and the allocations excluded from a subtotal. The illustrative example is arithmetic, not a measured GPU benchmark or a fit guarantee. Disclosure: I build VRAMGlass, a free GPU and local-AI planning reference; read its methodology. The handout was prepared with AI assistance and checked on 5 November 2026. Asking-price references are not completed transactions, and actual workloads still require measurement.

voltwake

November 05, 2026

Transcript

8 slides
  1. VRAMGLASS / ORIGINAL MAKER NOTES An LLM memory budget with

    visible assumptions A reproducible worksheet for local inference planning Separate ideal model weights, KV cache and runtime headroom before comparing hardware. The worked configuration is hypothetical. It is not a named model, a device benchmark or a fit guarantee. Maker: voltwake / VRAMGlass. Original material prepared with AI assistance. Arithmetic checked 5 November 2026. voltwake | 5 November 2026 | Original material, AI-assisted 1/8
  2. VRAMGLASS / ORIGINAL MAKER NOTES Record the configuration first Input

    What to record Model Identifier and immutable revision Weights Quantization format and actual tensor types Attention Layer count, KV heads and head dimension Workload Cache capacity, prompt/output lengths and concurrency Runtime Version, cache strategy and offload settings A short successful load and a completed long-context workload are different observations. Keep them in separate fields. voltwake | 5 November 2026 | Original material, AI-assisted 2/8
  3. VRAMGLASS / ORIGINAL MAKER NOTES The ideal weight payload is

    a lower-level calculation For P parameters at b bits each: weight_bytes = P * b / 8 8,000,000,000 * 4 / 8 = 4,000,000,000 bytes 4,000,000,000 / 2^30 = 3.7253 GiB Quantization scales, mixed-precision tensors, alignment and runtime representation can increase the allocation. Keep the original bytes and the display unit. voltwake | 5 November 2026 | Original material, AI-assisted 3/8
  4. VRAMGLASS / ORIGINAL MAKER NOTES The cache uses KV heads

    For uniform full-attention layers, multiply the following. The factor of two represents keys and values. cache_bytes = 2 * layers * KV_heads * head_dim * cached_tokens * sequences * element_bytes 2 * 32 * 8 * 128 * 8192 * 1 * 2 = 1,073,741,824 bytes = 1 GiB Use KV heads rather than automatically substituting query heads. Sliding-window layers, hybrid architectures and cache strategies need a different model. voltwake | 5 November 2026 | Original material, AI-assisted 4/8
  5. VRAMGLASS / ORIGINAL MAKER NOTES Change one assumption at a

    time Hold 32 layers, 8 KV heads, head dimension 128 and two-byte cache elements fixed. Cached tokens Sequences KV cache 4,096 1 0.50 GiB 8,192 1 1.00 GiB 16,384 1 2.00 GiB 8,192 2 2.00 GiB In this simplified calculation, context and concurrency change the cache proportionally. They do not change the ideal weight payload. voltwake | 5 November 2026 | Original material, AI-assisted 5/8
  6. VRAMGLASS / ORIGINAL MAKER NOTES Keep headroom visible Runtime workspace,

    temporary tensors, graph capture, display use, other processes and allocator behavior consume additional capacity. Record a headroom assumption explicitly, then revise it with measurements from the intended workload. The subtotal is not a recommended GPU size. 3.73 GiB ideal weights + 1.00 GiB cache = 4.73 GiB before other allocations voltwake | 5 November 2026 | Original material, AI-assisted 6/8
  7. VRAMGLASS / ORIGINAL MAKER NOTES A reproducible result separates evidence

    types For a measurement, retain the exact configuration, warm-up, measured runs, timing method, variation, peak-memory method and errors. Leave unmeasured fields blank. For prices, retain market, currency, timestamp, condition filters, sample count and whether the observation is an asking price or a completed sale. A clean table should make uncertainty inspectable. It should not turn a formula estimate into a hardware test or an asking price into an available landed offer. voltwake | 5 November 2026 | Original material, AI-assisted 7/8
  8. VRAMGLASS / ORIGINAL MAKER NOTES Sources and limits This handout

    demonstrates arithmetic for a simplified decoder. Read the actual model configuration and runtime documentation before using it as a planning input. VRAMGlass - assumptions and price definitions Hugging Face - cache strategies Affiliation disclosed: prepared by the VRAMGlass maker, with AI assistance. No private dataset, credential or fabricated benchmark is included. Search visibility and hardware suitability require separate evaluation. voltwake | 5 November 2026 | Original material, AI-assisted 8/8

More Decks by voltwake

Other Decks in Technology