SovAIHub

Interactive guide / Capacity planning

Local LLM Hardware Sizing Guide

Plan memory, throughput, and resilience before buying hardware. Estimate an explicit attention-cache budget, then validate the exact model and serving configuration against your workload and service targets.

Reviewed · Vendor-neutral guidance

Decision
A capacity hypothesis and a repeatable benchmark plan for procurement.
For
Infrastructure owners, AI platform engineers, and teams moving from a prototype to a shared service.
Available here
A memory planning calculator and a downloadable benchmark worksheet.

Estimate your inference memory budget

Defaults are an illustrative 8B configuration, not a named model profile. Replace every assumption with your model and serving configuration. Inputs stay in this page.

Memory assumptions

Total weights, including all resident experts for MoE.

Illustrative 4-bit allocation: 0.60 including metadata; FP16/BF16: about 2. Use artifact measurements.

Read the exact model configuration. All layers here use the same cache shape.

KV heads, not query heads; grouped-query attention shares keys and values.

Per-head dimension from the model configuration.

2 for FP16/BF16, 1 for supported 8-bit cache; cache quantization overhead is additional.

Prompt + generated tokens at the planned peak, including reasoning tokens where cached.

Count retained active sequences, including extra beams where applicable; not registered users.

Activations, workspaces, allocator, cache metadata, and other resident services.

Illustrative operational reserve; validate the value for your runtime.

01 / Decision framework

Understand what consumes memory

This calculator models conventional decoder-only full-attention MHA/GQA inference. It uses GiB (2³⁰ bytes); vendor labels and other tools may report decimal GB.

Weights are only the starting point

Estimate weights from total resident parameters and effective bytes per parameter, including quantization metadata. For mixture-of-experts models, active parameters per token are not the total resident weight footprint. Use measured loaded weights where available.

Cache follows architecture and active work

For uniform full-attention layers: KV bytes = 2 × layers × KV heads × head dimension × cache bytes per element × cached tokens × active sequences. The factor of two accounts for keys and values. Count prompt and generated tokens; registered users are not simultaneous sequences.

Leave runtime and operational reserve

Activations, CUDA graphs, temporary buffers, allocator behavior, adapters, and neighboring services consume memory. The illustrative reserve is configurable. Replace assumptions with peak measurements from the exact runtime and workload.

Know when this estimate does not apply

Hybrid/state-space models, latent attention, mixed sliding-window layers, multimodal encoders, training, and fine-tuning require different accounting. Prefix sharing and cache offload also change the budget. Do not apply this formula blindly to models such as Qwen3.5.

02 / Decision framework

Choose a topology, then prove its capacity

Memory fit answers whether an experiment is plausible. Throughput, latency, resilience, and total operating cost decide whether it is useful.

Choose a topology, then prove its capacity
DeploymentWhat to validateCommon planning error
CPU or unified memoryAvailable system memory, bandwidth, thermals, and acceptable token latency.Assuming a model that loads will deliver interactive performance.
One acceleratorUsable device memory, supported kernels, peak cache demand, and p95 latency.Choosing a GPU from parameter count alone.
Several acceleratorsPer-device allocation, tensor/pipeline parallel support, interconnect, and communication overhead.Adding advertised VRAM as though all devices form one uniform pool.
Replicated serviceQueue behavior, load balancing, failover capacity, and one replica unavailable.Spending all capacity on normal peak load with no maintenance reserve.
Disconnected deploymentOffline artifacts, drivers, licenses, package mirrors, monitoring, and recovery media.Budgeting GPUs while omitting the surrounding operating platform.

03 / Decision framework

Make the purchase conditional on a benchmark

Use the worksheet to record assumptions, observed results, and the person who accepts the capacity decision.

  1. Pin model revision, tokenizer, quantization, runtime image, drivers, and hardware. Record cache dtype separately from weight quantization.

  2. Replay representative input/output lengths and arrival patterns. Include long requests, burst demand, mixed tenants, and worst credible cache occupancy.

  3. Report warm and cold behavior, p50/p95 first-token and end-to-end latency, output tokens/second, errors, queue time, and peak memory. Goodput counts only work meeting the agreed quality and latency targets.

  4. Run a sustained thermal test and a failure scenario. Include CPU, host RAM, storage, networking, power, spares, support, and growth in the bill of materials.

The calculator estimates an aggregate device-memory budget. It does not recommend a GPU SKU, certify a model/runtime combination, or predict throughput.

Working materials

Take the framework into your project

Download the editable materials, adapt them to your environment, and keep the assumptions alongside the results.

Work with SovAIHub

Build an evidence-based hardware plan

Scope a sizing review before a procurement decision or a production expansion.

  • A workload and service-target specification with peak and growth scenarios.
  • An architecture-specific memory model and candidate deployment topologies.
  • A benchmark report and capacity envelope for the configurations tested.
  • A bill of materials, operating assumptions, and procurement acceptance criteria.

Bring to the scoping conversation

Bring candidate model revisions, input/output length distributions, simultaneous demand, latency targets, availability needs, and access to representative hardware.

Scope, acceptance criteria, delivery schedule, and fees are agreed before implementation.

Request a hardware sizing review

Continue your implementation

Connect the decision to the next engineering or operating step.