Estimating Local Deployment Costs and Hardware Sizing for Ultra-Large MoE Models

    This guide estimates the storage, memory, and budget requirements for running a 2.8-trillion-parameter sparse mixture-of-experts (MoE) model locally. It compares three targets: running the model at all, sustaining 25 tokens/s for one user, and serving 10 concurrent users at 25 tokens/s each. It also covers memory overhead, interconnect bandwidth, operating costs, and a staged benchmarking method.

    1. Define the Goal First: What Must the Local Deployment Achieve?

    Estimating the cost of an ultra-large model requires more than knowing its parameter count. You also need to define the following:

    1. Whether the full set of weights must be loaded;
    2. Which quantization format is used;
    3. Time to first token and sustained output speed for a single user;
    4. How many users are served at the same time;
    5. Whether expert weights can be loaded in tiers;
    6. Whether long context is required;
    7. Whether high availability, failover, and online scaling are required.

    “Able to run” and “ready for production” are different goals. The first only requires that the model eventually generates text, so slow responses and low concurrency are acceptable. The second must meet throughput, latency, stability, and operational requirements at the same time.

    The estimates below assume a sparse MoE model with about 2.8 trillion total parameters. The model has 896 experts, and each token is routed to 16 of them. Activating only a few experts per token mainly reduces compute. It does not mean that only those experts need to be stored. Full inference generally requires all expert weights to stay in GPU memory, system memory, or a storage tier that can be accessed quickly.

    2. Storage and Memory Requirements for 2.8 Trillion Parameters

    The simplest theoretical estimate uses these sizes per parameter:

    • FP16 or BF16: about 2 bytes;
    • FP8: about 1 byte;
    • 4-bit quantization: about 0.5 bytes.

    Under these assumptions, 2.8 trillion parameters require roughly the following amounts of weight storage:

    Weight Format Theoretical Weight Size
    FP16/BF16 About 5.6 TB
    FP8 About 2.8 TB
    4-bit integer or floating-point quantization About 1.4 TB

    These numbers only cover raw weights. A real deployment also needs space for quantization scaling factors, non-quantized tensors, router parameters, embedding and output layers, metadata, memory alignment, and a runtime working area.

    Take block-wise 4-bit floating-point quantization as an example. Each weight is not stored in exactly 4 bits. Each block also needs scaling information. If each group of 32 parameters adds one 8-bit scaling value, the average cost is about 4.25 bits per parameter:

    2.8 trillion × 4.25 ÷ 8 ≈ 1.49 TB

    This still excludes runtime space. For full 4-bit weights, plan for at least 1.5 TB of capacity, and add more headroom for a stable deployment.

    GPU memory consumption includes:

    1. Model weights;
    2. Activation values;
    3. KV cache;
    4. Expert routing and communication buffers;
    5. Operator scratch space;
    6. Framework runtime overhead and memory fragmentation;
    7. Extra cache needed for multi-request batching.

    With long context or many concurrent requests, the KV cache can become the main source of memory growth. Even if the weights barely fit in GPU memory, that does not mean the system can handle real traffic.

    3. Cost Estimates for Three Deployment Targets

    The prices below are only for building a budget model. They do not correspond to any specific vendor or purchase quote. Actual costs depend on GPU memory capacity, interconnect type, sourcing channel, chassis specifications, electricity, and operating cycles. All amounts are in CNY.

    Target 1: The Model Runs, Speed Not a Priority

    This approach aims to reduce one-time memory requirements. It does not aim for an interactive experience.

    Possible technical approaches include:

    • 4-bit or lower-bit quantization;
    • Tiered storage for expert weights;
    • Storing some weights in system memory;
    • Using fast local storage as a cold data tier when needed;
    • Single-request, low-concurrency inference;
    • Limiting context length and maximum output length.

    In theory, 4-bit weights need at least about 1.5 TB. With tiering across GPU memory and system memory, a realistic configuration might include:

    • Total accelerator memory: 128 GB to 256 GB;
    • System memory: 512 GB to 1.5 TB;
    • Local high-speed storage: 2 TB to 4 TB;
    • Multi-GPU interconnect with sufficient bandwidth between cards.

    With consumer hardware, the total system cost may fall between tens of thousands and over 100,000 CNY. However, the speed will likely fall short of normal conversational needs. Using high-memory accelerator cards can push costs to several hundred thousand CNY or more.

    The main problem with this approach is not whether the model loads. It is that moving weights between storage tiers adds significant latency. Each time tokens route to different experts, the system may need cross-card or cross-memory access. The result is high time to first token, noticeable output jitter, and very low throughput.

    This approach suits:

    • Model format validation;
    • Algorithm compatibility testing;
    • Offline tasks;
    • Small-scale experiments;
    • Research scenarios where response times of minutes are acceptable.

    Target 2: Sustained Output of 25 Tokens/s for a Single User

    At 25 tokens/s, the goal moves beyond “it runs” to a reasonably smooth interactive experience. Loading the model into GPU memory is not enough. Computation, memory bandwidth, and expert communication must all meet the target.

    Although each token activates only 16 experts, every generation step still requires:

    1. Encoding the input;
    2. Computing routing results;
    3. Sending activations to the devices that host the target experts;
    4. Running expert computation;
    5. Aggregating and returning the results;
    6. Updating the KV cache;
    7. Generating the next token.

    During single-user decoding, the compute batch is usually small. Device utilization can be low, and communication latency becomes more prominent. To reach 25 tokens/s for one user, you generally need:

    • 4-bit or higher-quality quantized weights;
    • Enough total GPU memory to minimize host memory swapping;
    • High-bandwidth interconnect between cards;
    • An inference framework that supports expert parallelism, tensor parallelism, and pipeline parallelism;
    • Operator optimization for small-batch decoding;
    • Controlled context length.

    Storing full 4-bit weights entirely in accelerator memory requires at least about 1.5 TB of GPU memory, plus reserved space for cache and runtime. This usually means a multi-GPU server or a multi-node cluster. With 80 GB cards, capacity alone requires close to 20 cards. Redundancy, runtime space, and load balancing typically push the count higher.

    Cards with larger memory reduce the card count, but total cost does not necessarily drop much. High-end devices usually cost more and require matching motherboards, power supplies, cooling, and high-speed interconnects.

    Rough budget ranges for this tier:

    • Entry-level experimental setup: several hundred thousand CNY, which may only approach the target;
    • Engineering-ready setup: several hundred thousand to the million-CNY range;
    • Configuration with stable headroom: above 1 million CNY.

    Whether a system reaches 25 tokens/s cannot be inferred from card count alone. You must benchmark the real model. Test sustained decoding speed at different context lengths, not just the instantaneous result of a short prompt.

    Target 3: 10 Concurrent Users, Each at 25 Tokens/s

    This is the most expensive target, and it is the one most often underestimated.

    If 10 users generate text at the same time and each expects 25 tokens/s, the system must sustain about 250 tokens/s of output. The system also has to handle input encoding, request scheduling, KV cache growth, differences in context length across users, and traffic bursts.

    You cannot simply multiply the single-user configuration by 10. Higher concurrency introduces new bottlenecks:

    1. KV cache usage increases significantly;
    2. Expert routing may become unbalanced;
    3. Cross-card communication volume increases substantially;
    4. Some experts become hotspots;
    5. Scheduling and batching add waiting time;
    6. Mixed long and short requests cause memory fragmentation;
    7. A single machine failure affects all requests.

    If each request has an 8K to 32K context, 10 concurrent requests may need hundreds of GB or more of cache. The exact figure depends on layer count, hidden dimension, number of KV heads, cache precision, and whether paged caching is used.

    A production deployment therefore typically needs:

    • Enough total GPU memory;
    • Multi-node, multi-GPU expert parallelism;
    • High-bandwidth, low-latency interconnect;
    • Distributed request scheduling;
    • Dynamic batching;
    • Paged KV cache;
    • Monitoring, rate limiting, circuit breaking, and failover;
    • At least one redundant set of resources.

    For 10 concurrent users at 25 tokens/s each, the budget will likely reach several million CNY. Continuous operation adds network equipment, racks, power, cooling, spare parts, system maintenance, and software development costs.

    4. Why the Interconnect Determines Final Speed

    The challenge of sparse expert models is not only parameter count. Experts are distributed across devices, so each token’s activations must be transferred between devices according to its routing results.

    Suppose a batch of tokens is routed to many experts. The system must then perform a send, compute, return, and aggregate cycle. If devices communicate over a standard bus or low-speed network, communication time can exceed computation time. In that case, adding more accelerator cards can reduce efficiency.

    Deployment planning should focus on:

    • Single-card memory capacity;
    • Bidirectional bandwidth between cards;
    • Cross-node communication latency;
    • Cluster topology;
    • Expert parallelism support in the communication library;
    • Whether communication crosses racks;
    • Degradation strategies during network congestion.

    For large MoE models, prefer architectures that place many devices in one high-speed communication domain. If communication must cross nodes, reduce the number of hops where possible. Expert placement, routing load balancing, and overlapping communication with computation can further reduce the impact.

    5. Operating Costs You Should Not Overlook

    Hardware purchase is a one-time cost. Long-term operation also includes:

    • Depreciation of servers and accelerator cards;
    • Electricity consumption;
    • Air conditioning and cooling;
    • Racks and network equipment;
    • Storage maintenance;
    • System upgrades;
    • Model quantization and conversion;
    • Inference service development;
    • Logging and monitoring;
    • Security auditing;
    • Repairs;
    • Spare parts inventory.

    High-end multi-GPU servers can draw several kilowatts. Continuous daily operation creates substantial ongoing costs for electricity, cooling, and facility space. Individual users may find pay-as-you-go access to remote compute more economical than buying a full system. Organizations with steady, high-concurrency demand are more likely to spread fixed costs effectively with local deployment.

    6. Use a Staged Validation Approach

    Before purchasing hardware, follow this sequence:

    Stage 1: Confirm that the weight format is compatible with the inference framework. Test whether one card or a small number of devices can load the model.

    Stage 2: Use short context to test single-user decoding speed. Record time to first token, average output speed, and GPU memory usage.

    Stage 3: Increase context length. Observe KV cache growth and speed degradation.

    Stage 4: Gradually increase concurrency. Record total throughput, per-request latency, expert load distribution, and the share of time spent on communication.

    Stage 5: Simulate failures, restarts, traffic bursts, and GPU memory exhaustion. Verify that the system is stable enough for production.

    At minimum, performance tests should record:

    • Time to first token;
    • Output tokens per second;
    • Total throughput;
    • P50, P95, and P99 latency;
    • Peak GPU memory;
    • Host memory usage;
    • Cross-card communication bandwidth;
    • Expert load skew;
    • Performance degradation after long runs.

    7. Conclusion

    If the goal is only to verify that the model runs, focus on weight storage and tiered loading. Budgets can start at tens of thousands of CNY, but the experience will usually be poor.

    If the goal is 25 tokens/s for a single user, place as much of the full quantized weights as possible in high-speed GPU memory and pair them with high-bandwidth interconnect. The budget will most likely reach the hundreds of thousands to million-CNY range.

    If the goal is 10 concurrent users, each at 25 tokens/s, the project is effectively a small inference cluster. It requires many accelerator cards and complete communication, scheduling, caching, monitoring, and redundancy design. The total investment may reach several million CNY or more.

    The most reliable approach is not to buy hardware based on parameter count. First obtain the final weights and inference implementation. Then benchmark with your target context length, target concurrency, and actual quantization format. A deployment plan is feasible only when the test results meet the requirements for memory, throughput, latency, and stability at the same time.