Performance Convergence in Open-Source LLMs: How to Calculate the True Cost of Deployment
As open-source large language models approach the performance of closed-source counterparts on many benchmarks, model capability is no longer the sole deciding factor in selection. This article provides a practical framework for comparing the real cost of self-hosted open-source models versus commercial APIs, including a reproducible energy consumption model, hardware depreciation analysis, break-even calculations, and a checklist of often-overlooked costs such as compliance, fine-tuning, and maintenance. It emphasizes that utilization rate and depreciation—not electricity alone—dominate unit costs, and offers a structured approach for teams evaluating deployment options.
1. When Performance Converges, What Drives Model Selection?
Over the past two years, closed-source LLMs maintained a clear lead on complex tasks such as reasoning and code generation. In the last year, however, open-source models have improved significantly on several public benchmarks, with some dimensions now close to or even matching closed-source performance. As benchmark scores converge, raw model capability becomes less of a differentiator.
When the performance gap narrows, the two categories typically differ only in niche scenarios such as multimodal understanding, long-context processing, or specific programming languages. During model selection, teams need to answer three questions: What is the cost per API call? Can data stay within an internal network? Is service stable during peak hours? Tokens—the smallest text units processed by a model—become the fundamental metered resource, and their unit price along with the deployment method directly determines total cost.
2. How Many Tokens Per Kilowatt-Hour: A Reproducible Energy Model
An energy model can provide a lower bound on the physical cost of generating tokens. The assumptions used in our calculation are listed in Table 1 below. These figures are illustrative; for real decisions, replace them with measurements from your target model, quantization method, and hardware.
Table 1: Calculation Assumptions
| Item | Assumed Value | Notes |
|---|---|---|
| Accelerator power draw | 700W | Example nominal power of a high-performance GPU; replace with measured value for your specific model |
| PUE | 1.3 | Includes overhead for cooling, network switching, CPU, and memory |
| Effective power per card | ~900W | 700W × 1.3 ≈ 910W, rounded |
| Output throughput | 1000 tokens/s/card | Illustrative value under high batch inference; actual range typically 500–3000 depending on model size, quantization, batch size, and sequence length |
| Input throughput (prefill) | ~10000 tokens/s/card | The prefill phase has higher parallelism and much higher throughput than the decode phase; also affected by prompt length |
| Multi-card communication | Not modeled separately | Tensor or pipeline parallelism introduces communication overhead; effective throughput across multiple cards is usually lower than the sum of single-card values |
Based on the above assumptions, the energy consumed per output token is:
Energy per output token = 900 joules/second ÷ 1000 tokens/second = 0.9 joules/token
One kilowatt-hour (kWh) equals 3,600,000 joules, so the number of output tokens produced per kWh is:
3,600,000 joules ÷ 0.9 joules/token ≈ 4 million
For the input (prefill) side, each token consumes about 0.09 joules, so one kWh can process roughly 40 million input tokens. The lower energy per input token is due to the higher parallelism in the prefill phase.
Table 2: Throughput Sensitivity
| Output throughput (tokens/s/card) | Energy per token (joules) | Output tokens per kWh |
|---|---|---|
| 500 | 1.8 | ~2 million |
| 1000 | 0.9 | ~4 million |
| 3000 | 0.3 | ~12 million |
A six-fold difference in throughput leads to a six-fold difference in tokens per kWh. Before citing any token cost figure, verify the throughput assumption behind it. This model has two limitations. First, it assumes the GPU is always fully loaded; idle but powered-on devices suffer lower utilization, which raises unit energy costs. Second, it excludes data-center construction, network equipment, and personnel costs.
3. Beyond Electricity: Hardware Depreciation Often Costs More
Electricity often represents a smaller share of unit cost than expected. The following assumptions calculate the amortized cost of a single accelerator card:
- Amortized hardware cost per card: ¥200,000
- Depreciation period: 4 years, straight-line, annual depreciation ¥50,000
- Electricity price: ¥0.5/kWh (example value)
- Utilization: 100%, annual output tokens per card ≈ 31.5 billion (1000 tokens/s × 3600 × 24 × 365)
Electricity cost per million output tokens: 0.9 joules × 1,000,000 = 900,000 joules = 0.25 kWh, which equals ¥0.125.
Depreciation cost per million output tokens: ¥50,000 ÷ 31,536 million tokens ≈ ¥1.59.
Depreciation is roughly 12 times the electricity cost. If utilization drops to 50%, depreciation doubles to about ¥3.17 per million tokens. For self-hosted deployments, utilization rate matters more than electricity price in determining unit cost. When business call volumes fluctuate, idle compute significantly raises costs. This estimate excludes operations staff, network, and data-center rental.
4. Comparing Closed-Source APIs with Self-Hosted Deployment
Closed-source APIs charge per token. To estimate an upper bound on revenue per kWh for an API provider, use the following formula:
Revenue per kWh = (output tokens per kWh × output price) + (input tokens per kWh × input price)
Assume an input-to-output ratio of 3:1, i.e., every 1 million output tokens correspond to 3 million input tokens. The energy consumed is: 0.25 kWh (output) + 0.075 kWh (input) = 0.325 kWh.
Using example prices: output $10 per million tokens, input $2.5 per million tokens (illustrative, not real-time quotes). Revenue = $10 + $7.5 = $17.5, which translates to roughly $54 per kWh. This is an upper bound at the energy level, not profit. Actual prices should be taken from the provider’s current price list, and operating and depreciation costs still need to be deducted.
For self-hosted deployment, a break-even analysis is more relevant. The unit variable cost for self-hosting includes electricity and depreciation. From the data above, that is about ¥1.7 per million output tokens, excluding operations staff. The monthly break-even call volume can be estimated as:
Break-even monthly calls = (monthly fixed costs) ÷ (API unit price − self-hosted unit variable cost)
Here, monthly fixed costs include operations staff, data-center rental, and network fees. The unit price and cost in the formula must use the same pricing basis. If the actual monthly call volume exceeds the break-even point, self-hosting is more cost-effective; otherwise, an API is usually more economical.
5. Privatized Deployment and Fine-Tuning: Costs Often Underestimated
The cost of private deployment goes beyond hardware and electricity. The following items are frequently overlooked:
- Data compliance: Sectors such as finance, healthcare, and government require on-premises deployment, access auditing, and data classification. The manpower required for compliance adaptation often exceeds expectations.
- Fine-tuning engineering: Parameter-efficient fine-tuning (PEFT) methods such as LoRA and P-Tuning reduce compute requirements, but data cleaning, annotation, and evaluation-set construction remain the main workload.
- Operations burden: Model upgrades, security patches, inference framework version compatibility, and monitoring alerts all require ongoing effort.
- License terms: Different open-source licenses impose different conditions on commercial use, redistribution, and attribution. Legal review is necessary before deployment.
Some cloud providers offer dedicated cloud or private deployment options. When evaluating, compare pricing, compliance certifications, and service terms, then decide based on your own operations capability.
6. Selection Checklist and Risk Considerations
Before selecting a model, verify the following points:
- Monthly call volume: Does it exceed the self-hosting break-even point?
- Data classification: Must the data stay within an internal network?
- Team capability: Does your team have experience with GPU operations and inference optimization?
- Fine-tuning requirements: Is domain adaptation needed, and is training data sufficient?
- Latency and concurrency: What are the peak-hour requirements for first-token latency and throughput?
- License and liability: What are the commercial terms, and who is responsible for compliance of model-generated content?
Also consider these risks:
- Fluctuations in compute rental prices and electricity rates can alter the cost structure of self-hosting.
- GPU supply and delivery lead times may affect scaling plans.
- Open-source models iterate quickly, so a self-hosted model may become outdated sooner than expected.
- Liability for data security incidents should be clearly defined in contracts.
- The throughput and energy figures in this article must be replaced with measured values from your target model before making decisions.
Conclusion
As model performance converges, the selection criterion shifts from “which model scores higher” to “is unit cost controllable, can data stay on-premises, and can the team sustain long-term operations.” The calculations in this article illustrate the methodology and order of magnitude; actual figures should be based on real measurements and current pricing.
