Trillion-Parameter Model Deployment: Hardware, Performance, and Cost Planning

    Learn how to plan an on-premises deployment for a hypothetical 2.8-trillion-parameter sparse mixture-of-experts model. This guide covers weight storage, runtime memory, hardware architecture, illustrative budgets, operating costs, and validation requirements for three targets: basic inference, 25 tokens per second for one user, and 25 tokens per second per user across ten concurrent requests.

    1. Define the Scope: Deployment Planning, Not a Guaranteed Configuration

    The cost of on-premises deployment depends on both the model specifications and the service target. Running the same model at one token every few dozen seconds versus serving ten users with responsive generation could require systems that differ by an order of magnitude.

    This article considers a hypothetical sparse mixture-of-experts (MoE) model with approximately 2.8 trillion total parameters and evaluates three deployment targets:

    1. Basic operation: Load all required weights and perform inference, with no strict speed requirement.
    2. Single-user interaction: Sustain 25 output tokens per second during steady-state generation for one request.
    3. Ten-user concurrency: Sustain 25 output tokens per second for each of ten requests generating simultaneously.

    All capacity calculations assume 2.8 trillion parameters. They do not confirm the specifications of any particular model. Expert counts, quantization formats, attention architecture, and inference support must be checked against the actual weight files, model configuration, and deployment documentation.

    Because the original requirements do not fully specify acceptable quantization, 4-bit weights are used only as a capacity example—not as an assumption that they meet the required output quality. If 8-bit or 16-bit weights are necessary, the calculations must be repeated.

    Three types of figures must remain separate:

    • Theoretical minimum: Calculated directly from parameter count and storage bit width.
    • Planning capacity: A design estimate that includes metadata, caches, and runtime overhead.
    • Measured performance: Results obtained on specific hardware with defined input lengths and concurrency.

    Theoretical storage can be calculated. Actual speed must be tested. Procurement budgets must be based on deliverable configurations and valid quotations.

    2. Why Sparse Models Reduce Compute but Not Necessarily Storage

    In an MoE architecture, each token uses only a subset of the expert networks rather than executing every expert.

    For example, suppose a model has 896 experts and selects 16 for each token. The expert selection ratio is:

    16 ÷ 896 ≈ 1.79%

    That ratio is not necessarily the fraction of total model parameters activated per token. It also does not mean the complete weight footprint can be reduced to 1.79% of its original size:

    • The model includes shared layers, attention modules, and other non-expert parameters.
    • Expert sizes and routing behavior depend on the actual architecture.
    • Different inputs may access different experts, so the deployment must still provide access to all required weights.

    This creates two separate planning questions:

    Capacity: Where will the complete weights reside, and can the runtime access them?

    Compute: How much work does each generation step require, and how will data reach the compute devices?

    Weights may reside entirely in accelerator memory, partly in host memory, or in a tiered arrangement that also loads data from disk. Moving weights farther from the compute devices generally increases access costs. Fitting the model and running it responsively are independent objectives.

    3. Calculate Capacity from Weight Precision, Not Accelerator Count

    Raw Weight Storage at Different Precisions

    Let (P) be the parameter count and (b) the number of bits stored per parameter:

    Weight storage in bytes = P × b ÷ 8

    For 2.8 trillion parameters:

    Weight precision Raw storage, decimal units
    16-bit Approximately 5,600 GB
    8-bit Approximately 2,800 GB
    4-bit Approximately 1,400 GB

    These figures cover only the parameter data. They are neither model file sizes nor total runtime memory requirements.

    A 4-bit format does not necessarily average exactly four bits per parameter. Quantization typically requires scales and grouping metadata, and some tensors may remain at higher precision.

    For example, assume a grouped format stores one 8-bit scale for every 32 4-bit elements. Its average storage width is:

    4 + 8 ÷ 32 = 4.25 bits

    The corresponding storage is:

    2.8 × 10¹² × 4.25 ÷ 8 = 1.4875 × 10¹² bytes

    That is approximately 1,487.5 GB, or 1.49 TB, in decimal units—about 1.35 TiB in binary units. Procurement calculations must use consistent units rather than treating TB and TiB as interchangeable.

    This calculation applies only to the assumed format. It cannot be generalized to every 4-bit quantization scheme.

    What Runtime Capacity Must Also Cover

    A practical memory budget must include:

    • Unquantized or higher-precision tensors
    • Weight indexes, alignment, and loading overhead
    • Intermediate activations and operator workspaces
    • Attention caches or other sequence state
    • Communication buffers
    • Runtime memory fragmentation
    • Temporary copies created during model loading

    For the example above, 1.49 TB is only a starting point for weight-related capacity. Buying 1.5 TB of memory does not guarantee that the model will run.

    Loading behavior is particularly important. Some implementations decode or convert weights before producing their runtime representation. Peak memory during loading can exceed steady-state inference usage. The configuration must accommodate the peak, not just the memory consumed after startup.

    4. Tier One: A Configuration That Can Run the Model

    Use Host Memory for Most of the Weights

    When speed is not the main constraint, a hybrid host-and-accelerator approach is worth evaluating:

    • Place some compute-intensive modules on accelerators.
    • Keep large expert weights in host memory.
    • Depending on the framework, execute experts on the host or transfer the required data to accelerators.
    • Use fast local storage for weight files and loading assets.

    The two expert execution approaches have substantially different bottlenecks.

    If experts execute on the host, performance may be limited by host memory bandwidth, vector processing capabilities, and cross-processor memory access.

    If expert weights move to accelerators on demand, host-to-device transfers and cache hit rates may become the limiting factors.

    Support for “weight offloading” alone therefore does not establish that a deployment is practical, much less guarantee a particular generation speed.

    Capacity Planning Priorities

    Evaluate the following in order:

    1. Confirm that the inference implementation supports the actual model.

    Generic MoE support is insufficient. The runtime must support the specific routing behavior, quantization layout, attention computation, and weight-loading process.

    2. Ensure host memory covers the weights and peak usage.

    For the approximately 1.49 TB weight example, a server with around 2 TB of host memory is a candidate starting point. Whether it is sufficient depends on actual loading peaks and cache requirements.

    3. Populate memory channels appropriately.

    Two servers with the same memory capacity may have very different memory bandwidth. Prioritizing capacity without properly populating memory channels can leave expert computation constrained by data delivery.

    4. Provide enough accelerator memory.

    Device memory must accommodate the modules kept on accelerators, caches, workspaces, and transfer buffers. A universal memory figure cannot be specified without knowing the model architecture.

    5. Check storage, power, and cooling requirements.

    Beyond the weight files, storage must accommodate format conversion, validation, temporary files, and logs. Large-memory servers may also impose demanding power and cooling requirements.

    An Illustrative Budget

    A budget example can show the cost structure, but it is not a market quotation:

    Budget item Assumed cost
    Large-memory compute node CNY 300,000
    Accelerators CNY 100,000
    Local storage and required accessories CNY 50,000
    Integration, testing, and spare parts CNY 50,000
    Initial investment CNY 500,000

    These amounts are hypothetical planning inputs, retained in their original currency rather than presented as prices for another market.

    Actual costs may differ substantially depending on memory capacity, hardware generation, procurement channel, warranty coverage, and framework adaptation work. Existing equipment can reduce new capital spending, but it does not eliminate electricity, maintenance, or staffing costs.

    The appropriate goal for this tier is to validate operation and output quality—not to assume an interactive experience.

    5. Tier Two: 25 Tokens per Second for One User

    Generating 25 output tokens per second means an average of approximately 40 milliseconds per token during steady-state decoding.

    Adequate aggregate compute capacity alone does not guarantee that result. Autoregressive generation requires each step to pass through the relevant layers, expert routing, data access, and synchronization. At low concurrency, a single request may also struggle to use the full compute capacity of a large system.

    Why Host Offloading May Miss the Target

    Even when each step activates only some experts, weight access, host computation, and cross-device transfers may exceed the 40-millisecond budget.

    Suppose an implementation reads (B) bytes from a particular storage tier for every generated token, and the effective read bandwidth is (W) bytes per second:

    Data access time ≥ B ÷ W

    To support 25 tokens per second, that tier would need bandwidth of at least approximately (25B) bytes per second, before accounting for computation, synchronization, and other overhead.

    The value of (B) must come from the actual model structure and execution path. It cannot simply be calculated by multiplying total parameters by the expert selection ratio.

    Candidate Architectures to Evaluate

    For this tier, evaluate configurations that:

    • Keep frequently accessed weights in accelerator memory where possible
    • Shard the complete weights across multiple devices
    • Provide low-latency, high-bandwidth interconnects for expert communication
    • Use efficient execution paths compatible with the actual quantization format
    • Test cache and compute overhead at realistic input lengths

    An initial device-count screen can use:

    Minimum device count ≥ Total required device memory ÷ Usable memory per device

    If the planned device-side memory requirement is 1.8 TB and each device provides 80 GB usable for this workload, capacity alone requires at least 23 devices.

    This is only an arithmetic lower bound. More devices may be necessary because of shard granularity, uneven memory distribution, replicated shared layers, communication workspaces, or the parallelization strategy.

    More importantly, fitting the model on 23 devices does not prove that it can generate 25 tokens per second.

    Budget for Complete Nodes

    Multiplying accelerator unit price by device count is not a complete budget. Include servers, interconnects, network adapters, racks, power infrastructure, installation, and testing.

    For example, assume:

    • One complete eight-device node costs CNY 1.2 million.
    • Four such nodes are purchased.
    • CNY 800,000 is reserved for interconnects and implementation.

    The initial investment would be:

    4 × CNY 1.2 million + CNY 800,000 = CNY 5.6 million

    These are replaceable budget assumptions, not a hardware recommendation or current quotation. Only benchmarking the configuration can establish whether it meets the single-user target.

    6. Tier Three: Ten Users at 25 Tokens per Second Each

    Ten requests generating simultaneously at 25 tokens per second each require at least 250 output tokens per second during steady-state generation.

    However, aggregate throughput of 250 tokens per second does not prove that every user meets the target. One request could receive 70 tokens per second while another receives only eight. The aggregate figure might look acceptable even though individual service quality is not.

    This tier must assess:

    • Total output throughput
    • Steady-state generation speed for each request
    • Time to first token
    • Queueing time
    • Tail latency
    • Stability during sustained operation

    How Concurrency Changes the Bottlenecks

    Concurrency can improve compute efficiency through batching, but it also introduces:

    • Larger sequence-cache requirements
    • More complex request scheduling
    • Higher expert communication traffic
    • Uneven expert loads caused by different inputs
    • Resource contention between input processing and output generation

    Long inputs matter especially. Passing a test with ten short prompts does not establish that ten long-document requests will pass. Input processing may consume enough compute resources to slow requests that are already generating.

    Two Scaling Approaches

    Expand a single instance.

    Use more devices for one model instance, increasing available capacity and execution resources. This preserves a unified request pool, but communication and synchronization overhead may grow with system size.

    Deploy multiple instances.

    Assign a subset of requests to each instance. This makes load isolation easier, but duplicates the complete weights and increases hardware investment.

    Neither approach supports a simple assumption that ten times the concurrency requires ten times the hardware. First measure a single instance across different concurrency levels, then decide whether to expand it or add replicas.

    For example, if testing confirms that an instance budgeted at CNY 5.6 million can reliably serve five requests under the target workload, an initial estimate for two instances would be approximately CNY 11.2 million in hardware and infrastructure, with shared facilities and operating expenses accounted for separately.

    The ability to serve five requests is a prerequisite that must be measured—not a performance prediction.

    7. Include Electricity and Operations in Total Cost of Ownership

    On-premises total cost of ownership can be expressed as:

    TCO = Equipment procurement + Site modifications + Power and cooling + Operations staffing + Maintenance and spare parts + Software adaptation

    Estimate annual electricity consumption using:

    Annual electricity consumption = Average IT power × Annual operating hours × Facility energy factor

    Assume:

    • Average IT power: 20 kW
    • Annual operation: 8,760 hours
    • Facility energy factor: 1.3

    Then:

    20 × 8,760 × 1.3 = 227,760 kWh per year

    Multiply this by the applicable electricity rate to estimate the associated cost. Replace these assumptions with measured power, local tariffs, and actual facility conditions.

    Do not confuse average power with rated maximum power. Infrastructure sizing must account for peak demand, while long-term electricity estimates should use average consumption under the expected workload.

    At low utilization, idle equipment, maintenance, and depreciation may affect economics more than inference electricity costs. A further metric is:

    Cost per output token = All relevant costs during the reporting period ÷ Valid output tokens produced

    Valid output should exclude tests, failed requests, and results that do not meet quality requirements.

    8. Validation Checklist Before Procurement

    Fix the Test Conditions

    Specify at least:

    • Weight version and quantization scheme
    • Input and output lengths
    • Number of simultaneously active requests
    • Whether queueing time is included
    • Whether input-cache reuse is allowed
    • How generation speed is calculated
    • Minimum output-quality requirements

    A token is neither a Chinese character nor a fixed-length English word. Acceptance testing must use consistent tokenization rules. Token rates from different models should not be compared directly without accounting for those differences.

    Test in Stages

    First verify that one request runs correctly. Then measure single-request speed with short inputs before introducing long inputs and multiple requests.

    For a ten-request concurrency test, all ten requests must actually be generating at the same time. Submitting them together and then processing them serially does not satisfy the requirement.

    Beyond averages, inspect slow requests, tail latency, peak device memory, communication stalls, and error rates.

    Validate Quality and Recovery

    Quantization may change output quality. Use real tasks to evaluate technical question answering, long-document comprehension, code generation, or structured output. Continuous text generation alone is not sufficient evidence.

    Also verify:

    • Behavior after a device failure
    • Service restart and weight-loading times
    • Access controls for input data and logs
    • Resource isolation between users
    • Performance regressions after software upgrades

    On-premises deployment reduces external data transfers, but it is not automatically secure. Access controls, auditing, and log governance remain necessary.

    9. Conclusion: Validate Compatibility, Then Performance, Then Budget

    For the hypothetical 2.8-trillion-parameter model, raw 4-bit weights already require approximately 1.4 TB. A specific format with grouped scaling metadata increases that requirement further.

    The three deployment targets have different priorities:

    • Basic operation: Ensure that all required weights are accessible, the runtime supports the model, and memory covers peak usage. Hybrid host-and-accelerator inference is worth testing.
    • Single-user generation at 25 tokens per second: Focus on low-latency decoding, effective bandwidth, and device interconnects. Capacity calculations cannot substitute for performance evidence.
    • Ten concurrent users at 25 tokens per second each: Deliver at least 250 valid output tokens per second while meeting each request’s generation-speed and tail-latency requirements.

    Without complete weights, explicit quality requirements, and real benchmarks, any fixed configuration or price remains only a candidate plan. The most reliable process is to validate compatibility first, obtain capacity and performance measurements through a short evaluation, and then calculate procurement and operating costs from an accepted equipment configuration.