Local LLM Deployment Costs: GPU Memory, Concurrency, and Budget Breakdown

    Deploying an LLM locally involves more than fitting model weights on GPUs. This article explains how to estimate cost by separating weight memory, runtime overhead, KV cache, context length, and concurrency, using a 743B-parameter MoE model as an example. It also examines indicative single-node and dual-node budget ranges, commonly missed infrastructure costs, and a validation process for turning hardware estimates into a service-level plan.

    Start with the right budget question: runnable is not the same as serviceable

    Estimating the cost of local LLM deployment is not simply a matter of looking at parameter count or the hardware purchase price. The real questions are: Can the target model be loaded? Can it maintain the target context length? How many users can submit requests concurrently? And will the service remain available during failures or maintenance?

    Consider a model with a total parameter count of roughly 743B that uses a mixture-of-experts (MoE) architecture, where each generated token activates about 39B parameters. Sparse activation helps reduce per-token computation, but it does not mean that memory only needs to be provisioned for 39B parameters. The model weights still contain the full parameter set, and deployment typically requires loading the complete set into devices or into memory accessible to those devices.

    In addition, native support for a million-token context does not mean that stable service at that length is guaranteed once the weights fit in GPU memory. Longer contexts increase the KV cache used to store historical key and value states during inference. More concurrent requests multiply this overhead further. A budget must therefore be based on specific service objectives, not on a single model specification.

    Cost 1: How much GPU memory do model weights require?

    Weight memory depends first on parameter scale and numeric precision. A simplified formula can be used for an initial estimate:

    Weight capacity ≈ total parameters × bytes per parameter

    For FP8 weights, each parameter theoretically occupies about 1 byte. A 743B-parameter model corresponds to roughly 743 GB of raw weight data. A real deployment must also account for quantization-format metadata, weight sharding, temporary space used during loading, and resources consumed by the inference framework and runtime components. The theoretical value therefore cannot be treated directly as the device memory requirement.

    Higher precision further increases weight capacity. Lower-precision formats or quantization methods may reduce weight memory, but their numerical quality, model compatibility, and actual inference behavior must be validated. For scenarios that need to preserve the original model capabilities strictly, “it fits in GPU memory” is not enough to conclude that a configuration meets the requirement.

    Cost 2: Runtime overhead and KV cache

    Memory planning must include at least three additional categories of overhead:

    1. Inference runtime. Drivers, runtime components, inference frameworks, and communication libraries all consume resources. Different deployment implementations have different overheads, and reserved headroom is necessary to prevent instability when memory is fully occupied.
    2. KV cache. Autoregressive generation requires storing the keys and values of the processed context. The longer the context and the more concurrent sequences, the larger the cache typically becomes. Million-token contexts can make this a major budget variable.
    3. Temporary buffers and scheduling space. Batching, tensor-parallel communication, operator execution, and request scheduling may require additional space. Actual usage under peak load is often higher than at idle startup.

    Memory should therefore be calculated as:

    model weights + runtime + KV cache + safety margin

    not just by checking the size of the weight files. The safety margin also covers request-length variation, concurrency spikes, service updates, and other practical operations scenarios.

    Cost 3: The tradeoff between context length and concurrency

    Long context and high concurrency jointly increase resource demand. Even if a device can load the weights, the available space for the KV cache is limited when most GPU memory is occupied by those weights. Under such constraints, the context length allowed per request or the number of requests processed simultaneously may be restricted.

    This means that “supports million-token context” needs to be broken down into acceptance metrics such as:

    • Maximum input length and output length per request
    • Number of concurrent requests at the target context length
    • Time to first token and generation speed at the target concurrency
    • Peak GPU memory usage and request queueing during peak periods
    • Stability and failure recovery over long-running operation

    If these metrics are not defined, stating “how many GPUs are needed” is not enough to form a reliable budget. Engineering teams should stress test with representative requests, gradually increase context length and concurrency, observe memory, latency, throughput, and error rates, and then determine the final configuration.

    From minimum runnable to stable service: how to interpret budget ranges

    For a model of the scale described above, a minimum hardware configuration based on FP8 weights may require one 8-GPU high-memory compute node. The total system cost can initially be estimated at around RMB 3.5 million. This figure represents an entry-level configuration concept; it should not be interpreted as a quotation or guarantee that the system will meet production requirements under every workload.

    If stable operation under full million-token context conditions is required, more headroom must be reserved for the KV cache, runtime overhead, and service concurrency. With a dual-node approach, the overall budget may reach approximately RMB 7.3 million to RMB 8.0 million. The value of a dual-node configuration is not just additional available resources; it can also help distribute model inference load and leave room for expansion and operations. However, the specific benefit depends on the parallel strategy, network interconnect, service architecture, and target workload, and cannot be inferred from the number of nodes alone.

    The figures above are affected by hardware configuration, supply and procurement conditions, networking and data center infrastructure, software adaptation, and operations support. They should be treated as budget-level estimates rather than fixed transaction prices. Before formal project approval, the complete servers, switching network, power and cooling, rack space, and spare parts should also be included in the total cost of ownership.

    Supporting costs that are often overlooked

    Compute hardware is only part of the total budget. A real project should also consider:

    • Network and interconnect: Multi-GPU and multi-node inference depend on intra-node and inter-node communication. If network capacity is insufficient, adding compute cards may not increase throughput proportionally.
    • Power and cooling: High-density compute equipment places requirements on data center power, cooling, and deployment space. Retrofit costs can be significant.
    • Storage and data management: Model files, version backups, logs, and evaluation data all require reliable storage, with clear access permissions and retention policies.
    • Operations and monitoring: GPU memory, temperature, power consumption, request latency, throughput, and error rates need continuous tracking, along with alerting and incident-handling processes.
    • Redundancy and maintenance: If the service cannot tolerate long interruptions, spare parts, maintenance windows, and failover plans should be evaluated. A single-node configuration may run, but it can still carry significant availability risk.

    Before purchasing, proceed through the following steps:

    1. Define workload boundaries. Clarify user scale, peak concurrency, typical context length, maximum input and output length, and acceptable latency.
    2. Confirm the precision strategy. Distinguish among native precision, lower-precision weights, and quantization approaches, and validate whether model quality meets business requirements.
    3. Calculate memory composition. Estimate weights, KV cache, runtime, and buffers separately. Reserve peak capacity rather than using the theoretical minimum as production capacity.
    4. Run small-scale stress tests. Use requests built from realistic business distributions, and record throughput, latency, cache usage, and stability.
    5. Choose the architecture by service level. Experimental use may accept lower redundancy; production services should incorporate availability, scalability, and maintenance cost into the design.
    6. Calculate full lifecycle cost. In addition to one-time hardware purchases, include data center facilities, energy consumption, maintenance, spare parts, and future expansion costs.

    Conclusion

    The core costs of deploying very large models locally come from keeping the full weights resident in memory, the KV cache required by long contexts, and the additional headroom needed for concurrent service. Around RMB 3.5 million can serve as an initial threshold for an FP8, 8-GPU single-node configuration, but it may not be enough to support high-concurrency, million-token-context service. If full long-context capability and more stable service are required, a dual-node budget may rise to approximately RMB 7.3 million to RMB 8.0 million.

    Therefore, determining whether deployment is “worth it” cannot rely solely on comparing model file sizes with equipment prices. Define the workload first, validate it through stress testing, and then configure compute and supporting facilities according to the required service level. Only then can a one-time hardware budget be turned into sustainable, verifiable private inference capability.