VRAM and Cost Guide for Locally Deploying Trillion-Parameter Sparse MoE Models
This guide explains the VRAM capacity, hardware tiers, and cost models required to locally deploy a trillion-parameter sparse MoE model. Using a model with roughly 3 trillion total parameters, ~100B activated per token, and native 4-bit floating-point weights as an example, it covers how to estimate weight size (~1.4–1.5TB) and runtime overhead (~1.6–1.8TB total), how to choose hardware across three SLA tiers, how to model cloud rental versus self-built costs, and provides a practical deployment checklist. The core conclusion: this is a server-grade project, not a matter of "plugging in a few more GPUs."
Bottom Line First: This Is a Server-Grade Project, Not “Just Add More GPUs”
The first barrier to locally deploying a trillion-parameter sparse MoE model is not peak compute, but VRAM capacity and the ability to load the weights. Take a sparse MoE with roughly 3 trillion total parameters and about 100B parameters activated per token: even with native 4-bit floating-point weights, the weights alone are on the order of 1.4–1.5TB. Add activations, runtime buffers, KV cache, and state space, and the usable VRAM requirement for a single user typically reaches 1.6–1.8TB. That scale is beyond ordinary workstations—this is a multi-GPU server node project.
So when discussing “how much does local deployment cost,” you cannot just count accelerator cards. You must evaluate four things together: whether the weights fit, whether the inference stack supports the native 4-bit format, whether parallelism efficiency meets latency targets, and the hidden costs of cloud rental versus self-hosting.
1. VRAM Estimation: Weights Are the Hard Gate, Runtime Overhead Cannot Be Ignored
The basic formula for model weight size is:
weight bytes ≈ total parameters × bits per parameter ÷ 8
For ~3 trillion total parameters with native 4-bit floating-point weights:
total_params = 3.0e12bits_per_param = 4weight_bytes = total_params * bits_per_param / 8print(weight_bytes / 1e12) # approximately 1.5TB
If total parameters are around 2.8 trillion, the weights come to roughly 1.4TB. In other words, the weights of a trillion-scale sparse MoE are terabyte-scale by themselves. The key point here is that “natively designed at 4-bit precision” is different from “force-quantizing high-precision weights to 4-bit after the fact”: the former requires the inference stack to directly support low-precision weight loading, sharding, and matmul/dequantization kernels; the latter may introduce accuracy loss and extra conversion costs.
Actual VRAM usage per user cannot be calculated from weights alone. Runtime also requires:
- Activations and temporary buffers;
- KV cache, which grows with context length, concurrency, and layer structure;
- Communication buffers, expert routing buffers, scheduling and batching metadata;
- Framework runtime, logging, and monitoring agent overhead.
Engineering practice suggests reserving 10%–25% of the weight size for runtime overhead. If weights are ~1.5TB, plan for roughly 1.7TB of usable VRAM per user, and do not fill nominal VRAM to 100%. In other words, a multi-GPU node’s total usable VRAM should significantly exceed the weights themselves; otherwise, long contexts or concurrent loads will easily trigger OOM or frequent swapping.
Older high-VRAM accelerators might barely piece together 1.5TB+ in terms of “capacity”—for example, roughly 20 cards of the 80GB class, or about 12 cards of the ~140GB class. But without native 4-bit compute kernels, runtime often requires software dequantization or falling back to higher-precision compute, creating risks around VRAM peaks, bandwidth, and latency. Fitting the model in memory is not the same as running it stably.
2. Hardware Tiers: Three Tiers by Target SLA, Not Guesswork by “Card Count”
Tier 1: Just Get It Running, Speed Doesn’t Matter
The goal is that weights load and requests return. The realistic recommendation is to look directly at an 8-GPU node with large-VRAM next-generation accelerators, with total VRAM significantly above 1.7TB and decent inter-GPU interconnect. Older multi-GPU setups may meet capacity alone, but you must confirm whether the inference stack supports low-precision weights, tensor parallelism/expert parallelism, sharded loading, and failure recovery.
This tier still requires server-grade CPUs, sufficient host memory, fast local NVMe or object storage, stable networking, and monitoring. With 1.5TB of weights, pulling from object storage at 1GB/s takes about 25 minutes to load; at 5GB/s, about 5 minutes. Cold starts, canary releases, and multi-replica distribution all amplify this cost.
Tier 2: 25 Tokens/s for a Single User
25 tokens/s for a single user does not mean you can shrink the server down to two or three cards—the weight capacity gate still stands. Speed is determined jointly by VRAM bandwidth, inter-GPU interconnect, expert routing efficiency, batching strategy, and context length. An 8-GPU node is a realistic starting point, but whether it stably achieves 25 tokens/s must be validated through load testing, not inferred from capacity alone.
Load testing should cover at least:
- Context lengths of 4K, 32K, 128K, etc.;
- Time to first token (TTFT) and time per output token (TPOT);
- VRAM peaks, KV cache usage, and batch size variation;
- P95/P99 tail latency and error rates.
If contexts are very long, the KV cache balloons quickly, and even single-user targets may force additional nodes or shorter contexts.
Tier 3: 10 Concurrent Users, Each at 25 Tokens/s
This means aggregate output of at least 250 tokens/s. VRAM configuration does not necessarily need to double over Tier 2: a single 8-GPU large-VRAM node with short contexts and good scheduling may handle dozens of concurrent requests; but whether all 10 concurrent streams each sustain 25 tokens/s is a throughput and scheduling question. You need to enable common optimizations such as continuous batching, paged KV cache management, request queuing and rate limiting, and prefix caching—and rely on measured results.
If contexts reach the million-token range, the KV cache may become a second capacity bottleneck, making a second node or multiple replicas unavoidable. Low tail-latency SLAs also call for multi-replica isolation.
3. Cost Model: Cloud Rental Is About Hourly Pricing, Self-Hosting Is About TCO
Cloud costs can be estimated from node hourly pricing:
cards = 8hours_per_month = 730price_per_card_hour = p # fill in the actual quote, in USD/card/hourmonthly = cards * price_per_card_hour * hours_per_monthyearly_reserved = monthly * 12 * discount # discount is the reserved-instance factor
If the per-card hourly price is on the order of a few dollars, an 8-GPU node costs tens of dollars per hour, putting monthly cost in the ~$20K–$40K range and annual cost in the ~$200K–$400K range. These are scenario assumptions only, not quotes from any specific platform. In practice, you must add storage, networking, egress traffic, logging and monitoring, backups, and operations labor.
The self-hosted cost formula is more complex:
TCO = accelerator procurement + server platform + host memory + local NVMe+ inter-GPU interconnect and switching network + rack power and cooling + spare parts+ software adaptation and load-testing labor + operations and failure redundancy
Power is estimated as “system power draw × electricity price × PUE × time”; networking and storage are estimated based on weight distribution, logging, and backup needs. Multi-replica setups, high availability, and canary releases add further redundancy costs. For most teams, the safer path is to first build a POC in a general-purpose cloud environment—using standard categories such as GPU cloud servers, container platforms, object storage, and logging/monitoring/alerting—to validate throughput, latency, and cost curves before deciding whether to self-host.
4. Deployment Checklist: Validate Capacity First, Then SLA
Recommended order of operations:
- Confirm inference stack capabilities: Does it support native 4-bit weights, tensor/expert parallelism, sharded loading, continuous batching, and KV cache management?
- Validate capacity: Does a single node’s total usable VRAM cover weights plus runtime overhead, and is load time acceptable?
- Run single-user load tests: Cover different context lengths; record TTFT, TPOT, and VRAM peaks.
- Run concurrency load tests: Under 10 concurrent users, is aggregate throughput ≥250 tokens/s and P95 tail latency within target?
- Do the cost math: For cloud, estimate as hourly price × 730 hours/month; for self-hosting, estimate as three-year depreciation + power + operations.
- Design degradation strategies: Rate limiting, context shortening, multi-replica isolation, and priority-based scheduling.
In summary, local deployment of a trillion-scale sparse MoE should first answer “can the weights fit, can native low-precision execution run efficiently, and can the target SLA be demonstrated empirically”—only then answer “how much does it cost.” For most teams, validating via a cloud POC before committing to self-hosting is far more controllable than directly purchasing an 8-GPU server.
