VRAM and Cost Guide for Locally Deploying Trillion-Parameter MoE Models
This guide explains the VRAM requirements and cost considerations for deploying ultra-large Mixture-of-Experts (MoE) models locally. It covers why a roughly 2.8-trillion-parameter MoE model needs about 1.5TB of GPU memory, how to build a realistic memory budget across weights, runtime buffers, and KV cache, what hardware tiers correspond to "just runs," 25 tokens/s for a single user, and 10 concurrent users, and how to estimate cloud rental versus self-hosted costs, along with a pre-launch benchmarking checklist.
1. Bottom Line First: This Is a Capacity Problem, Not a Normal Workstation Upgrade
When discussing local deployment of ultra-large Mixture-of-Experts (MoE) models, you must first separate two questions: is the compute fast enough and do the weights even fit in memory. For a model with trillions of total parameters but only around 100 billion parameters activated per token, the second question usually becomes the hard constraint first. Sparse activation in MoE reduces per-token compute, but all weights must still reside in memory or VRAM. You cannot assume a handful of consumer GPUs is enough just because only a fraction of experts is active per token.
Take an MoE model with roughly 2.8 trillion total parameters and about 100 billion parameters activated per token. With a native 4-bit weight format, the weight volume alone is:
2.8T × 4 bits ÷ 8 = 1.4 TB
That excludes activations, runtime buffers, KV cache / state space, batching and scheduling overhead, and framework costs. A usable single-user deployment typically requires on the order of 1.5TB of accelerator VRAM. So even if the goal is just “make it run,” this is already a server-class project, not a matter of plugging a few cards into a regular workstation.
One critical caveat: native 4-bit weights are not the same as forcibly quantizing high-precision weights down to 4 bits. The former is the model’s design precision; the latter introduces extra dequantization work, accuracy loss, and runtime overhead. For ultra-large models, you must first confirm that the runtime natively supports the weight format. “Fits in memory” does not equal “runs stably.”
2. The VRAM Budget: Where 1.5TB Comes From
Memory estimation cannot stop at weights. Engineering-wise, you should break it into at least four parts:
- Model weights: determined by total parameters and bits per weight;
- Runtime buffers: operator workspaces, temporary tensors, communication buffers;
- KV cache / state space: grows with context length, concurrency, and model depth;
- Batching and scheduling headroom: reserved for throughput scheduling, peak requests, and fragmentation.
You can model the rough estimate with pseudocode like this:
function estimate_vram(params_total, bits_per_weight, runtime_ratio,kv_per_token, context_tokens, concurrency):weight_bytes = params_total * bits_per_weight / 8runtime_bytes = weight_bytes * runtime_ratiokv_bytes = kv_per_token * context_tokens * concurrencyreturn weight_bytes + runtime_bytes + kv_bytes# Example: for formula illustration only; actual values depend on# the model configuration and load testingweight = 2.8e12 * 4 / 8 # roughly 1.4TBruntime = weight * 0.05 # reserve about 5% for runtime overheadkv = 0 # ignore for a single user with short contexttotal = weight + runtime + kv
Following this example, weights are about 1.4TB; after adding runtime and state space, roughly 1.5TB of VRAM per single user is a reasonable engineering starting point. With long contexts or higher concurrency, the KV cache grows quickly. If the runtime does not fully support the native 4-bit format, dequantized copies may also be created, pushing memory usage even higher.
Therefore, before deployment you must answer three questions: Are weights loaded in their native low-bit format? Does the runtime avoid creating extra high-precision copies? What is the peak KV cache at the target context length and concurrency? Answering only “how big is the model file” is nowhere near enough.
3. Three Tiers of Goals: Runs, Fast Enough for One User, Concurrency-Ready
3.1 “Just Make It Run”: Capacity First, Still a Server-Class Project
The minimum goal is not speed but keeping 1.5TB of weights and runtime state stably resident. In terms of raw capacity, that means combining multiple high-memory data-center accelerators in a single node or across nodes. If the accelerator architecture cannot natively execute low-bit weights, the runtime must dequantize, which may still “fit” but adds memory, bandwidth, and latency overhead—not recommended as a long-term solution.
A more realistic minimum configuration should prioritize 8-GPU-class nodes with native low-bit weight support, high per-card memory, and high-speed interconnect. This is not simply stacking cards: weight capacity, parallel communication, and runtime support must all be satisfied simultaneously. Even if a regular workstation can physically hold multiple cards, it is often limited by power delivery, cooling, interconnect bandwidth, and motherboard topology, making stable operation difficult.
3.2 25 Tokens/s for a Single User: Capacity First, Then Throughput
Single-user usage does not shrink the server down to two or three cards. The reason is simple: 1.4TB of weights must fit first, and low single-user concurrency does not lower the weight capacity floor. To target 25 tokens/s, the hardware baseline is still a high-memory 8-GPU-class node, but whether the target is actually met must be verified by measurement.
Factors affecting single-stream speed include interconnect bandwidth, expert-parallel communication, batching strategy, KV cache management, context length, and how well the runtime supports low-bit weights. Speed measured at short context with a single request cannot be extrapolated to long contexts or high concurrency. Before going live, benchmark time-to-first-token, per-token latency, and P95/P99 stability at your real context lengths.
3.3 10 Concurrent Users at 25 Tokens/s Each: Aggregate Throughput of at Least 250 Tokens/s
Ten concurrent streams at 25 tokens/s each means at least 250 tokens/s of aggregate output. VRAM capacity may not need to double immediately: a single 8-GPU node can potentially serve multiple streams via batching when contexts are not too long. The real difficulty is throughput and scheduling: when 10 streams generate simultaneously, can each one maintain the target speed? Are there queuing, preemption, or long-tail latency issues? These cannot be inferred from memory capacity alone.
Break the concurrency target into service-level metrics: aggregate throughput, per-stream TPOT, time-to-first-token, P99 latency, peak VRAM, and request queuing time. If contexts reach hundreds of thousands or even millions of tokens, KV cache and scheduling pressure rise sharply, potentially requiring more nodes or finer-grained admission control.
4. Cost Model: Cloud Rental, Self-Hosting, and Hidden Overheads
Cost cannot be judged by GPU unit price alone. Use this framework:
Monthly cloud cost ≈ per-GPU hourly rate × GPU count × 24 × 30 × discount factor+ storage + networking + ops + monitoring/alertingMonthly self-hosted cost ≈ hardware depreciation + facility power + cooling+ networking + spare parts + ops labor
For cloud deployment, substitute the actual quoted per-GPU hourly rate into the formula. An 8-GPU node costs roughly 8× the per-GPU hourly rate, plus reservation discounts, storage, and networking fees. For validation only, rent by the hour; for long-term service, compare reserved instances, term commitments, and self-hosting depreciation. With TB-scale model weights, model distribution, object storage, load times, and version management also create hidden costs.
Self-hosting is not just buying GPUs: it also requires high-wattage power delivery, cooling, rack space, high-speed interconnect, spare parts, and an operations team. For most teams, the risk-controlled path is to validate capacity and run load tests on general-purpose cloud GPU instances first, then decide whether to rent long term or build on-premises.
5. Pre-Launch Benchmarking Checklist
- Capacity validation: load weights in their native low-bit format; record peak usage of weights, runtime, and KV cache;
- Single-stream baseline: measure time-to-first-token and per-token latency at the target context length;
- Concurrency test: scale from 1 stream up to 10, observing aggregate throughput and P99 latency;
- Long-context test: cover the maximum expected context to confirm the KV cache does not trigger swapping or OOM;
- Stability test: run continuously for several hours, watching memory fragmentation, throughput jitter, and error rates;
- Cost regression: convert measured throughput into cost per million tokens and compare against budget.
6. Practical Recommendations
The core of locally deploying an ultra-large MoE model is not “how many cards to buy,” but whether five things hold simultaneously: capacity, format support, interconnect, scheduling, and cost. For feasibility validation, prioritize high-memory multi-GPU nodes with native low-bit weight support. For production, benchmark under real context lengths and concurrency—never promise an SLA based on memory capacity alone. The conclusion: the minimum bar is already a server-class project, ~1.5TB of VRAM is the starting point, both 25 tokens/s and 10-way concurrency must be backed by measured data, and cost should be calculated separately with the cloud rental formula and a self-hosting depreciation model.
