LLM Inference Hardware Selection and Compute Capacity Planning Guide

    This guide explains how to move from comparing peak hardware specs to validating real business constraints when planning LLM inference capacity. It covers four key constraints—model precision, context length, peak concurrency, and latency—then walks through a three-step VRAM capacity calculation, a comparison of data center inference cards versus workstation-class accelerators, cluster topology and serving-layer considerations, a four-metric economic evaluation framework, and a practical deployment checklist. The goal is a reproducible basis for deciding between cloud-based and self-hosted inference.

    1. Why “Will It Make Money” Must First Become “Will It Meet the Target”

    When evaluating the return on inference compute, many teams jump straight to comparing the peak FLOPS of different hardware. That is a classic metric mismatch. Revenue from an inference workload is not determined by peak floating-point capability alone; it is determined by the volume of valid requests that can be delivered reliably per unit of time. A rough illustration of the relationship:

    1. # Illustrates the logical relationship only, not a real performance model
    2. effective_throughput = batch_size * tokens_per_request / avg_latency
    3. gross_margin = (price_per_request * effective_throughput) - infra_cost_per_hour

    The point is that once latency degrades, effective throughput drops with it, so the revenue side and the cost side deteriorate at the same time. The correct order is therefore to quantify business constraints first, and only then discuss hardware form factors.

    Four constraints need to be made explicit:

    • Model precision: The numerical format of weights and activations determines VRAM usage and the range of supported operators. Lower-precision formats can significantly increase the number of parameters carried per unit of VRAM, but they require both the hardware and the inference runtime to natively support the corresponding compute path.
    • Context length: The attention cache grows roughly linearly with context length. Long documents and repository-level code inputs are often the main source of peak VRAM usage, rather than the weights themselves.
    • Peak concurrency: Concurrency determines batch size. Larger batches yield higher throughput, but queuing and latency rise as well.
    • Response latency: Distinguish time-to-first-token from overall generation time. Interactive applications are sensitive to time-to-first-token, while offline batch processing can be more relaxed.

    2. VRAM Is the Hard Constraint: Do the Capacity Math First

    Capacity estimation should be done in three stages; exceeding the limit at any stage invalidates the design.

    The first stage is weight footprint, which can be approximated as:

    1. weight VRAM ≈ parameter count × bytes per parameter

    The second stage is cache footprint, which depends on concurrency, context length, number of layers, and number of attention heads. In practice it is usually estimated as “per-request cache × concurrency × safety factor,” with the safety factor typically set between 1.2 and 1.5.

    The third stage is runtime overhead, including framework reservations, communication buffers, and defragmentation space, for which another 10% to 20% is usually reserved.

    A typical conclusion: when both the model size and the context are large, a single card cannot hold the full weights and cache, so a multi-card tensor-parallel or expert-parallel path becomes necessary. Multi-card setups introduce a new bottleneck in inter-card interconnect bandwidth, and the quality of the interconnect topology often affects real throughput more than the single-card VRAM number does.

    3. Where the Two Hardware Form Factors Excel

    Public benchmarks and engineering practice show that the two mainstream form factors have different strengths, and they should be matched to the workload profile rather than simply ranked.

    One is the data center inference card built for high-bandwidth memory and large-scale tensor parallelism. Its strengths are concentrated in long-context, large-batch throughput scenarios, making it suitable for centralized inference clusters.

    The other is the workstation-class accelerator with high memory capacity and support for mixed graphics and AI workloads. Its advantage is that a single card can carry a fairly large model with flexible deployment density, making it suitable for small and medium environments where model sizes vary and rendering or visual processing must also be handled.

    For selection, run the same workload benchmark script across candidate form factors and compare three curves: throughput versus concurrency, time-to-first-token versus input length, and energy consumption per valid request.

    4. Cluster Topology and Engineering Support

    Single-card conclusions do not extrapolate directly to a cluster. Focus on the following:

    1. Parallelism strategy: Tensor parallelism suits high-bandwidth interconnect within a node; pipeline parallelism has low cross-node communication volume but introduces bubbles; expert parallelism requires attention to load balancing.
    2. Serving layer design: Request routing, dynamic batching, priority queues, and timeout-based degradation are key to latency stability. Routing traffic by input length at the gateway layer is recommended.
    3. Observability: Collect queue time, batch-size distribution, cache hit rate, and VRAM watermarks through monitoring, alerting, and logging services to build capacity early warnings.
    4. Elasticity and cost: Interactive traffic has clear peaks and troughs, so combine a resident baseline with elastic scale-out, and use a container platform for fast replica scaling. Keep model weights and datasets in object storage, and pull them in parallel during cold starts to shorten scale-out time.

    5. Economic Evaluation Framework

    Build a four-metric evaluation table to avoid single-point conclusions: cost per valid request, time-to-first-token compliance rate, error rate under peak concurrency, and scale-out response time. Include electricity, cooling, operations headcount, and networking in the calculation so the comparison against on-demand cloud inference is fair. If the workload fluctuates sharply or the model iterates frequently, validating on the cloud before building your own cluster is usually the lower-risk path; if the load is stable and the scale is sufficient, self-hosting has the advantage over a long horizon.

    6. Deployment Checklist

    • Benchmark with real business samples rather than public leaderboard data;
    • Confirm the precision format and runtime support to avoid a precision fallback that doubles VRAM usage;
    • Set up a separate test group for long-context scenarios and observe the cache growth curve;
    • Define latency SLOs and include them in benchmark pass criteria;
    • Keep more than 20% headroom in VRAM and compute for bursts;
    • Establish a quarterly review process to adjust topology as models and business needs change.

    Following this process turns selection from “comparing specs” into “validating constraints,” and the return-on-investment judgment gains a reproducible basis.