Trillion-Parameter Model Local Deployment: Three Performance and Cost Tiers
This article separates capacity, performance, and quality of service when planning local deployment of very large models. Using a hypothetical 2.8-trillion-parameter sparse MoE model and a 4-bit-or-higher weight baseline, it calculates raw weight footprint and runtime headroom, then outlines three deployment tiers: runnable only, single-user 25 tokens/s, and 10 concurrent users each meeting that target. It also provides a cost model, validation steps, and acceptance criteria, emphasizing that card counts, speeds, and prices without benchmarking should be treated as unverified assumptions.
1. First Clarify: Fitting the Model Does Not Mean Using It Well
When discussing local deployment of very large models, three different questions must be answered first:
- Can the weights and runtime data fit into accessible storage?
- At a specified input length, can a single user obtain stable generation speed?
- When multiple users send requests at the same time, can the system maintain each user’s service target?
These questions correspond to capacity, performance, and quality of service. They cannot be replaced by a single conclusion about “how much VRAM is needed.”
This article uses a hypothetical sparse mixture-of-experts model with 2.8 trillion total parameters as a capacity calculation example. It does not correspond to any specific product, and it does not treat an unverified architecture, release timing, or performance forecast for any model as fact. Actual implementation must be based on available weights, model configuration, licensing terms, and measured results.
The original requirement did not fully specify a minimum quantization precision, so this article temporarily uses “4-bit quantization or higher precision for weights” as the discussion baseline. This condition is only for budget estimation. It does not mean that any 4-bit format is compatible, nor does it mean that different quantization schemes have the same quality.
2. Capacity Calculation: Sparse Activation Does Not Proportionally Reduce Weight Footprint
1. Total Parameters Determine Base Storage; Active Parameters Affect Per-Step Compute
A sparse MoE model routes each token to a subset of experts based on the input. Assume the model has 896 experts and each token selects 16 experts. The expert-count selection ratio is then approximately:
16 ÷ 896 ≈ 1.79%
But this is only the expert-count ratio, not a strict parameter activation ratio for the entire model. Shared modules, experts of different sizes, and the router all affect actual compute.
More importantly, an expert not selected by the current token does not mean it will never be selected later. When deploying the full model, all expert weights usually still need to be stored.
Therefore, it is necessary to distinguish:
- Weight capacity: mainly determined by total parameter count, precision, and storage format.
- Per-step compute: related to active parameters, context length, and kernel implementation.
- Actual response speed: also affected by memory bandwidth, data movement, communication, and scheduling.
Sparse computation reduces part of the compute demand, but it does not automatically reduce the storage requirement of the full model by the same ratio.
2. Raw 4-Bit Weight Capacity Is Only a Theoretical Lower Bound
Let the parameter count be P and the number of bits used to store each parameter be b. The raw weight capacity is:
weight bytes = P × b ÷ 8
Substituting 2.8 trillion parameters and 4-bit precision:
2.8 × 10¹² × 4 ÷ 8 = 1.4 × 10¹² bytes
In decimal capacity terms, this is about 1,400 GB.
This result does not yet include quantization scale factors, unquantized tensors, file indexes, and runtime overhead.
For example, assume a grouped format that stores one additional 8-bit scale factor for every 32 4-bit weights. The average storage bits per weight would be:
4 + 8 ÷ 32 = 4.25 bits
The corresponding capacity would be approximately:
2.8 × 10¹² × 4.25 ÷ 8 = 1,487.5 GB
This is only a format calculation example under an explicit assumption. Actual quantization schemes may also include zero points, extra precision information, or special tensors, so this result cannot be applied directly.
In addition, decimal GB and binary GiB are different. Procurement lists, system displays, and model file sizes must use consistent units; otherwise, noticeable capacity errors may occur.
3. Runtime Memory Must Have Headroom
After the model is loaded, space is still needed for:
- Parameters not quantized to low bit-width;
- Kernel workspace and temporary activations;
- Request state and context cache;
- Communication buffers;
- Framework runtime overhead;
- Memory allocation fragmentation and alignment space.
For common attention architectures, the context cache often grows with the number of requests and sequence length. For architectures using other state representations, the growth pattern may differ and must be calculated according to the actual implementation.
Therefore, “the weight file is about 1.5 TB” only indicates the order of magnitude of base capacity. It does not prove that “1.5 TB of memory is enough.”
3. Tier 1: Only Require It to Run, Not to Be Fast
1. Consider Cooperative Inference Between Large Memory and Accelerators
The goal of this tier is to fully load the model and produce output, without requiring an interactive experience close to an online service.
A common approach is to place part of the computation on accelerators, keep a large number of expert weights in host memory, and let the processor participate in expert computation, or move weights to accelerators on demand.
The bottlenecks of the two approaches are different:
- Host executes expert computation: more dependent on processor compute, memory bandwidth, and kernel optimization.
- Dynamic expert weight transfer: more dependent on host-to-accelerator transfer bandwidth and latency.
Do not assume that performance is the same just because both approaches use “weight offloading.”
2. Large Memory Does Not Mean High Speed
For low-batch generation, reading weights is often a major cost. The following relationship can help identify the bottleneck:
ideal generation speed upper bound ≈ effective data read bandwidth ÷ data that must be read per step
Here, “effective bandwidth” must be used, not the peak bandwidth in hardware marketing materials. Access patterns, cross-socket memory access, quantization decoding, and expert distribution all reduce actual efficiency.
Another misunderstanding should also be avoided: solid-state storage can store weights, but it usually cannot equivalently replace high-bandwidth runtime memory. If expert weights are frequently read from disk at every generation step, latency may increase significantly.
3. How to Estimate Costs for This Tier
The budget mainly includes:
- A large-memory server that can hold the full weights and runtime headroom;
- Accelerators used for part of the computation;
- Weight storage, backup, and log storage;
- Power, racks, cooling, and maintenance.
If some hardware already exists, incremental costs may mainly focus on memory expansion and adaptation work. If purchasing from scratch, the full system, power supply, and operations conditions must also be accounted for.
This tier is suitable for research validation, format adaptation, and offline experiments. It is not suitable for promising stable interactive speed without measurement.
4. Tier 2: Single-User Output Reaches 25 Tokens per Second
1. Define the Performance Metric Clearly First
25 tokens per second means that the average time budget for generating each token is about 40 milliseconds:
1000 ÷ 25 = 40 milliseconds
However, this metric should clearly specify whether it is generation-phase speed or end-to-end speed including input processing and queueing time.
At minimum, the following should be recorded separately:
- Input processing time;
- Time to first output token;
- Average generation-phase speed;
- Tail latency;
- Performance under short and long contexts.
With the same 25 tokens per second, waiting 1 second for the first token and waiting 30 seconds are completely different user experiences. Token count is also not equal to Chinese character count, so this metric cannot be directly interpreted as 25 Chinese characters per second.
2. A More Stable Path Is to Keep Critical Weights Resident in High-Bandwidth Memory
Compared with “only needs to run,” this tier places more emphasis on avoiding expensive data movement during generation.
A common deployment direction is to use multiple accelerators with large device memory, shard weights resident in device memory, and distribute experts and shared computation modules across devices.
If 1,487.5 GB is used as the example weight capacity and each card has 80 GB of device memory, the lower bound for capacity, considering only weights, is:
ceil(1,487.5 ÷ 80) = 19 cards
This is not a directly executable deployment configuration, nor is it a performance guarantee.
The actual number of cards is also affected by the following factors:
- Each card must reserve runtime space;
- The framework supports a limited set of parallelism combinations;
- Weight distribution may not be perfectly balanced;
- Some modules may be replicated;
- Context cache increases device memory usage;
- Cross-card communication may limit speed.
During procurement, first verify the topology supported by the software, then confirm capacity, and finally determine performance through testing. Do not place orders based only on device memory division.
3. Interconnect Capability May Be More Critical Than Card Count
Once experts are distributed across multiple devices, input activations need to be sent to the devices hosting the corresponding experts, and computation results must be returned or re-aggregated.
Each layer’s computation may include:
routing → dispatch → expert compute → result aggregation
If communication time is too long, even accelerators with strong compute capability will sit idle waiting for data.
Therefore, the Tier 2 budget must include high-speed interconnect, switching equipment, and the full topology, rather than counting only accelerator purchase prices.
5. Tier 3: 10 Concurrent Users, Each Sustaining the Target Speed
1. Total Throughput of 250 Tokens per Second Is Only a Necessary Condition
Ten requests each reaching 25 tokens per second means the system must provide at least:
10 × 25 = 250 output tokens per second
However, meeting total throughput does not mean every user meets the target. The system may concentrate service on some requests and leave other requests waiting for a long time.
Acceptance must check all of the following:
- Generation speed of each request;
- Distribution of time to first token;
- Fairness among requests;
- Whether blocking occurs when long and short requests are mixed;
- Whether out-of-memory or service errors occur.
If the requirement is “more than 25” rather than “reach 25,” a higher acceptance target should be set above the minimum value, with some load headroom reserved.
2. Concurrency Benefits and Concurrency Costs Coexist
Multiple requests can share part of the computation through batching, improving device utilization. But concurrency also increases context state, activations, communication, and scheduling overhead.
Therefore, 10 concurrent users cannot simply be understood as single-user configuration multiplied by 10, nor can it be assumed that a single-user system naturally supports 10 users meeting the target simultaneously.
The real result depends on model structure, request length distribution, expert routing, hardware interconnect, and inference implementation. It must be determined through load testing.
3. Service Boundaries Must Be Defined
Concurrency targets should be accompanied by constraints such as:
- Maximum input length;
- Maximum output length;
- Number of requests simultaneously in the generation phase;
- Number of requests allowed to queue;
- Timeout and cancellation policy;
- Admission rules under excessive load.
Without these boundaries, any fixed budget will find it difficult to promise stable service.
6. How Much Does It Actually Cost: Start with a Computable Budget Model
When hardware models, procurement channels, memory configurations, and data center conditions are unknown, giving a fixed total price is easily misleading. A more reliable approach is to separate one-time investment from ongoing costs.
1. One-Time Investment
The initial investment can be expressed as:
initial investment = accelerator count × per-card transaction price
- server system cost
- memory and storage cost
- interconnect and switching equipment cost
- rack and power distribution modification cost
- software adaptation and acceptance cost
The transaction price here should come from current quotes, not historical prices or unverified online quotations.
2. Ongoing Costs
Ongoing costs include electricity, cooling, data center space, hardware maintenance, spares, and operations personnel.
For example, for arithmetic demonstration only, assume the system has an average power draw of 20 kW, runs 24 hours per day, and the electricity price is 0.8 per kWh. The 30-day equipment electricity cost is then:
20 × 24 × 30 × 0.8 = 11,520
This example is not a power consumption forecast for any actual configuration, and it does not include cooling, power supply losses, or maintenance costs.
3. The Three Tiers Should Be Quoted Separately
| Target tier | Main investment direction | Primary validation item |
|---|---|---|
| Able to run | Large host memory, basic acceleration capability | Whether the full model loads and produces stable output |
| Single-user 25 tokens/s | High-bandwidth device memory, interconnect, and kernel optimization | Actual latency under the specified context |
| 10 concurrent users each meeting target | Capacity, throughput, network, and scheduling capability | Per-request speed and tail latency |
A truly usable budget should consist of a configuration list, quotes, performance test results, and acceptance conditions. A configuration list without test results cannot prove that the target is achievable.
7. Implementation Steps Required Before Deployment
Step 1: Verify the Model and Licensing
Confirm whether the weights are available, whether the intended use is permitted, whether the quantization format can be read, and whether the architecture is supported by the current inference environment.
The fact that a model can be downloaded does not mean it can be directly deployed. The fact that a framework supports one type of MoE model does not mean it supports all structural variants.
Step 2: Build a Capacity Inventory
Separately count weights, quantization metadata, cache, workspace, and communication buffers, and distinguish host memory, device memory, and disk space.
At the same time, confirm whether temporary copies occur during loading. Some loading flows may use additional memory when converting or reordering weights.
Step 3: Perform Small-Scale Functional Validation
First validate weight reading, basic operators, quantized computation, and cross-device communication, then scale up. If core operators are incompatible, buying more hardware will not solve the problem.
Step 4: Test Performance Level by Level
Start with a single request and a shorter context, then increase context length, output length, and concurrency.
Testing should exclude warm-up effects and simultaneously record device utilization, memory usage, communication wait time, and per-request speed. Determine the bottleneck before deciding whether to scale up.
Step 5: Accept Quality and Safety
Quantized deployment must test not only speed but also task quality. Check factual accuracy, long-text understanding, structured output, and professional task performance on real business samples.
Local deployment is not inherently secure. Weights, prompts, generated results, and logs still require permission management, access control, and necessary data protection measures.
8. Conclusion: You Are Buying Verifiable Service Capability, Not Just VRAM
Complete local deployment of a trillion-parameter model is first a capacity engineering task, then a bandwidth and communication engineering task, and finally a user-facing service engineering task.
If the requirement is only to run, large memory and accelerator cooperative approaches can be explored first. If a single user must reach 25 tokens per second, weight residency, device bandwidth, and cross-card communication need to be validated. If 10 concurrent users must each sustain the target, batching, scheduling, fairness, and long-context resource consumption must be further validated.
The safest procurement order is: define the target, verify compatibility, calculate capacity, complete small-scale validation, run target-load tests, and then quote and purchase based on the results. For a system of this scale, any card count, speed, or total price without benchmark testing should be treated as an unverified assumption, not a definitive conclusion.
