Local Deployment of a Trillion-Parameter LLM: Capacity, Performance, and Cost

    A practical budgeting guide for running a hypothetical 2.8-trillion-parameter model locally: how full weights differ from activated parameters, what memory and runtime conditions each service tier requires, and how to compare cloud rental with ownership cost.

    1. Deploy the full model, not only the parameters activated for one step

    When people discuss local deployment of very large models, a common misunderstanding is this: if each generation step activates only part of the parameters, do you only need accelerator memory for that part?

    For mixture-of-experts architectures, the answer is usually no.

    Mixture-of-experts uses a routing mechanism so different inputs call different experts, which reduces the parameter count involved in a single forward pass. In a general inference service, however, future requests may reach different experts. The full weights therefore usually need to remain in accelerator memory, or be loaded on demand through tiered storage.

    The second option can lower memory requirements, but it adds data movement. For continuous generation, frequently loading expert weights from host memory or even disk can significantly increase the wait between tokens.

    Three questions should be kept separate:

    • Capacity: Can the full model and its runtime state fit?
    • Performance: Can a single request reach the target generation speed?
    • Service quality: When several requests run together, does tail latency still meet the requirement?

    These questions map to different resource constraints. They cannot all be answered by a single figure for “how many accelerators you need.”

    The estimates below use a hypothetical model: 2.8 trillion total parameters, 4-bit weights, and about 104 billion parameters involved per token. These numbers are budgeting inputs only. They do not represent confirmed specifications or performance for any real product.

    2. About 1.4 TB of weights is not the full memory budget

    2.1 Start with the theoretical weight size

    If every parameter is stored in 4 bits, the theoretical weight size is:

    Weight bytes = parameter count × bits per parameter ÷ 8

    Using the assumption above:

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

    That is about 1.4 TB, or about 1.27 TiB in binary units.

    The unit difference matters. Model files, device specifications, and monitoring tools do not always use the same capacity convention. Before deployment, convert everything to bytes instead of comparing “TB” and “TiB” labels directly.

    Four-bit storage is also only one dimension of the weight representation. Real files may include group scaling factors, auxiliary tensors, parameters that are not stored at low precision, and alignment padding. The theoretical product should therefore be treated as the starting point of a capacity estimate, not as the final file size.

    2.2 4-bit storage does not mean native 4-bit compute

    You still need to confirm:

    • which low-precision numeric format the model uses;
    • whether the accelerator can execute the corresponding operations directly;
    • whether the inference runtime provides matching compute kernels;
    • whether layout conversion or temporary dequantization is required;
    • how much extra memory, accelerator memory, and compute that conversion adds.

    Even if the model file fits in accelerator memory, the run can still fail with an out-of-memory error if inference must create higher-precision copies.

    Native low-precision training or design is also not the same thing as post-training quantization. Sharing 4-bit storage does not mean the two have the same model quality, compute path, or hardware compatibility.

    2.3 The full budget must include runtime state

    Accelerator memory for deployment can be split as follows:

    Total memory = weights + weight metadata + request state + activations + temporary workspace + communication buffers + safety margin

    Request state may include attention key-value cache and other architecture-specific state. Its size depends on model architecture, context length, cache precision, and concurrency.

    “About 1.5 TB for a single user” can only be a rough assumption for some configurations. It should not be used directly for purchasing. Relative to roughly 1.4 TB of theoretical weights, that budget leaves limited headroom. Whether it is actually enough must be confirmed from the weight files and runtime measurements.

    3. Tier one: the minimum setup if the only goal is to run

    3.1 Separate full in-memory deployment from tiered offloading

    If “speed does not matter” is meant literally, keeping every weight in accelerator memory is not the only option.

    In principle, you can consider:

    • placing some weights in host memory;
    • loading selected experts dynamically according to request routing;
    • using disk as a lower storage tier;
    • splitting weights across multiple machines.

    These methods may lower the memory threshold of a single machine, but they increase software complexity and may slow generation to a level that is unsuitable for interactive use. At a scale of 2.8 trillion parameters, even hosting the weights in host memory still requires a large server or cluster-scale resources.

    A more accurate statement is:

    Being able to execute the model at all, and being able to offer a usable online service, are two different deployment paths.

    3.2 Adding up memory is only a necessary condition

    For a full in-memory deployment, the device count can be estimated as:

    Minimum device count = ceiling(total memory budget ÷ usable memory per device)

    For example, if the full runtime budget is 1.6 TB and each device can contribute 200 GB to the model, the capacity floor is eight devices.

    Here, 200 GB means an assumed usable capacity, not the specification of a particular device model.

    Eight devices do not guarantee a successful deployment. You also need to check:

    • whether the inference framework supports that degree of parallel sharding;
    • whether weights can be distributed evenly across shards;
    • whether some devices take on extra communication or output work;
    • whether expert load is unbalanced;
    • whether device interconnects meet communication requirements;
    • whether the runtime keeps enough temporary space.

    Procurement should not sit exactly on the capacity floor. Leave a safety margin first, then adjust from real runs. Do not treat theoretical weight size as the final acceptance criterion.

    4. Tier two: what matters for 25 tokens per second for one user

    Reaching 25 output tokens per second for one user cannot be judged from memory capacity alone.

    4.1 Measure time to first token and sustained generation separately

    Inference usually has two stages:

    Input processing: the prompt and prior context are processed, and the state needed for later generation is built.

    Token-by-token generation: later tokens are produced and request state is updated.

    “25 tokens per second” usually describes the second stage. It does not say how long the user waits before seeing the first token.

    A system may wait a long time for the first token and then generate quickly, or it may start quickly and then pause often. Both experiences need separate evaluation.

    4.2 Single-request generation is not necessarily limited by peak compute

    Token-by-token generation for a very large model may be limited by:

    • memory bandwidth;
    • communication between devices;
    • efficiency of low-precision kernels;
    • expert routing and load balance;
    • efficiency at small batch sizes;
    • cache reads associated with long context;
    • request scheduling and synchronization overhead.

    About 104 billion active parameters per token does not directly determine generation speed. Active parameter count helps analyze compute demand, but it does not cover weight access, communication, or execution efficiency.

    4.3 Acceptance conditions must be explicit

    “25 tokens per second for one user” should at least specify:

    • input length;
    • output length;
    • whether time to first token is included;
    • whether streaming output is used;
    • whether the model is already warm;
    • whether the device may be shared with other requests;
    • whether the target is an average or a result that most requests must meet.

    Record time to first token, inter-token latency, end-to-end completion time, and output throughput together. Tests should cover the short, medium, and long contexts used in the real workload, not only the short inputs that most easily produce a high speed.

    5. Tier three: what ten concurrent users at 25 tokens per second each implies

    In output rate alone, ten requests generating 25 tokens per second at the same time require at least 250 output tokens per second of aggregate throughput.

    That 250-token figure is necessary, but it is not a complete service-quality guarantee.

    5.1 Aggregate throughput does not replace per-request metrics

    A system might generate 250 tokens in one second while concentrating most of that output on a few requests and leaving the others waiting. That system has not met “25 tokens per second for each user.”

    Acceptance therefore has to look at all of the following:

    • aggregate output throughput;
    • generation speed of each request;
    • fairness across requests;
    • queue time;
    • high-percentile latency.

    Pay particular attention to mixed runs of long-input requests and requests that are already generating, and to whether output stalls become obvious.

    5.2 Concurrency does not copy all weights, but it does add request state

    Multiple requests in the same inference instance usually share model weights, so ten concurrent users do not mean ten times the weight memory.

    What grows is mainly each request’s own cache, state, activations, and scheduling overhead. For common attention structures, key-value cache size depends on layer count, key-value head count, head dimension, cache precision, and the total number of cached tokens.

    Ten short-context requests and ten very long-context requests can therefore have completely different memory footprints.

    You cannot claim that “one node can hold dozens of concurrent requests” from a weight-size number alone, without context length.

    5.3 Fitting ten requests does not mean serving them at high speed

    More concurrency may improve hardware utilization through batching, but it may also make communication, cache access, or scheduling the bottleneck.

    Load-test in steps such as 1, 2, 4, 8, and 10 concurrent requests, and watch:

    • whether throughput keeps rising;
    • whether per-request speed falls;
    • whether time to first token gets worse;
    • whether requests time out;
    • whether peak memory approaches the limit.

    If one node misses the target, decide whether to add service replicas, change the parallelism strategy, or cap maximum context and concurrency. Do not buy more devices solely from the number of concurrent users.

    6. Practical steps for local deployment

    Step 1: Verify the model and software conditions

    Confirm that the weights are obtainable, that the license allows the intended use, and that the numeric format, model structure, and inference runtime match.

    Resolve compatibility before making a hardware budget. Otherwise you can end up with enough device capacity and software that still cannot execute the model correctly.

    Step 2: Build a capacity inventory

    Measure separately:

    • actual weight-file size;
    • accelerator memory after loading;
    • cache growth for one request;
    • peak usage at different context lengths;
    • how temporary workspace changes with concurrency;
    • host memory and local storage requirements.

    Conversion, sharding, or format preparation may also need extra disk space. Do not reserve storage only for the final weight files.

    Step 3: Choose parallelism and interconnects

    Based on the model structure and runtime support, choose tensor parallelism, pipeline parallelism, expert parallelism, or a combination.

    Cross-device deployment is not only “splitting parameters evenly.” It also involves activation transfer, expert routing, and synchronization. Cross-node designs should pay special attention to network bandwidth, latency, and topology.

    Step 4: Move from small validation to stress testing

    Validate correctness first, then test a single request, long context, and multiple concurrent requests.

    At a minimum, record:

    Metric Main use
    Load time Restart and failure-recovery cost
    Time to first token Initial response experience
    Single-request generation speed Whether the individual-use target is met
    Aggregate output throughput Overall service capacity
    High-percentile latency Slow requests beyond the majority
    Peak accelerator memory Remaining capacity margin
    Error rate Service stability

    Step 5: Add production operating controls

    Before going live, set concurrency limits, maximum context, maximum output length, queue limits, and timeout policy. Also put monitoring and alerts, log auditing, access control, and recovery procedures in place.

    If the system has only one inference node, be explicit that maintenance or a node failure can take the whole service down. High availability usually needs extra resources and cannot be included in a minimum configuration that is only “just able to run.”

    7. What it costs: calculate rental and purchase separately

    7.1 Rented compute

    Rental cost can be calculated as:

    Compute cost = device count × hourly price per device × billed hours

    To show the method, assume eight devices at 5 USD per device-hour. This is a calculation input only, not a real quote from any platform.

    Then:

    • per hour: 40 USD;
    • 30 days of continuous operation: 28,800 USD;
    • 365 days of continuous operation: 350,400 USD.

    That still excludes storage, networking, taxes, software support, and companion resources that may be billed separately. Short-term use may not receive a long-commitment price. Model load time and minimum billing granularity can also affect cost.

    A rental plan should be based on a formal quote and service terms, not on a unit price detached from duration, region, and commitment length.

    7.2 Owned hardware

    Strictly local deployment should account for purchase and operating cost separately:

    Total cost of ownership = device purchase + supporting build-out + power and cooling + maintenance + labor + spares + cost of capital

    Supporting build-out may include host memory, processors, local storage, high-speed interconnects, racks, power, and cooling. For dense accelerator servers, these costs cannot be ignored.

    Electricity can be estimated as:

    Period power cost = average IT power × runtime × electricity price × data-center energy-efficiency factor

    Without power measurements, equipment quotes, and site conditions, there is no responsible way to state a purchase total.

    7.3 Compare the cost of qualified service, not the lowest hourly price

    The lowest hourly price is not necessarily the lowest business cost.

    More useful comparisons include:

    • cost per concurrent request while meeting the target latency;
    • cost per million output tokens while meeting quality requirements;
    • monthly cost including redundancy and operations;
    • annual total cost of ownership at the actual utilization rate.

    For infrequent use, idle cost may dominate. For high-frequency, long-running use, utilization and operational capability may matter more.

    8. Conclusion: prove it fits, then prove it is fast, then price the economics

    For the hypothetical 2.8-trillion-parameter model with 4-bit weights, about 1.4 TB is only the theoretical weight volume. It is not the full deployment requirement.

    The three requirement levels should be judged separately:

    1. Able to run at all: focus on storage capacity, format compatibility, and the execution path. Tiered offloading may reduce memory demand, but speed may drop sharply.
    2. 25 tokens per second for one user: beyond capacity, measure bandwidth, communication, and execution efficiency in the generation stage. Do not promise performance from device count alone.
    3. Ten users at 25 tokens per second at the same time: you need at least 250 tokens per second of aggregate throughput, and per-request speed, queue time, and tail latency must all meet the target.

    The safest order of investment is to verify model specifications and runtime support first, use short-term resources for a real workload test next, and only then decide between rental and purchase from measured capacity, performance, utilization, and reliability. That is how “deployable in theory” becomes an engineering plan with a controllable budget, acceptable experience, and sustainable operation.