Local Deployment Cost and Solutions for Massive Mixture-of-Experts Models

    Local deployment of a massive Mixture-of-Experts (MoE) model involves far more than buying accelerators. This article breaks down the full cost structure—weight storage, inference memory, compute cards, high-speed interconnects, power, and operations—using a ~2.8-trillion-parameter MoE model as an example. It explains why total parameters, not activated parameters, determine storage requirements, provides capacity estimates at different precision levels, and analyzes three deployment targets: merely running the model, achieving 25 tokens/s for a single user, and serving 10 concurrent users at 25 tokens/s each. It closes with a practical evaluation workflow including memory sizing formulas, parallelism strategies, and benchmark testing.

    1. First, Understand: Deployment Cost Is More Than Buying GPUs

    For a massive Mixture-of-Experts model, deployment costs typically consist of the following components:

    1. Model weight storage cost: determines the minimum VRAM or local storage you need.
    2. Inference memory cost: includes weights, activations, KV cache, runtime buffers, and communication buffers.
    3. Compute card cost: determines generation speed, concurrency capacity, and overall stability.
    4. High-speed interconnect cost: determines communication efficiency across multiple cards and nodes.
    5. Server and power costs: includes hosts, power delivery, cooling, racks, and long-term operating expenses.
    6. Software and operations cost: includes inference engines, monitoring, failover, model updates, and security management.

    Therefore, “can it run” and “can it serve production efficiently” are two entirely different questions. A configuration may be able to load a model and generate text without being suitable for real business use.

    The analysis below uses a large MoE model with roughly 2.8 trillion total parameters as an example. Assume the model has about 896 experts, activates only 16 of them per token, and uses low-bit weight quantization with lower-precision activation computation.

    One point deserves special emphasis: the ratio of activated parameters in MoE mainly affects computation volume; it does not reduce weight storage requirements proportionally.


    2. How Much VRAM Does 2.8 Trillion Parameters Actually Need?

    1. Don’t Calculate Based on Activated Parameters Alone

    Many people see “only 16 experts are activated per token” and mistakenly assume deployment only requires storing a small fraction of the total parameters. This is usually incorrect.

    In standard expert-parallel inference, the router selects a subset of experts based on each input token, but the model still needs access to all expert weights. Even if an expert is not invoked for the current token, it must already be loaded into some compute card, VRAM pool, or high-speed memory.

    Therefore:

    • Total parameter count determines the lower bound of weight storage;
    • Activated parameter count mainly affects per-token computation;
    • Expert distribution and communication topology determine multi-card inference efficiency;
    • Context length and concurrency determine KV cache size.

    2. Theoretical Lower Bound for Low-Bit Weights

    If all 2.8 trillion parameters use 4-bit weights, the theoretical data size can be estimated as:

    1. 2.8T × 4 bits ÷ 8
    2. ≈ 1.4TB

    However, real quantization formats typically include more than just the 4-bit weights themselves. Many block quantization schemes also store scale factors, zero points, or other metadata for a fixed number of weights.

    Assuming one extra 8-bit scale value per 32 weights, the average storage cost per weight is approximately:

    1. 4 bits + 8 bits ÷ 32
    2. = 4.25 bits

    The corresponding weight size is roughly:

    1. 2.8T × 4.25 bits ÷ 8
    2. ≈ 1.49TB

    This is still an idealized theoretical value and does not account for:

    • Non-quantized tensors;
    • Embedding and output layer parameters;
    • Router parameters;
    • Tensor alignment;
    • Weight sharding indices;
    • Inference framework workspaces;
    • Activations;
    • KV cache;
    • Multi-card communication buffers;
    • OS and runtime overhead.

    In practice, therefore, you should not plan for “total VRAM exactly equal to 1.49TB.” A safer approach is to reserve 20% to 40% extra headroom, depending on the inference framework, context length, and concurrency targets.

    3. Rough Capacity Relationships at Different Precisions

    Weight Precision Theoretical Weight Size Deployment Assessment
    FP16/BF16 ~5.6TB Generally suitable only for high-end clusters
    FP8 ~2.8TB Still requires large-scale accelerators
    8-bit quantization ~2.8TB Affected by quantization metadata
    4-bit quantization ~1.4TB Additional runtime headroom still required
    Below 4-bit Below 1.4TB Higher risk to accuracy, stability, and compatibility

    Note that 4-bit does not mean all computation happens in 4-bit. Real systems often combine low-bit weights, higher-precision activations, and mixed-precision accumulation to balance memory, speed, and model quality.


    3. Cost Analysis for Three Deployment Targets

    Target 1: Just Make It Run, Speed Doesn’t Matter

    This is the cheapest option, but even “running” has a minimum threshold.

    You can use:

    • Multiple large-VRAM compute cards;
    • Cards connected via high-speed interconnects;
    • Weights in 4-bit or another low-bit format;
    • Expert parallelism combined with tensor parallelism;
    • Offloading some weights to host memory or fast storage with hierarchical loading when necessary.

    In theory, as long as the system provides roughly 1.5TB or more of accessible weight storage, the model can potentially be loaded. But if all weights cannot fit in VRAM, you must rely on memory offloading or on-demand loading.

    2. Why “It Loads” Doesn’t Mean “It’s Usable”

    When weights are constantly shuffled between VRAM, host memory, and storage, the bottleneck is usually data transfer, not compute:

    • Host memory bandwidth is far lower than VRAM bandwidth;
    • Storage devices have much higher access latency;
    • Expert routing causes irregular access patterns;
    • Every token may trigger a different combination of experts;
    • Longer contexts make the KV cache squeeze available space further.

    Such a configuration may deliver less than 1 token per second, and time-to-first-token could be very long. It is therefore suitable only for:

    • Model architecture validation;
    • Weight loading tests;
    • Quantization compatibility tests;
    • Offline short-text experiments;
    • Low-frequency research tasks.

    3. Cost Range

    With second-hand or existing equipment, incremental hardware cost may be in the tens of thousands of dollars; if you purchase all large-VRAM cards, high-speed interconnects, and dedicated servers new, the cost could reach hundreds of thousands of dollars or more.

    You also need to consider:

    • Server hosts and expansion backplanes;
    • High-power power delivery;
    • Racks and cooling;
    • High-speed network switching;
    • Spares and maintenance;
    • Electricity for long-term operation.

    For most individual users, buying a full cluster just to “make it run” is rarely worthwhile. A more reasonable approach is to validate using remote compute or on-demand rented resources.


    Target 2: 25 Tokens/s for a Single User

    This target moves from “loading the model” into “interactive inference,” and the requirements rise significantly.

    1. What Determines Speed

    25 tokens/s for a single user is not just about theoretical compute; it also depends on:

    • Number of experts activated per token;
    • Attention mechanism computation;
    • Input context length;
    • Output length;
    • Weight precision;
    • KV cache read/write efficiency;
    • Load balancing in expert parallelism;
    • Inter-card communication latency;
    • Kernel fusion capability of the inference framework;
    • Presence of expert hotspots.

    For MoE models in particular, although computation is lower than a dense model of equal total size, each token may still need to access multiple experts across cards. If communication bandwidth is insufficient, accelerator utilization drops sharply.

    2. Memory Configuration Recommendations

    To reach 25 tokens/s for a single user, you generally cannot keep all weights in slow memory. A more sensible setup is:

    • Keeping primary weights resident in VRAM;
    • Using 4-bit or equivalent quantized weights;
    • Reserving ample space for the KV cache;
    • Using high-speed inter-card interconnects;
    • Minimizing cross-node expert access;
    • Using expert parallelism to reduce per-card weight pressure.

    Estimating roughly 1.5TB of quantized weights, with 80GB cards you would need at least about 19 cards just for the theoretical weights; accounting for runtime space and safety margins, the real number is usually higher. With 120GB or larger cards, the card count can be reduced, but it remains constrained by interconnect topology and parallelism strategy.

    3. Why More Cards Doesn’t Always Mean Faster

    Adding compute cards expands VRAM capacity but also increases communication paths and scheduling complexity.

    For example:

    • 16 cards may sit within one high-speed interconnect domain;
    • 32 cards may require crossing multiple switch layers;
    • Larger deployments may need cross-server communication;
    • All-to-all communication between experts grows more complex as concurrency and card count increase.

    If network bandwidth is insufficient, adding cards only increases communication overhead and can even reduce overall throughput. The key to Target 2, therefore, is not simply stacking cards, but achieving the right balance of “VRAM capacity—compute power—interconnect bandwidth.”

    4. Rough Cost

    A fully local configuration reaching 25 tokens/s for a single user typically requires:

    • Accelerators and servers in the hundreds of thousands of dollars or more;
    • Additional high-speed interconnect equipment;
    • Dedicated power and cooling systems;
    • Inference software tuning and long-term maintenance staff.

    Higher-compression quantization may reduce hardware counts, but model quality and generation stability must be re-validated. For professional teams, the recommendation is to benchmark with small-scale shards first before deciding on scale-out.


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

    This is a near-production service target and far harder than single-user inference.

    1. Throughput Requirements

    With 10 users generating simultaneously at 25 tokens/s each, the theoretical output throughput is at least:

    1. 10 × 25
    2. = 250 tokens/s

    But the real system must also handle:

    • User prompt processing;
    • Time-to-first-token latency;
    • Request queuing;
    • Varying context lengths;
    • Dynamic batching during generation;
    • Imbalanced expert routing;
    • Peak traffic;
    • Retries and replica redundancy.

    Production environments therefore should not be sized at exactly 250 tokens/s; you typically need 30% to 100% performance headroom. Otherwise, longer inputs or bursty requests will quickly degrade per-user speed.

    2. KV Cache Becomes the Main Memory Pressure

    As concurrency increases, weights don’t grow, but the KV cache scales with:

    1. KV cache size
    2. ≈ layers × KV dimensions × context length × concurrency × data precision

    This means:

    • Growing context from 4K to 32K can significantly increase cache pressure;
    • Increasing concurrency from 1 to 10 expands cache needs roughly proportionally;
    • Long-document Q&A triggers out-of-memory much more easily than short chats;
    • Higher-precision caches further increase memory consumption.

    So a 10-concurrent configuration cannot be planned on weight capacity alone; you must stress test based on actual context lengths.

    3. A Service-Oriented Architecture Is Required

    Production-grade deployment typically needs:

    • A request ingress layer;
    • A scheduler;
    • Dynamic batching;
    • Multiple inference replicas;
    • Load balancing;
    • Rate limiting and queuing;
    • Timeout control;
    • Logging and monitoring;
    • GPU utilization monitoring;
    • VRAM and KV cache alerting;
    • Automatic removal of failed instances;
    • Model version rollback.

    For a 10-concurrent scenario, a single massive model instance is not necessarily optimal. Depending on your workload, you can choose:

    1. One large instance scheduling all requests centrally;
    2. Multiple smaller instances with a service layer distributing requests;
    3. A primary instance for long contexts and secondary instances for short requests;
    4. Different quantized versions serving low-latency and high-throughput tasks separately.

    The final architecture should be decided through real workload testing, not vendor-quoted theoretical peaks.

    4. Rough Cost

    To serve 10 concurrent users at 25+ tokens/s each, you typically need multiple groups of compute cards and high-speed interconnects, with total investment potentially ranging from several hundred thousand dollars to over a million dollars, depending on:

    • Compute card memory specifications;
    • Inter-card interconnect method;
    • Number of nodes;
    • Quantization format;
    • Context length;
    • Redundancy requirements;
    • 24/7 availability requirements;
    • Disaster recovery and backup nodes.

    Long-term operating costs cannot be ignored either. A dense compute cluster may draw tens of kilowatts or more, and electricity, cooling, and maintenance costs accumulate continuously.


    4. How to Estimate in Practice

    Follow this process rather than buying hardware outright.

    Step 1: Confirm Model Files and Quantization Format

    Focus on confirming:

    • Total parameter count;
    • Number of experts;
    • Experts activated per token;
    • Weight precision;
    • Activation precision;
    • Whether weight sharding is supported;
    • Whether special kernels are required;
    • Whether host memory offloading is supported;
    • Maximum context length.

    Step 2: Calculate the Memory Lower Bound

    You can use this simplified formula:

    1. Total memory requirement
    2. = weight memory
    3. + KV cache
    4. + activations
    5. + communication buffers
    6. + runtime headroom

    Runtime headroom should not be below 10% to 20% of total memory. If the system uses dynamic batching or long contexts, the reserved ratio should be higher.

    Step 3: Determine the Parallelism Strategy

    Common strategies include:

    • Tensor parallelism: splitting a single layer’s computation across multiple cards;
    • Expert parallelism: distributing different experts across cards or nodes;
    • Pipeline parallelism: distributing model layers across devices;
    • Data parallelism: replicating model instances to increase concurrency.

    Large MoE models usually require a combination of these. The higher the degree of parallelism, the greater the demands on the scheduler, communication network, and load balancing.

    Step 4: Run Four Types of Benchmarks

    At minimum, test:

    1. Time-to-first-token latency;
    2. Sustained single-user generation speed;
    3. Total multi-user throughput;
    4. Memory stability under long contexts.

    Fix input length, output length, quantization format, and concurrency level during testing; otherwise results are not comparable.


    5. Final Conclusions

    For a ~2.8-trillion-parameter MoE model, theoretical weight size after 4-bit quantization is roughly 1.5TB, but actual deployment must additionally account for runtime space, KV cache, communication buffers, and non-quantized tensors.

    The three targets can be summarized as:

    • Just running: low speed, memory offloading, and high latency are acceptable; cost ranges from tens of thousands to hundreds of thousands of dollars;
    • 25 tokens/s for one user: requires large-scale VRAM, high-speed interconnects, and dedicated optimization; cost typically reaches hundreds of thousands of dollars;
    • 10 concurrent users at 25+ tokens/s each: requires a production-grade cluster, dynamic scheduling, and redundancy; cost can range from hundreds of thousands to over a million dollars.

    What truly determines cost is not parameter count alone, but four variables: weight precision, context length, target concurrency, and interconnect bandwidth. Until the full weights and official inference implementation are released, all specific card counts and speeds remain estimates. The soundest engineering path is to start with small-scale loading tests, then run stress tests with realistic input lengths and concurrency, and finally scale out based on measured throughput.