Cost and Throughput Observations for Sparse-Activated Models in Production

    This article examines the practical cost and throughput performance of sparse-activated large language models after deployment. It highlights common developer misconceptions regarding total parameters and nominal token pricing, introduces a standardized blended cost calculation, and provides a comprehensive production checklist covering performance, stability, observability, and task tiering.

    After the release of sparse-activated models, developers often fall into two traps: focusing solely on total parameter size, and focusing only on the nominal price per million tokens. The former ignores the active parameters actually involved in computation, while the latter overlooks task structure, cache hit rates, output proportions, and peak-hour service capacity. In a real-world development workload, consuming approximately 180 million tokens cost around 31 RMB, translating to a blended average price of roughly 0.17 RMB per million tokens, or about 170 RMB per billion tokens. While this figure is a useful reference, its statistical criteria must be specified, otherwise it risks being misinterpreted as an “absolute price.”

    1. How to Interpret Release Information: Looking Beyond Total Parameters

    With 320 billion total parameters and 18 billion active parameters, the model clearly uses a sparse-activated architecture where total and active parameters are separate. For developers, total parameters primarily affect capability ceilings and deployment resource expectations, while active parameters directly impact the computation, throughput, and cost per inference. You cannot simply divide one by the other to determine “how much cheaper” it is; you must also factor in context length, inference precision, batching strategy, caching mechanisms, concurrency limits, and chain-of-thought (CoT) length.

    Release reviews should verify at least six categories of information: context window, billing criteria, cache billing rules, concurrency and rate limits, whether CoT mode can be disabled, and client-side observability. It is especially important to distinguish between “list price” and “blended load price.” The list price is the unit price table, while the blended price is the result of task distribution. A workload dominated by short outputs and high cache hits will yield a significantly lower blended price than one dominated by long outputs and low cache hits.

    Taking this sample as an example, the cache hit rate was about 93.7% and the output proportion was about 0.59%—two ratios that significantly lower the blended price. If switched to a workload with higher output proportions and lower cache hits, the per-token cost would increase. Therefore, when seeing “about 0.17 RMB per million tokens,” you should ask: Is the denominator input plus output, or just input? Are cache hits counted as input tokens? Are CoT tokens counted as output or total consumption? Without these definitions, horizontal comparisons are meaningless.

    Cost estimation can be unified using the following pseudo-code:

    1. def blended_cost(total_in, total_out, cache_hit_rate, p_in, p_cache, p_out):
    2. # Price unit: RMB per million tokens
    3. cached = total_in * cache_hit_rate
    4. miss = total_in - cached
    5. cost = miss * p_in / 1e6 + cached * p_cache / 1e6 + total_out * p_out / 1e6
    6. total_tokens = total_in + total_out
    7. return cost, cost / total_tokens * 1e6
    8. # When using this, you must fix the statistical criteria for total_in/total_out,
    9. # and reverse-engineer the cache hit rate and output proportion from real bills,
    10. # rather than just plugging in the list price.

    Under the same task structure, off-peak blended prices for comparable pay-as-you-go samples in the industry might fall around 160 RMB per billion tokens, doubling during peak hours; higher-performance tiers might reach 500 to 1000 RMB per billion tokens. These figures can only serve as order-of-magnitude references and cannot replace stress testing and bill attribution for your own workloads. The conclusion is that this model’s blended price is close to off-peak prices for similar tiers, but cost differences during peak hours and at higher performance tiers remain significant.

    2. Throughput and Chain-of-Thought: Experience Bottlenecks Are Usually Not the Network

    In testing, output speed during off-peak hours was about 50 to 55 tokens/s, which is acceptable. However, during peak hours, the CoT generation rate could drop to 4 to 9 tokens/s, and output to 12 to 25 tokens/s. Concurrent tests with other models achieved 125 to 135 tokens/s, essentially ruling out local network issues. The concurrency limits in the official documentation are far higher than the requirements of a single task, meaning a single development task is unlikely to hit these limits. A more reasonable assessment is that peak-hour slowdowns are caused by server capacity, queuing, or scheduling policies.

    Such fluctuations severely impact production systems. Interactive scenarios must monitor first-token latency, visible CoT rate, output rate, P95/P99 latency, error rate, and retry rate. Batch processing scenarios should focus on queue wait times, throughput per unit of time, and failed retry costs. If the CoT mode cannot be disabled, complex tasks will generate longer thought chains, increasing both latency and token consumption. Latency-sensitive businesses should implement task tiering: restrict output length for simple tasks, and route complex tasks allowing long CoT to asynchronous queues. Additionally, configure timeouts, backoff retries, circuit breakers, and fallback model routing to prevent a single-point wait from overwhelming the entire pipeline.

    3. Transparency and Observability: More Important Than Knowing If It “Lagged”

    Whether the CoT is visible, whether the rate is displayed, and whether the status is clear directly affect troubleshooting efficiency. The client should at least display statuses like “Thinking / Outputting / Retrying / Rate-limited” and log the model version, request parameters, input/output tokens, cache hits, cost estimates, and latency. If the platform does not provide cache hit statistics, you can only reverse-engineer the blended average price from the total bill and total tokens, but precise attribution is impossible. Production environments should also implement log desensitization and retention policies.

    4. Production Selection Checklist

    1. Cost: Distinguish between input, output, cache, and CoT criteria; set daily budgets and alerts.
    2. Performance: Stress test first-token latency, CoT rate, output rate, and P95/P99 across different time slots.
    3. Stability: Configure timeouts, exponential backoff, queues, circuit breakers, and multi-model fallback.
    4. Observability: Log request IDs, model versions, token usage, cache hits, and costs.
    5. Task Tiering: Use short outputs for interactive tasks and async processing for complex tasks; avoid taking the brunt of peak-hour load.
    6. Canary and A/B Testing: Start with shadow traffic, then launch to a small percentage of traffic, retaining manual review and a rollback switch.

    When building an evaluation environment in general cloud platforms like Baidu AI Cloud, you can reuse standard capabilities such as logging services, monitoring alerts, and object storage. However, your final selection should still be based on your own task distribution and billing data. Overall, the release of sparse-activated models is noteworthy, but what truly determines production readiness is the blended cost, peak-hour throughput, CoT transparency, and fallback capability—not a single parameter or list price.