Deploying a Trillion-Parameter LLM Locally: Three Performance Tiers and Cost Estimates

    This article provides a capacity planning framework for locally deploying a hypothetical ~2.8-trillion-parameter mixture-of-experts model. It defines three deployment tiers (basic offline generation, 25 tokens/s for a single user, and 25 tokens/s each for ten concurrent users), explains how to calculate memory requirements for 4-bit quantized weights, analyzes bandwidth, parallelism, and expert-communication bottlenecks, and presents a reusable budget model with sample cost calculations—emphasizing that real measurements should drive procurement decisions, not the other way around.

    1. First, Be Clear: This Is a General Deployment Problem, Not a Verified Configuration

    “How much does local deployment cost?” cannot be answered without defining the model architecture and the service target. The same set of weights may require hardware an order of magnitude apart depending on whether you accept slow offline runs or need ten users interacting smoothly at the same time.

    This article uses a capacity planning case: a model with roughly 2.8 trillion total parameters in a mixture-of-experts (MoE) architecture, where each token computation activates only a subset of experts. The parameter scale is used purely as a computational input—it does not confirm anything about any specific model’s architecture, weight availability, or inference framework support.

    Before any real deployment, verify four prerequisites:

    1. Are the weights obtainable? API-only access without downloadable weights rules out full local deployment.
    2. Does the license permit the intended use? Check permissions for commercial use, redistribution, modification, and internal serving.
    3. Does the runtime support the full architecture? Being able to read weight files is not the same as correctly implementing attention, expert routing, positional encoding, and cache management.
    4. Is there a usable implementation at the target precision? Supporting a low-bit storage format does not mean the hardware can compute that format efficiently.

    The sensible order is: verify deployability first, then do capacity planning, and finally let measured results determine procurement scale.

    2. Break Requirements into Three Tiers

    2.1 Tier 1: It Generates Results, Interaction Speed Not Required

    The goal here is to minimize hardware investment. Long time-to-first-token and generation speeds of only a few tokens per second—or less—are acceptable.

    Suitable scenarios include architecture research, offline validation, small-scale batch processing, and experimental environments that already have high-memory servers.

    However, even “it runs” needs a minimum acceptance bar. For example: it must stably complete requests at a specified context length, not crash due to insufficient memory, and produce output without obvious quality anomalies. A model that theoretically loads but cannot complete tasks has no deployment value.

    2.2 Tier 2: Sustained 25 Tokens/Second for a Single User

    Measure sustained decoding-phase generation speed, not prompt processing speed.

    A request typically involves two main phases:

    • Prefill: processes the input and builds the state needed for subsequent generation.
    • Decode: generates output tokens step by step.

    Fast prefill does not imply fast decoding. For interactive applications, you also need to track time-to-first-token and whether long inputs cause noticeable waits.

    Therefore, “25 tokens/s for one user” should at minimum be accompanied by input length, output length, sampling settings, quantization precision, and test duration.

    2.3 Tier 3: Ten Concurrent Users, Each Sustaining 25 Tokens/Second

    If ten requests are all in continuous decoding, the system needs at least ~250 tokens/s of effective output throughput.

    But this is not simply replicating the single-user setup ten times, nor multiplying single-user speed by ten. Batching may improve device utilization, but it also increases queueing, cache occupancy, and communication pressure.

    More importantly, aggregate throughput of 250 tokens/s does not prove every user gets 25 tokens/s. Some requests may be fast while others wait a long time.

    This tier must be validated on all of the following:

    • Generation speed per request;
    • Time-to-first-token;
    • Inter-token latency;
    • Tail latency of slower requests;
    • Failure rate and peak resource usage during long runs.

    3. Capacity Floor: Calculate Weights Before Talking About Compute

    3.1 MoE Does Not Mean You Only Store Activated Parameters

    The main advantage of MoE is that each computation uses only a subset of experts, reducing compute relative to total parameter count.

    But different inputs route to different experts. For full model serving, all expert weights must still reside in an accessible storage tier.

    They can live in:

    • Accelerator VRAM;
    • Host memory;
    • Local high-speed storage.

    Access speeds across these tiers differ enormously. Weights on disk versus weights resident in VRAM are both “stored,” but the practical performance is not comparable.

    Therefore, you cannot scale down the full model’s storage budget in proportion to the expert activation ratio.

    3.2 Theoretical Capacity of 4-Bit Weights

    Let P be the parameter count and b the bits per parameter. The ideal weight capacity is:

    Weight bytes = P × b ÷ 8

    For 2.8 trillion parameters, all stored at 4 bits:

    2.8×10¹² × 4 ÷ 8 = 1.4×10¹² bytes

    That is roughly 1400 GB, or about 1.27 TiB. Note that GB here is decimal and TiB is binary—do not mix them when purchasing hardware or reading monitoring software.

    If a block-quantized format stores one additional 8-bit scale value per 32 weights, the average overhead per parameter is:

    8 ÷ 32 = 0.25 bits

    Weights plus scale data then total:

    2.8×10¹² × 4.25 ÷ 8 = 1487.5 GB

    This calculation applies only to the format assumed above; not all 4-bit formats have identical overhead.

    3.3 VRAM Budgets Cannot Include Weights Alone

    A complete deployment also needs headroom for:

    • Tensors kept unquantized or at higher precision;
    • Quantization metadata and alignment padding;
    • Runtime workspaces;
    • Communication buffers;
    • Attention or other sequence-state caches;
    • Memory allocation fragmentation;
    • Temporary space for scheduling and batching.

    For models with standard attention, cache size typically grows with concurrency and context length. For models using compressed states, recurrent states, or hybrid attention structures, you must calculate based on the actual implementation—do not copy cache formulas from other architectures.

    As a hypothetical, if each accelerator has 80 GB of VRAM, 20 cards give only 1600 GB total. That barely exceeds the weight estimate above, leaves almost no room for the runtime, and says nothing about whether weight sharding is balanced.

    24 cards give 1920 GB; 32 cards give 2560 GB. These numbers are only useful for an initial capacity screening. They cannot guarantee the model will run, let alone at a given speed.

    4. Tier 1 Solution: Host Memory Holds the Experts, Accept Low Speed

    4.1 Basic Approach

    For a model with huge storage footprint that activates only some experts per token, consider heterogeneous inference:

    • Place the shared computation—suitable for accelerators—on accelerators;
    • Keep some or most expert weights in host memory;
    • Depending on the runtime, either execute expert computation on the CPU or transfer the needed weights to the accelerator.

    These two paths have different bottlenecks. The former depends more on CPU compute and memory bandwidth; the latter depends more on host-to-accelerator transfer bandwidth and scheduling efficiency.

    Not all models and inference engines support this. Verify architectural support first.

    4.2 How to Plan Memory Capacity

    If weights plus scale data occupy about 1.49 TB, then 1.5 TB of host memory is usually too tight. The operating system, loading process, runtime, and temporary buffers all need additional space.

    Start by evaluating 2–3 TB of physical memory, but finalize capacity based on measured peaks. Some loading pipelines keep both the source format and the converted data simultaneously, so transient usage can far exceed steady-state usage.

    Disk capacity should cover weights, conversion artifacts, logs, and necessary recovery copies—not just a single weight file.

    4.3 Why You Cannot Promise a Specific Speed

    Performance of this kind of setup depends on memory channel count, memory access locality, cross-socket access, expert distribution, and runtime implementation.

    Even two servers with identical memory capacity can perform very differently if bandwidth and access topology differ. Therefore, you cannot scale the speed of a smaller model by parameter ratio to predict this model’s speed.

    This tier is suitable for technical validation, not for promising an interactive experience without measurements.

    5. Tier 2 Solution: 25 Tokens/s for One User—Focus on Bandwidth and Execution Path

    To achieve stable interactive speed, first evaluate solutions where weights reside in high-bandwidth VRAM as much as possible, minimizing cross-tier transfers during token-by-token generation.

    But “it fits” is only the starting point. The following issues must also be addressed.

    5.1 Is the Quantization Format Actually Efficient?

    Quantization reduces storage but does not necessarily reduce compute time proportionally. If the runtime frequently unpacks data, converts precision, or lacks efficient compute kernels, a low-bit model can still run slowly.

    When choosing precision, evaluate quality, VRAM, and speed together—do not compare file sizes alone.

    Also, “quantization level no lower than some floating-point format” is not a complete acceptance definition. A more precise approach is to specify the minimum allowed bit width, weight and activation precision, and the upper limit of acceptable business-quality degradation.

    5.2 Does the Parallelism Strategy Fit the Model?

    Common approaches include tensor parallelism, pipeline parallelism, and expert parallelism. Real deployments usually combine them.

    The sharding strategy affects:

    • Weight footprint per card;
    • Number of communication rounds per layer;
    • Device utilization at small batch sizes;
    • Whether expert load is balanced.

    Do not buy a batch of devices based on total VRAM alone and expect software to solve all distribution problems automatically.

    5.3 Validate with Complete Requests

    Single-user testing should cover short, medium, and long inputs, plus varying output lengths.

    For each test combination, record time-to-first-token, decoding speed, peak VRAM, and stability. Do not take the fastest short segment of a run as the deployment conclusion.

    6. Tier 3 Solution: Ten Concurrent Users Require System-Level Design

    6.1 Expert Communication Can Become the Main Bottleneck

    When experts are distributed across devices, input states must be sent to the target experts according to routing results, then aggregated after computation.

    This process is sensitive to both inter-device communication bandwidth and latency. More devices does not necessarily mean faster—if the cross-node network is insufficient, added compute can be canceled out by communication waits.

    Capacity planning should therefore consider device count and interconnect topology together.

    6.2 Scheduling Must Protect Per-User Experience

    Batching improves throughput, but waiting to assemble large batches can increase time-to-first-token.

    General optimizations to consider include:

    • Continuous batching;
    • Chunked processing of long inputs;
    • Sensible concurrency admission control;
    • Limits on extreme context lengths and ultra-long outputs;
    • Safety margins for cache allocation;
    • Separate scheduling for interactive requests and offline jobs.

    These methods do not automatically improve the experience once enabled; parameters must be tuned through testing under the target load.

    6.3 Business Availability Requires Extra Budget

    If all devices are consumed by normal load, there is no service margin during failures or maintenance.

    Systems serving multiple users should also budget for standby capacity, request timeouts, failure recovery, monitoring and alerting, and maintenance windows. These requirements make production deployments more expensive than experimental setups.

    7. So How Much Does It Cost? Build a Budget Model First, Then Fill in Real Quotes

    Without knowing the region, purchase timing, device source, and warranty terms, quoting a single “market price” is unreliable. A more robust approach is a replaceable budget table.

    One-time investment can be estimated as:

    Total investment = compute devices + host memory and CPUs + interconnect + storage + facility modifications + deployment and validation

    The following uses deliberately assumed budget inputs to demonstrate the calculation. It does not represent market pricing and does not imply the target speed can be achieved:

    Item Assumed Input Result
    Accelerator budget ¥100,000 per card × 24 cards ¥2,400,000
    Base servers and memory ¥600,000 reserved overall ¥600,000
    Interconnect, storage, accessories ¥500,000 reserved overall ¥500,000
    Deployment testing and risk reserve 15% of the above subtotal ¥525,000
    Total Based on the assumptions above ¥4,025,000

    The purpose of this table is to show the cost structure, not to recommend a 24-card configuration. If more devices, larger VRAM, or higher-grade interconnects are needed, the budget increases accordingly.

    The budget focus for the three tiers can be summarized as:

    • Just runs: prioritize quotes for high-memory servers and the hardware needed for heterogeneous execution; accept low speed.
    • 25 tokens/s for one user: focus on VRAM residency, interconnect, and compute-kernel efficiency; validate with a prototype first.
    • Ten concurrent users at 25 tokens/s each: beyond throughput configuration, add budget for caching, networking, scheduling, and business redundancy.

    At this scale, do not treat it as an ordinary desktop upgrade. If weights must reside mainly in VRAM and provide stable service, budget it as a multi-device server system.

    Operating Costs Must Be Calculated Separately

    Monthly electricity can be roughly estimated as:

    Monthly cost = average power × daily operating hours × operating days × electricity price × facility PUE factor

    For example, assuming average system power of 20 kW, running 24 hours a day for 30 days, electricity at ¥0.8 per kWh, and a PUE factor of 1.4, the monthly electricity cost is approximately:

    20 × 24 × 30 × 0.8 × 1.4 = ¥16,128

    This is again a calculation example, not a prediction of any specific configuration’s power draw. Equipment depreciation, rack space, networking, spare parts, and maintenance labor should be accounted for separately.

    Step 1: Fix the Business Boundaries

    Define context length, output length, quality requirements, the meaning of concurrency, and response-time targets. In particular, distinguish “ten users online” from “ten users continuously generating at the same time”—the loads are different.

    Step 2: Complete a Minimal Working Validation

    Check loading, computational correctness, quantization quality, and long-run stability. At this stage, prioritize “does it work” over maximum speed.

    Step 3: Measure the Full Resource Curve

    Test across input lengths, output lengths, and concurrency levels, recording memory, VRAM, communication, and device utilization.

    Step 4: Expand Against the Bottleneck

    If the bottleneck is host-to-accelerator transfer, adding CPU compute alone will not help; if the bottleneck is cross-node communication, adding devices may yield limited gains.

    Scale based on measurements, not on average utilization figures.

    Step 5: Accept Against Business Metrics

    Final acceptance should include per-user speed, tail latency, failure rate, continuous run duration, and cost per unit of effective output—not just a single peak throughput number.

    Conclusion

    Locally deploying a trillion-parameter MoE model requires answering three questions at once: where the weights live, how computation is divided, and how data flows efficiently.

    If you only need it to run, you can explore host-memory-plus-accelerator collaboration, but you must accept performance uncertainty. If you need a stable 25 tokens/s for one user, you must validate around VRAM bandwidth, quantized execution efficiency, and communication paths. If you need ten concurrent users to each maintain the same experience, that is already a systems-engineering problem jointly determined by capacity, scheduling, networking, and operations.

    A truly reliable budget is not a price detached from conditions, but a complete plan that maps to the target load, passes measured acceptance, and can explain the reasons for every expansion.