Local Deployment Cost Analysis for Ultra-Large Mixture-of-Experts Models
This article analyzes the real hardware and cost requirements for locally deploying a mixture-of-experts (MoE) model with roughly 2.8 trillion total parameters and native 4-bit weights. It explains why low active-parameter counts do not reduce memory requirements, estimates GPU memory needs (around 1.5 TB), outlines three deployment targets (basic inference, 25 tokens/s for a single user, and 10 concurrent users), compares cloud rental versus self-built server costs, and provides a pre-deployment validation checklist covering weight formats, parallelism strategies, context-length stress testing, and total cost of ownership.
1. Bottom Line First: This Is Not an Ordinary Workstation Project
For a mixture-of-experts (MoE) model with trillions of total parameters, the main challenge of local deployment is not how many parameters are activated per inference step, but the fact that the complete model weights must reside in device memory.
Take a model with about 2.8 trillion total parameters and roughly 104 billion parameters activated per token. Even if the model uses a native 4-bit weight format, storing the weights alone requires approximately:
2.8 trillion × 4 bits ÷ 8≈ 1.4 TB
That 1.4 TB is only the theoretical weight footprint and does not include runtime overhead. In a real deployment, you also need to reserve space for:
- Temporary buffers used during model execution;
- Activations and intermediate computation results;
- The KV Cache required by the attention mechanism;
- Multi-GPU communication buffers;
- Request scheduling, batching, and framework overhead;
- Dynamic memory consumption at different context lengths.
Therefore, if the goal is stable inference, the usable GPU memory should typically be planned at around 1.5 TB or more. This kind of model cannot be handled by simply adding one or two high-end consumer GPUs; it is a typical server-class deployment task.
2. Why “Few Active Parameters” Does Not Mean “Low Memory Requirements”
MoE models typically route each token through only a subset of experts, so their compute load can be significantly lower than that of a dense model with the same total parameter count.
However, two distinct concepts must be separated:
- The number of parameters activated during computation;
- The total number of parameters that must be loaded for deployment.
The former mainly affects compute throughput and inference speed, while the latter directly determines whether the model can fit in memory at all.
For example, if a model has 2.8 trillion total parameters but only activates about 104 billion per token, a single computation step does not need to execute all experts simultaneously. However, so that different requests can access any expert in subsequent steps, the complete weights still need to be loaded into GPU memory in advance—or swapped repeatedly between the GPU and other storage at extremely high cost.
If the model weights cannot fully reside in high-speed GPU memory, the following problems typically occur:
- Frequent data movement during inference;
- Reduced GPU utilization;
- Significantly increased per-token latency;
- Rapid performance degradation under concurrency;
- Actual speeds far below theoretical compute estimates.
In short, the MoE architecture reduces part of the compute pressure, but it cannot fundamentally eliminate the storage pressure of an ultra-large model.
3. Benefits and Limits of the 4-Bit Weight Format
If a model natively uses a 4-bit floating-point or similar low-bit weight format, it is not the same as a model that was trained at high precision and then forcibly compressed to 4 bits.
The advantages of a native low-bit format mainly include:
- Lower weight footprint;
- Relatively reduced memory bandwidth pressure;
- Reduced dequantization overhead on hardware that supports the format;
- Suitability for running ultra-large models across multiple GPUs in parallel.
However, 4-bit weights do not mean every piece of data occupies only 4 bits. During actual execution, activations, accumulation results, normalization processes, cached data, and some temporary tensors may use higher-precision representations.
Therefore, you cannot simply use “parameter count × 4 bits” as the final basis for procurement. That formula only estimates the lower bound of the weights; actual deployments must also account for runtime headroom and context caching.
4. Three Typical Deployment Targets
4.1 Target 1: Just Get the Model Running and Producing Results
If speed is not a concern at all and you only need the model to load and return results, you can theoretically plan for about 1.5 TB of total GPU memory.
A rough estimate based on per-GPU memory capacity:
- 80 GB-class GPUs: about 19 cards;
- 140 GB-class GPUs: about 11 cards;
- 300 GB-class GPUs: about 8 cards.
These numbers are capacity-level estimates only. In practice, you must also consider that memory cannot be fully saturated, multi-GPU communication, topology, and framework sharding strategies. To avoid runtime failures caused by insufficient buffers, not all memory can be dedicated to storing model weights.
In addition, some older-generation GPUs may not natively support the low-bit computation format used by the model, requiring runtime dequantization. While this may allow the model to fit in memory, it introduces additional compute and bandwidth overhead, so final performance cannot be inferred from memory capacity alone.
A more realistic approach is to use a new generation of accelerator cards that support low-bit computation and high-speed multi-GPU interconnects, starting with an 8-GPU server configuration. Even so, this already exceeds the scope of an ordinary personal workstation and requires considering:
- Multi-GPU server motherboards and chassis;
- High-wattage power delivery;
- Liquid cooling or high-spec air cooling;
- High-speed inter-GPU interconnects;
- Data center cooling and noise;
- Stability under sustained full-load operation.
4.2 Target 2: Around 25 Tokens/s for a Single User
If the goal is a relatively smooth generation experience for a single user, simply “being able to load” is not enough. The recommendation is still to start with 8 server-class GPUs featuring high memory capacity and low-bit computation support.
The reason is that the model’s first threshold is capacity, not compute. Even with only one user, you cannot compress the model onto two or three GPUs just because concurrency is low. As long as the complete weights still require about 1.4 TB of space, the hardware scale does not shrink linearly with the number of users.
Single-user speed is affected by multiple factors:
- Input context length;
- Output length;
- Attention cache size;
- Expert routing distribution;
- Multi-GPU communication efficiency;
- The inference framework’s scheduling strategy;
- Whether low-bit operators are natively supported by the hardware;
- Whether continuous batching is used.
Around 25 tokens/s is a reasonable engineering target, but it should not be treated as a guaranteed fixed value. Especially in long-context scenarios, time-to-first-token and subsequent generation speed may differ significantly. Before deployment, stress testing should use real business requests rather than only short prompts.
It is recommended to record at least the following metrics:
Time to first tokenAverage generation speedP50/P95/P99 latencyPeak GPU memory usageGPU utilizationShare of time spent on multi-GPU communicationThroughput at different context lengths
Only when all of these metrics meet requirements can you judge whether the configuration is truly usable.
4.3 Target 3: 10 Concurrent Users at ~25 Tokens/s Each
If 10 users are generating simultaneously and each must maintain about 25 tokens/s, the system needs to provide approximately:
10 × 25 = 250 tokens/s
of aggregate output capacity.
This does not necessarily mean memory must scale to ten times the single-user target. The model weights only need to be loaded once; additional users mainly increase:
- KV Cache;
- Activations;
- Request scheduling overhead;
- Temporary tensors during batching;
- Compute and bandwidth consumption in the output phase.
If context lengths are modest, a single 8-GPU server may have enough capacity to host far more than 10 concurrent requests. But “how many requests can fit” and “whether every request can sustain 25 tokens/s” are two completely different questions.
Memory capacity solves the residency problem; throughput capability solves the quality-of-service problem. With 10 concurrent users, all requests share the model’s compute resources, and per-stream speed will typically suffer. The system may exhibit:
- Per-stream generation speed declining as concurrency increases;
- Higher average throughput but worse tail latency;
- Long-context requests slowing down short ones;
- Load concentration on certain experts, creating localized bottlenecks;
- Memory still being sufficient while GPU compute or communication is already saturated.
Therefore, concurrent scenarios must be stress-tested with real requests; the number of users that can be served cannot be inferred directly from memory capacity.
5. How to Estimate Costs
5.1 Cloud Rental Costs
For individuals or teams, purchasing this class of server outright usually requires a high upfront investment, so cloud GPU resources can be used first for validation.
Assuming a certain high-memory GPU has a long-term reserved price of about $4.76 per GPU per hour, the compute cost of an 8-GPU node would be approximately:
4.76 × 8 = $38.08 per hour
Estimated at 24 hours per day and 30 days per month:
38.08 × 24 ≈ $913.92 per day38.08 × 24 × 30 ≈ $27,417.6 per month
This covers GPU compute only and typically does not include:
- System and data disks;
- Model download and storage;
- Network traffic;
- Load balancing;
- Monitoring and logging;
- Backups;
- Facility or platform surcharges;
- Failover costs during long-running operations.
As a result, the monthly cost of long-term cloud operation can be significantly higher than the simple GPU hourly rate.
5.2 Self-Built Server Costs
The total cost of a self-built solution should not be based on GPU purchase price alone; it should also include:
- The GPUs themselves;
- The multi-GPU server chassis and platform;
- CPUs, system memory, and high-speed local storage;
- Power supply modules;
- Cooling systems;
- High-speed networking and inter-GPU interconnects;
- Racks, power, and cooling infrastructure;
- Operations staff;
- Spare parts and downtime losses from failures.
For an 8-GPU-class server, power and cooling become ongoing costs. Under heavy load, total system power consumption can reach several kilowatts. For continuous daily operation, you also need to evaluate power circuits, facility cooling capacity, and long-term stability.
5.3 Hybrid Deployment Is Often More Economical
If the workload is not used around the clock, full self-hosting or 24/7 rental can both create waste. More reasonable approaches include:
- Using short-term cloud rentals during the development phase;
- Temporarily scaling up for stress testing;
- Using long-term reserved resources for stable production workloads;
- Releasing some instances during off-peak periods;
- Using different model sizes for different tasks;
- Scheduling offline batch processing during low-cost time windows.
If there are only a few users, or the model is mainly for experimentation, it is generally safer to validate model quality and actual throughput first before deciding to purchase hardware, rather than building a full cluster upfront.
6. Key Questions to Validate Before Deployment
Before committing significant budget, it is recommended to validate in the following order:
Step 1: Confirm the Weight Format and Memory Requirements
Do not look at parameter scale alone. Confirm weight precision, runtime precision, cache precision, and whether the framework supports the corresponding low-bit operators.
Step 2: Confirm the Multi-GPU Sharding Strategy
The model may use tensor parallelism, pipeline parallelism, expert parallelism, or a combination of these. Different parallelism strategies have different requirements for memory, communication bandwidth, and topology.
Step 3: Stress Test with Realistic Contexts
Speeds measured with short texts often do not represent production conditions. Test short, medium, and long contexts separately, and record both time-to-first-token and sustained generation speed.
Step 4: Test Concurrency and Tail Latency
Average tokens/s does not reflect user experience. Pay close attention to P95 and P99 latency, and whether the system jitters noticeably when some requests have very long contexts.
Step 5: Calculate Total Cost of Ownership
Include GPUs, servers, power, cooling, storage, networking, and operations in the budget—avoid calculating only the GPU rental price.
7. Final Assessment
For an ultra-large MoE model with about 2.8 trillion total parameters and roughly 1.4 TB of weight footprint:
- Even just getting it running typically requires around 1.5 TB of usable GPU memory;
- About 8 high-memory server-class GPUs is a realistic starting point;
- 25 tokens/s for a single user is an engineering target that must be verified through real testing;
- 10 concurrent users at 25 tokens/s each requires about 250 tokens/s of aggregate throughput;
- Concurrency does not necessarily determine memory scale directly, but it significantly affects scheduling, throughput, and tail latency;
- Long-term cloud operation can cost tens of thousands of dollars per month;
- A self-built solution additionally carries hardware procurement, power, cooling, and operations costs.
Therefore, the core question of deploying this class of model locally is not “can I buy a few GPUs,” but whether you can simultaneously evaluate capacity, compute, communication, concurrency, stability, and total cost. Until real business workloads have been stress-tested, any conclusion drawn solely from parameter counts, memory capacity, or a one-off demo should not be used directly as the basis for production procurement decisions.
