VRAM and Cost Planning for Local Deployment of Ultra-Large MoE Models
A practical engineering guide to sizing memory, interconnect, and total cost for locally deploying trillion-parameter mixture-of-experts models, covering full-weight residency, low-bit metadata, KV cache, expert-parallel communication domains, and utilization-based budgeting.
When deploying an ultra-large mixture-of-experts model locally, the first question is not simply “which GPU can run it.” The more important question is whether two budgets can close at the same time: whether weights and runtime state fit into available VRAM and host memory, and whether the cross-device traffic caused by expert routing can be absorbed by high-speed interconnect.
Once parameter counts reach the trillion scale, a low activation ratio does not mean you can buy capacity as if only the activated experts need to be stored. The sections below follow an engineering accounting order: VRAM meaning, capacity lower bounds, communication constraints, and total cost. This makes it possible to build a defensible budget even when vendor list prices are unavailable.
Break the Problem into Capacity, Compute, and Communication
The resource bottleneck for inference serving usually exists at three layers at the same time.
The capacity layer concerns data that must remain resident: all expert weights, a small number of unquantized or higher-precision tensors, tokenizer and routing metadata, batching workspaces, and the key-value cache that grows with sequence length. This data must have a place to live before requests arrive. Otherwise, when routing hits a cold expert, a swap-in occurs and latency can jump from milliseconds to storage round trips.
The compute layer concerns the parameters that actually participate in matrix multiplications for each token. In a mixture-of-experts structure, routing sends tokens to only a few experts, so floating-point operation counts scale roughly with the number of activated experts rather than linearly with the total number of experts. Therefore, an activation ratio of only a few percent is mainly useful for estimating throughput and latency. It cannot be treated directly as a VRAM discount.
The communication layer concerns the all-to-all exchange after routing: activations must be sent to the devices hosting the selected experts, and expert outputs must be merged back into the main path. The more scattered the experts are, the more peers participate in each request’s data movement. If interconnect bandwidth and communication-domain size are insufficient, accelerator utilization is consumed by communication waits, and the nominal compute peak cannot be realized.
A local deployment plan must include all three layers in capacity planning. Purchasing only for peak compute often leads to one of two outcomes: the weights do not fit, or they fit but cross-device movement reduces effective throughput to an unacceptable level.
Why Total Parameters Are Counted as Fully Resident for VRAM
Let the total parameter count be (P), the number of experts be (E), and the number of experts activated per token be (k). The activation ratio can be approximated as (k/E), but it describes the width of the compute graph, not the width of storage.
The reason is that experts are static weights. After training or export, each expert is a fixed set of matrices. During inference, the router produces dynamic indices: this step may use group (i), and the next step may use group (j). If the cluster cannot hold all (E) groups of weights at the same time, it must swap them in from host memory, local disk, or remote storage according to routing results at every step. Swap-in bandwidth is usually more than an order of magnitude lower than on-chip or in-machine interconnect. Long-tail requests can also disrupt caching and make latency unpredictable. Production low-latency serving therefore defaults to planning for full-weight residency. The activation ratio is used only when estimating per-token floating-point operations and power consumption.
The backbone network cannot be ignored either. In addition to expert matrices, there are attention, residual, normalization, and output-head components that always participate. These tensors are computed for every token and cannot be removed from the VRAM bill just because experts are sparse. The deployment specification should be written as:
resident bytes ≈ all experts + all backbone + runtime
not:
resident bytes ≈ activated experts for a single pass
How to Calculate Low-Bit Weight Bytes Without Underestimating
If quantization-aware training uses low-bit weights and relatively higher-bit activations from the alignment stage, inference can more safely use the corresponding format. However, the format’s additional metadata must still be included.
The pure data lower bound is easy to calculate incorrectly. If you only write “parameter count × bits per weight ÷ 8,” you miss block scaling. A common block low-bit format lets a fixed number of low-bit elements share one higher-bit scale factor, and some formats also include zero points or block indices. The effective bit width should be written as:
[
b{\text{eff}} = b{\text{w}} + \frac{b_{\text{s}}}{G}
]
where (b{\text{w}}) is the weight bit width, (b{\text{s}}) is the scale-factor bit width, and (G) is the group size. For example, with 4-bit weights and one 8-bit scale per 32 elements, the effective width is (4 + 8/32 = 4.25) bits, not 4 bits. The raw capacity is:
[
\text{Bytes}{\text{w}} = P \times b{\text{eff}} / 8
]
This is only the lower bound for weight elements plus scales. Four additional items must be listed separately. Missing any one of them can turn “just fits” into runtime overflow.
First, tensors that are not low-bit. Normalization parameters, some biases, routers, embeddings, and output heads often remain at higher precision. They are smaller than expert matrices, but at trillion-parameter scale they can still amount to tens of gigabytes. They cannot be folded into the 4-bit formula.
Second, format alignment and packing overhead. After tensors are aligned by block, device, and parallel split, tail padding and index tables can make the actual file larger than the theoretical byte count. A common engineering estimate is a 5%–15% alignment margin, followed by verification against the real file size produced by the export tool. Do not treat the theoretical value as disk usage.
Third, runtime workspace. Activations, communication buffers, operator temporary storage, and framework overhead vary with batch size and sequence length. Weights fitting is not the same as the forward pass fitting. When batch size increases from 1 to production concurrency, the workspace can become a new hard limit.
Fourth, the key-value cache. The cache is roughly proportional to the number of concurrent sequences, context length, number of layers, and head dimension. Its relationship to expert sparsity is weak. In long-context serving, the cache often hits the VRAM wall earlier than the extra scale-factor bytes. Planning should treat target context and target concurrency as inputs, not as something to add after deployment.
Therefore, the external reporting should be split into three lines: theoretical weight lower bound, static size after export, and runtime peak under the target workload. Advertising only the first line will systematically underestimate the number of machines required.
Use Reference Sizes to Understand the Full-Spec Lower Bound
If a team already has experience deploying a smaller mixture-of-experts model, it can use parameter-count ratios for order-of-magnitude comparison, but the precision format must be kept consistent. Quantizing the same model from 8-bit weights to 4-bit weights with scales roughly halves static weight size; it does not reduce it to one quarter. Activations and cache do not decrease in proportion to weight bit width.
Likewise, interpreting “4× the parameters” directly as “4× the GPUs” is not rigorous. A small model may fit within a single machine’s interconnect domain, while a large model may be forced across machines. Once communication efficiency drops, maintaining latency may require a GPU-count increase greater than the parameter increase.
A full-spec deployment here means full-weight residency in the target precision format, serviceability at the target context length, and cross-expert communication that remains within the designed high-speed domain. Any downgrade—expert swapping, shorter context, smaller batch size, or higher accepted latency—should be named separately as a degraded specification and not mixed into the same table as the full-spec budget.
If official or community guidance mentions a “super node” consisting of dozens or more accelerators, it should be understood as a communication-domain constraint, not merely a VRAM division. VRAM division gives a lower bound on the number of devices. The communication domain determines how those devices must be interconnected to qualify as one logical computer.
Why Large-Scale Expert Parallelism Depends Heavily on High-Speed Interconnect
Expert parallelism places different experts on different accelerators. For each token, the path is: the backbone produces hidden states, the router selects (k) experts, activations are sent to the devices corresponding to the expert indices, and after expert computation the results are weighted and sent back according to the original routing. This is a fine-grained all-to-all pattern. Traffic grows with batch size, hidden dimension, and (k), and it is sensitive to both latency and bandwidth.
If experts are scattered across machines connected only by ordinary data-center networking, a single token’s movement must pass through the host protocol stack and cross-machine switching. The computation itself may take less than a millisecond, but communication queuing can accumulate to several milliseconds. Decoding repeats this process token by token, degrading both user-perceived time to first token and inter-token latency. Placing accelerators participating in expert parallelism within the same high-speed interconnect domain, so that data movement does not leave that domain, is a common prerequisite for large-scale mixture-of-experts inference. The high-speed interconnect can be an intra-machine switching backplane or a rack-scale coherent interconnect. The key metrics are intra-domain bandwidth, latency, and the number of accelerators the domain can contain, not the nominal rate of external network cards.
This leads to two procurement constraints. First, even if a single GPU has very large VRAM, if the high-speed domain cannot hold all resident weights, cross-domain communication is still required and the latency model must be rewritten for cross-domain traffic. Second, to keep weights within one domain, it may be better to use more accelerators with smaller per-device VRAM. Total VRAM may be the same, but intra-domain interconnect is more complete and the overall design is more suitable. When comparing options, use two columns: “resident parameters within the domain” and “intra-domain all-to-all bandwidth.” Do not compare only single-GPU compute.
How Much Local Deployment Costs: Budget by Cost Items, Not Slogans
Without citing specific model prices, the budget can be estimated with the following structure. Prices should be filled in with current quotes to avoid putting expired catalog prices into the plan.
Accelerator capital expenditure. The number of devices should be the maximum of three values: static weights plus runtime peak divided by usable VRAM per device; the minimum number of devices required to fill the communication domain; and the number of devices derived from target throughput. Usable VRAM must subtract driver and framework reservations. Do not divide nominal capacity directly.
Host and storage. The exported weight size usually exceeds the theoretical VRAM value, and host memory is also needed as a staging area during loading. Local disks should at least store model copies, rollback versions, and logs. Multiple copies are for avoiding full-weight pulls across racks during failures.
Interconnect and racks. High-speed domain hardware, switches, cables, and rack space are often on the same order as the accelerators, especially when the domain must expand to multiple machines. If the existing data center can only provide ordinary Ethernet, the plan should not pretend that “we will buy the GPUs first and add the network later,” because network topology will in turn change the number of GPUs.
Power and cooling. Power consumption should be calculated from the rated power of accelerators, hosts, and networking multiplied by a simultaneous-use factor, then multiplied by a cooling factor. Trillion-scale resident services are often 24/7, and electricity is a major operating expense. Comparing only purchase price without comparing three-year electricity costs can lead to choosing a configuration that is cheap to buy but impossible to rack.
Personnel and availability. Engineers familiar with parallel partitioning, quantization formats, capacity stress testing, and failover are required. The hidden costs of local deployment include on-call duty, version rollback, and capacity retesting. If business traffic fluctuates greatly and utilization remains low for a long time, the cost per inference will be higher than the number calculated from peak capacity.
Utilization is the denominator of “how much it costs.” Let monthly capital and electricity amortization be (C), and monthly successfully processed tokens or requests be (Q). The unit cost is (C/Q). (Q) is constrained by latency service levels: reducing batch size to lower latency does not reduce VRAM or GPU count, but it reduces (Q) and increases unit cost. Therefore, cost conclusions must be tied to service levels, such as target context, concurrency, and inter-token latency, rather than to an isolated “minimum VRAM.”
Recommended Implementation Order
First, freeze the model export format, measure the real file size, list unquantized tensors, and verify the theoretical lower bound with the effective-bit formula. If the difference exceeds expectations, check alignment and duplicate copies first.
Second, profile VRAM with the target batch size and context. Record the key-value cache and workspace separately. Without profiling data, do not treat the cache as a constant just to make the report look better.
Third, draw the communication domain: how experts are partitioned, how many peer flows one routing step generates, and whether intra-domain bandwidth covers peak batches. If the domain cannot hold everything, evaluate swapping strategies and separately provide an upper latency bound. Do not call that full-spec.
Fourth, obtain quotes for three configurations in parallel: the minimum domain that just holds the weights, the expanded domain that meets throughput, and the reduced configuration that allows degraded context. Compare capital expenditure, electricity cost, and unit inference cost across the three columns.
Fifth, use short-cycle stress tests to verify load time, remaining capacity after a single-device failure, and cache growth under long context. If the stress test fails, prioritize adjusting parallel partitioning and batching strategy rather than first adding accelerators unrelated to the communication domain.
A schematic capacity check can be expressed as a configuration so reviewers can change values instead of scattering formulas throughout the document:
weight_bytes = params * (weight_bits + scale_bits / group_size) / 8static_bytes = weight_bytes + other_tensors + alignment_padruntime_peak = static_bytes + kv_cache(concurrency, context) + workspace(batch)accelerators = max(ceil(runtime_peak / usable_memory_per_device),domain_min_devices,throughput_devices)
usable_memory_per_device, domain_min_devices, and electricity prices must come from the current hardware and data-center conditions. They cannot be copied directly from another model’s case.
Conclusion
For local deployment of ultra-large mixture-of-experts models, the VRAM bill is calculated from full residency of all experts and the backbone. The activation ratio only shows that compute can be sparse; it does not show that storage can be sparse. Low-bit formats should use “weight bits plus per-group scale” to obtain the effective width, then add non-low-bit tensors, alignment, workspace, and key-value cache to get the runtime peak. The GPU count must also satisfy both the high-speed communication domain and target throughput. Cost is the amortization of accelerators, host storage, interconnect racks, power and cooling, and personnel under a given latency and utilization level—not theoretical weight bytes multiplied by a unit price. Following this order allows a team to know before procurement whether the money is mainly spent on capacity, interconnect, or excessively low utilization, and avoids underestimating the real threshold with activation ratios or a raw 4-bit formula.
