Trillion-Parameter Models on Homegrown AI Compute: Cost and Deployment Trade-offs

    This article examines the technical and operational considerations of running a 1.6-trillion-parameter MoE model on domestically produced AI compute. It covers weight and KV-cache memory estimation, how to interpret AI chip specifications, how compute supply fluctuations can affect inference pricing, deployment strategies for heterogeneous clusters, and common methods for reducing per-token cost. It does not restate benchmark scores or pricing ratios; those should be checked against the baseline names, test dates, and pricing definitions in official reports and price sheets.

    Introduction: Model Iteration and the Compute Foundation

    An open-source large model recently released a new generation and claims to have set a scale record for open-source models with 1.6 trillion parameters. The model uses a MoE (mixture-of-experts) architecture, activates roughly 49 billion parameters per inference, and has a context window of 1 million tokens. The official announcement states that the model has been adapted to domestically produced AI compute clusters from training to inference. This has led the industry to focus on two questions: whether domestic compute can support models of this kind, and how changes in compute supply will affect inference pricing.

    This article does not repeat evaluation results or pricing ratios, because those numbers need to be checked against the baseline names, test dates, and pricing definitions in official reports and price sheets. It focuses on the technical side: how to estimate memory, how to read chip metrics, how costs are transmitted, and what developers can do.

    Memory Requirements Under MoE

    MoE reduces computation, not storage. During inference, each token passes only through the experts selected by routing, so the number of parameters actually involved in computation is about 49 billion. However, routing cannot know in advance which experts will be selected, so the weights of all experts must be quickly accessible. The full set of weights therefore still needs to reside in GPU memory or in memory that can be accessed quickly.

    At FP16 or BF16 precision, each parameter occupies 2 bytes. The weights for 1.6 trillion parameters are approximately:

    1.6 × 10^12 × 2 bytes ≈ 3.2 TB

    That is only the weights. Inference also requires space for the following:

    • KV cache: stores keys and values for historical tokens and grows with context length and concurrency.
    • Activations: intermediate tensors during computation, related to batch size and sequence length.
    • Framework and communication buffers: overhead from the inference engine itself and communication buffers used during parallel partitioning.

    Training also requires gradients and optimizer states, which take noticeably more space than inference.

    KV cache can be estimated with the following formula:

    KV cache bytes ≈ 2 × layers × KV heads × head dimension × sequence length × batch size × bytes per element

    For example, assume the model has 60 layers, 8 KV heads, a head dimension of 128, a sequence length of 128K, a batch size of 1, and FP16 (2 bytes) per element. The KV cache for a single request is approximately:

    2 × 60 × 8 × 128 × 131072 × 1 × 2 ≈ 32.2 GB

    The layer and head counts above are assumptions; actual models should be checked against their configuration files. If grouped-query attention (GQA) or another compressed attention scheme is used, the KV cache will be much smaller.

    There is no single answer for total cluster memory. It depends on concurrency, sequence length, parallel strategy, and the number of replicas. It must be calculated item by item for a specific configuration and cannot be reduced to a single number.

    How to Read AI Chip Performance Metrics

    Looking at only one number can easily lead to the wrong conclusion. The table below lists commonly used metrics and the definitions that need to be checked when comparing them.

    Metric Meaning Impact on large models What to check when comparing
    Peak compute Floating-point operations that can be completed per unit time Sets the upper bound for compute-intensive phases such as prefill Precision (FP16, BF16, FP8, INT8), dense or sparse, measurement conditions
    GPU memory capacity Amount of data that can be stored per card Determines how weights are partitioned and how much concurrency can be supported Whether it is usable capacity and whether system-reserved portions are deducted
    GPU memory bandwidth Amount of data that can be read from or written to GPU memory per unit time Sets the upper bound for speed in the decoding phase Theoretical peak or measured value
    Interconnect bandwidth Communication speed between cards and between nodes Determines communication overhead for expert parallelism and tensor parallelism One-way or bidirectional, on-chip, intra-node, or inter-node
    Software ecosystem Level of support from operator libraries, inference engines, and frameworks Determines whether the model can run directly and how efficiently it can run Whether required operators, quantization formats, and parallel strategies are supported

    When generating each token in the decoding phase, the relevant weights and KV cache must be read from GPU memory, so speed is usually limited by GPU memory bandwidth. Batching and parallel partitioning are the main ways to improve throughput. Peak compute alone cannot determine the response speed of a service.

    Compute numbers circulating online often lack the chip model, precision, and measurement conditions. For example, some comparisons place numbers from different precisions or from dense and sparse definitions side by side. Before citing them, check the chip’s official specification sheet.

    How Compute Supply Fluctuations Are Transmitted to Pricing

    Model service providers usually diversify chip sources to reduce supply-cutoff risk. When supply of a certain type of chip is tight, or when the capacity and performance of domestic chips temporarily cannot meet demand, providers may take the following approaches:

    1. Hybrid deployment: Mix different chip models in the same cluster. Scheduling becomes harder, and overall cluster utilization may decline.
    2. Procurement premium: Buy restricted chips at higher market prices, which increases hardware depreciation costs.
    3. Compute downgrade: Reduce batch size or lower quantization precision to maintain response speed. Throughput falls, the cost per request rises, and lower quantization precision may also affect output quality.

    These cost increases may be passed on to API prices. When a provider cannot absorb the costs over the long term, price adjustments are a common choice. However, prices are also affected by competition, scale effects, cache hit rates, and promotional strategies, so price changes cannot be attributed only to chip supply.

    Deployment Approaches in Heterogeneous Compute Environments

    In heterogeneous clusters, different chips vary significantly in performance and cost. A common approach is to route by request type: latency-sensitive requests go first to stronger nodes, while batch requests go first to lower-cost nodes.

    The code below is an example of scheduling logic. It needs to be adapted to the actual node information interface and request object.

    1. from dataclasses import dataclass
    2. @dataclass
    3. class Node:
    4. name: str
    5. free_mem_gb: float # currently available GPU memory
    6. healthy: bool # updated by a separate health-check service
    7. p95_latency_ms: float # recent P95 latency
    8. cost_per_mtok: float # estimated cost per million tokens
    9. def pick_node(nodes, latency_sensitive, min_free_mem_gb):
    10. candidates = [
    11. n for n in nodes
    12. if n.healthy and n.free_mem_gb >= min_free_mem_gb
    13. ]
    14. if not candidates:
    15. raise RuntimeError("No healthy node meets the memory requirement")
    16. if latency_sensitive:
    17. return min(candidates, key=lambda n: n.p95_latency_ms)
    18. return min(candidates, key=lambda n: (n.cost_per_mtok, n.p95_latency_ms))
    19. def route_request(request, nodes, retries=2, timeout_s=30):
    20. # request must include: latency_sensitive (bool), min_free_mem_gb (float), payload
    21. last_error = None
    22. for _ in range(retries + 1):
    23. node = pick_node(nodes, request.latency_sensitive, request.min_free_mem_gb)
    24. try:
    25. return node.process(request.payload, timeout=timeout_s)
    26. except TimeoutError as err:
    27. last_error = err
    28. node.healthy = False # temporarily remove after timeout; wait for health check to restore
    29. raise last_error

    When using this code, note the following:

    • min_free_mem_gb can be estimated using the KV-cache formula above together with the model weights.
    • When high-performance nodes are unavailable, latency-sensitive requests will fall to other healthy nodes. Whether to degrade service, and whether to inform users after degradation, should be decided by the business side.
    • The ordering by cost and latency is a hard rule. If a finer trade-off is needed, the two can be weighted into a single score.
    • Retry counts and timeout values should both be capped to avoid request pileups and added system pressure during failures.
    • Health status is best maintained by a separate health-check service rather than modified directly in the request path.

    At the infrastructure layer, general cloud services can be used to build disaster recovery and scheduling systems, such as container orchestration, object storage, message queues, and logging and monitoring. The specific choice depends on the existing cloud environment.

    Common Methods for Reducing Per-Token Cost

    • PagedAttention: Allocates KV cache in blocks to reduce GPU memory fragmentation and support more concurrency with the same memory. Mainstream open-source inference engines already commonly support this approach.
    • KV-cache quantization: Reduces KV-cache footprint, at the cost of possible accuracy impact in long-context scenarios.
    • Weight quantization (INT8, INT4): Reduces memory footprint and bandwidth pressure. Quality changes after quantization need to be validated on your own evaluation set, not judged only by average metrics.
    • Prefix caching: Reuses KV cache for requests that share a system prompt, reducing repeated computation.

    Each of these methods has trade-offs. Benefits and quality impact should be measured item by item rather than enabling all of them at once.

    Conclusion

    Progress in domestic chips in process technology, software ecosystems, and high-speed interconnects may reduce adaptation costs. However, this depends on actual capacity and ecosystem progress and should not be treated as a certain trend. For developers, the more practical approach is:

    1. Estimate the memory required for weights, KV cache, and concurrency using the formulas.
    2. Check precision, dense and sparse definitions, and measurement conditions in chip specifications.
    3. Route by request type and set timeout and fallback rules.
    4. Validate the quality of quantization schemes on your own evaluation set before going to production.