Cost Analysis of Local Deployment for Trillion-Scale Mixture of Experts Models

    Deploying trillion-scale Mixture of Experts (MoE) models locally is a data-center-level engineering challenge rather than a standard workstation project. This article analyzes the hardware requirements, memory calculations, deployment tiers, and cost estimations for hosting such models. It provides a practical engineering perspective on achieving different performance targets, from basic model loading to multi-user concurrent serving, along with essential stress testing procedures before final hardware procurement or long-term cloud leasing.

    1. Conclusion First: This Is Not a Workstation Project

    For generative models with total parameters reaching the trillions and utilizing a Mixture of Experts (MoE) architecture, the primary challenge of local deployment is not “how many parameters are activated per token,” but rather whether the complete model weights can reside simultaneously in device memory.

    Although an MoE model only activates a subset of experts during a single computation—resulting in lower computational volume than a dense model of equivalent scale—this does not mean you only need to load the activated parameters. To switch experts across different inputs, the vast majority of expert weights must still be pre-loaded or stored in a fast-access, tiered memory system. While the latter can reduce instantaneous VRAM pressure, it significantly increases data transfer overhead, typically failing to deliver stable interactive speeds.

    Therefore, deploying such models requires distinguishing between three goals:

    1. The model can start and generate results.
    2. A single user achieves good interactive speed.
    3. Stable output rates are maintained under multi-user concurrency.

    These three goals appear to be mere performance differences, but they actually correspond to entirely different engineering budgets.

    2. Calculating Memory Requirements for Model Weights

    Assume the model has approximately 2.8 trillion total parameters, with weights stored in a 4-bit format. In the most ideal scenario, calculating only the weight capacity:

    1. 2.8 trillion × 4 bit ÷ 8
    2. ≈ 1.4 TB

    This 1.4 TB is merely a mathematical theoretical value and cannot be directly equated to actual VRAM requirements. Reasons include:

    • Weight files may have alignment and metadata overhead.
    • The inference framework requires additional runtime buffers.
    • Activation values occupy VRAM.
    • The attention mechanism requires storing the KV cache.
    • Tensor parallelism and expert parallelism introduce communication buffers.
    • Concurrent execution of multiple requests adds context and cache overhead for each request.
    • Some operators may require temporarily higher-precision data.

    Therefore, actual deployment cannot be planned based on the assumption that total VRAM exactly equals 1.4 TB. For single-user inference, a more realistic estimate is to prepare around 1.5 TB or more of available accelerator memory. The specific value will also be influenced by context length, batching strategy, inference precision, and framework implementation.

    It is important to note that 4-bit weights do not necessarily mean “forcibly compressing a high-precision model to 4-bit.” If the model is natively designed with a low-bit format, its weight layout, scaling methods, and computation paths may be built around low-bit inference. Such models cannot be simply equated with post-quantized models in terms of precision, compatibility, and hardware requirements.

    3. Why a Few High-End GPUs Are Usually Not Enough

    High-end accelerator cards commonly found in workstations usually have single-card VRAM ranging from tens of GB to just over a hundred GB. Even calculated at 100GB of VRAM, theoretically, more than a dozen cards would be needed to accommodate the model weights; considering runtime overhead, the actual number of cards required increases further.

    More importantly, multi-card deployment is not simply about adding VRAM together. The following issues must also be addressed:

    3.1 Weight Partitioning

    The model needs to be distributed across multiple cards using tensor parallelism, pipeline parallelism, or expert parallelism. Different parallelism methods have varying requirements for communication bandwidth, VRAM utilization, and scheduling strategies.

    3.2 Inter-Card Communication

    Each generation step may involve data exchange between devices. If the inter-card connection bandwidth is insufficient, the compute units will frequently wait for communication to complete, and the final speed may be far below the theoretical compute capacity.

    3.3 Low-Bit Format Support

    If the accelerator cannot directly execute the model’s adopted low-bit format, de-quantization must occur before computation, or compatible alternative operators must be used. This increases VRAM access and compute overhead, potentially reducing actual throughput.

    3.4 Memory Headroom

    VRAM cannot be entirely dedicated to weights. If only minimal free space remains after the model starts, slightly increasing the context length or concurrent requests could result in out-of-memory errors.

    Therefore, “theoretically fitting” only means the deployment program has a chance to start; it does not mean the system can provide stable service.

    4. Three Typical Deployment Tiers

    Tier 1: Just Run, No Speed Expectations

    When only considering capacity, a cluster of data-center-grade accelerator cards with large VRAM can be used. Depending on the single-card VRAM of different card types, this might require more than a dozen large-memory devices, or several next-generation high-memory devices.

    However, this configuration is closer to a “capacity verification solution” rather than a mature production solution. Even if older generation devices can load weights through runtime conversion, they may perform poorly in the following aspects:

    • Extended initial load time.
    • High single-step generation latency.
    • Inter-card communication becoming a bottleneck.
    • Inability to fully leverage low-bit computation.
    • Significant throughput drop under concurrent requests.

    If the goal is to reduce the number of devices, next-generation data-center-grade accelerators with native support for the target low-bit format are typically required. Based on current public deployment approaches of similar scale, an 8-card server node can serve as a realistic starting point, but this is still just the starting point for capacity and engineering feasibility, not equivalent to passing performance validation.

    Tier 2: Single-User Target of ~25 Token/s

    Achieving about 25 Tokens per second for a single user is considered a practically useful interactive speed. At this point, the hardware focus is still not on single-card compute power, but rather:

    • Whether it can fully accommodate model weights.
    • Whether the low-bit format can be executed efficiently.
    • Whether there is sufficient communication bandwidth between cards.
    • Whether the inference framework can schedule experts reasonably.
    • Whether the speed drops significantly as context length increases.

    At this tier, an 8-card large-memory node remains a reasonable hardware starting point. The reason is that even with only one user, the model weights still need to reside completely; the server cannot simply be downsized to two or three cards just because the user count is low.

    It is important to note that 25 Token/s cannot be derived solely from hardware specifications. Actual speed depends at least on the following factors:

    • Input context length.
    • Output length.
    • Whether continuous batching is enabled.
    • Whether expert routing is balanced.
    • Parallelism strategy.
    • Quantization format and operator implementation.
    • Loading capabilities of the CPU, memory, and storage systems.
    • Whether frequent cache eviction occurs during requests.

    Therefore, 25 Token/s should be viewed as a stress testing target, not an untested promise.

    Tier 3: Ten Concurrent Users, ~25 Token/s Each

    If ten users generate simultaneously, and each path aims to maintain 25 Token/s, the system needs to provide an aggregate output capacity of about 250 Token/s.

    This target is not simply a 10x hardware relationship from “single-user 25 Token/s.” Large model inference usually uses continuous batching to merge multiple requests into the same computation round, thereby improving device utilization. As long as VRAM can accommodate weights, context, and cache, a single node might support a higher number of concurrent requests.

    However, as concurrency increases, the system faces new bottlenecks:

    • Each request requires an independent KV cache.
    • Long contexts rapidly consume VRAM.
    • Inconsistent request lengths reduce batching efficiency.
    • Certain experts may be accessed simultaneously by a large number of requests.
    • The scheduler must make trade-offs between latency and throughput.
    • After aggregate throughput increases, per-request speed may decrease.

    Thus, ten concurrent users do not necessarily require adding more servers, but whether each path can stably achieve 25 Token/s must be validated through real business load stress testing. Looking solely at VRAM capacity cannot prove that the system has a sustained output capability of 250 Token/s.

    5. How to Calculate Costs

    If using cloud data-center-grade accelerators for verification, the cost can be estimated using the following formulas:

    1. Hourly cost
    2. = Price per card per hour × Number of accelerators
    3. Monthly cost
    4. = Hourly cost × Hours operated per month
    5. Annual cost
    6. = Hourly cost × 8760

    Assuming a long-term reserved price for a certain type of high-memory accelerator is $4.76 per card per hour, the theoretical price for an 8-card node is:

    1. 4.76 × 8 = $38.08 / hour

    If calculated for continuous year-round operation:

    1. 38.08 × 24 × 365
    2. ≈ $333,000 / year

    If calculated based on approximately 720 hours per month:

    1. 38.08 × 720
    2. ≈ $27,400 / month

    The above figures only represent the accelerator rental fees and do not include:

    • Host and high-speed memory fees.
    • Local high-speed storage fees.
    • Network traffic fees.
    • Image, monitoring, and logging fees.
    • Data backup fees.
    • Idle instance costs.
    • Engineering deployment and operations labor.
    • Time costs from failure restarts and model reloads.

    If the business does not run around the clock, on-demand leasing might be more flexible; if long-term stable operation is required, you can compare the Total Cost of Ownership (TCO) of reserved resources, annual/monthly subscriptions, and self-built servers. A self-built solution also requires additional consideration for equipment procurement, data center facilities, power, cooling, networking, power redundancy, and hardware depreciation.

    6. Mandatory Stress Testing Before Local Deployment

    Before purchasing hardware or leasing long-term, it is recommended to establish at least the following testing workflows.

    6.1 Startup Test

    Verify whether the model can be fully loaded and check whether weights, runtime caches, and communication buffers cause VRAM overflow.

    6.2 Single-Request Test

    Test short, medium, and long contexts separately, recording time to first token (TTFT), generation speed, and VRAM usage.

    6.3 Concurrency Test

    Gradually increase the number of concurrent users to observe total throughput, per-request throughput, queue time, and error rate, rather than just looking at a single peak speed.

    6.4 Long-Term Stability Test

    Run for at least several hours to check for VRAM fragmentation, cache growth, communication errors, temperature, and thermal throttling.

    6.5 Real Business Replay

    Test using actual users’ input lengths, output lengths, and request distributions. Fixed-length test requests in a lab often fail to represent real production loads.

    7. Final Recommendations

    If the goal is merely to verify that the model can start, prioritize multi-card servers with large VRAM capacity and low-bit format support, and reserve sufficient memory headroom.

    If the goal is single-user interaction, focus on end-to-end generation speed, context length, and time to first token, rather than just comparing theoretical compute power.

    If the goal is a ten-user concurrent service, you must simultaneously pay attention to VRAM, continuous batching, communication bandwidth, scheduling strategies, and sustained throughput. Simply adding more GPUs does not automatically yield linear performance improvements.

    Overall, the local deployment of trillion-scale MoE models is a data-center-level engineering project. For most individual developers, the reasonable path is usually to complete capacity and performance verification using short-term cloud resources first, and then evaluate whether self-hosting is worthwhile based on actual concurrency, context length, and runtime duration. Procuring dedicated servers only makes economic sense when model usage frequency is high, business load is stable, and device utilization is sufficiently high.