Can LLM Inference Be Profitable? A Cost Breakdown for Serving Large Models on a Single GPU
This article breaks down the core calculation behind LLM inference profitability: whether the marginal cost per token can stay below a market-acceptable price on a single high-memory data-center accelerator. It covers memory capacity checks for static and dynamic usage, separate throughput measurement for prefill and decode stages, full hourly cost modeling including depreciation, power and operations, and a three-scenario sensitivity analysis showing that utilization is the decisive variable. A decision checklist is included to help teams validate assumptions before committing to hardware.
1. The Real Question: From “Can It Run” to “Can It Cover Cost Per Hour”
The original question is a typical commercial feasibility problem: is it worthwhile to deploy a lightweight large language model with a large total parameter count but a small number of activated parameters on a single high-memory, high-bandwidth data-center accelerator, and sell inference service from it? Setting aside specific products and model numbers, this reduces to a general technical proposition: under a given hardware budget, can the marginal cost per token be lower than the price the market will accept?
Many teams go wrong at this first step by treating “the model loaded successfully” as “the service is profitable.” In reality, the profit and loss of an inference business is determined by three lines at once:
- The memory capacity line: whether the model and cache fit, which sets the maximum serviceable concurrency;
- The compute throughput line: how many tokens are produced per unit of time;
- The cost amortization line: how much money each card must earn back per hour.
If any one of the three falls short, the conclusion is a loss. Each is covered below with a calculation method that can be applied directly.
2. Memory Capacity Check: Separate Static from Dynamic Usage
High-bandwidth memory capacity is typically in the hundreds of gigabytes, which looks generous, but it must be broken down structurally:
- Weight usage: the parameter count of a mixture-of-experts model includes a large number of expert branches, and all weights must remain resident in memory. Parameter count multiplied by bytes per parameter is the lower bound (roughly 2 bytes at half precision, roughly 1 byte at 8-bit quantization, plus quantization metadata and alignment overhead in practice).
- Key-value cache usage: proportional to the number of layers, attention heads, context length, and concurrent requests. This is the part most easily underestimated in long-context scenarios.
- Runtime overhead: communication buffers, temporary activations, and memory reserved by the framework, which usually requires leaving a certain margin.
Illustrative estimation logic (pseudocode, expressing only the calculation relationship):
weight_bytes = params * bytes_per_paramkv_per_token = 2 * num_layers * kv_heads * head_dim * bytes_per_elemkv_bytes = kv_per_token * context_len * concurrencyrequired = weight_bytes + kv_bytes + runtime_reservefits = required <= usable_memory * 0.9 # reserve for fragmentation and a safety margin
Engineering recommendation: do not configure concurrency based on theoretical peak capacity. Instead, work backward from the acceptable time-to-first-token to determine the maximum cache size. Once the latency budget is fixed, the concurrency ceiling is locked, and only then does the capacity check carry business meaning.
3. Throughput Estimation: Prefill and Decode Are Different Stages
Inference load consists of two stages with completely different computational characteristics, and measuring them together is a common source of error.
- The prefill stage processes the entire input in one pass. It is compute-intensive, highly parallel, and easy to saturate the hardware.
- The decode stage generates tokens one by one through autoregression. It is memory-bandwidth-intensive, and the bottleneck is memory bandwidth rather than peak compute.
Evaluating economics therefore requires two separate metrics: the processing rate on the input side and the per-request generation rate on the output side. The defining trait of a mixture-of-experts structure is that each forward pass activates only some of the experts, so the weight read volume during decode is significantly lower than for a dense model of the same size. This is exactly where the “large total, small activation” design creates its inference cost advantage. One caveat: expert routing causes uneven load, and if the expert distribution of requests within a batch is concentrated, the actual bandwidth benefit is reduced.
A reusable output estimation framework:
sellable tokens per hour ≈ output rate (tokens/s) × effective concurrency × 3600 × utilization factoreffective concurrency ≈ min(cache concurrency allowed by memory, queueing concurrency allowed by latency budget)utilization factor ≈ actual request arrival rate / peak capacity (empirically often well below 1)
4. Cost Modeling: Depreciation, Power and Operations Must All Be Counted
The revenue side is easy to overestimate, while the cost side is often missing line items. The full hourly cost of a single card includes at least:
- Hardware depreciation: the purchase price amortized over the depreciation period; if leasing or pay-as-you-go is used, the unit price for the corresponding period applies directly;
- Power and cooling: whole-machine power draw allocated to a single card, multiplied by the electricity rate and a cooling factor;
- Network and storage: distribution of model weights, and the writing and retention of logs and monitoring data;
- Platform and personnel: amortization of container scheduling, monitoring and alerting, logging services, releases, and incident handling;
- Redundancy cost: spare capacity reserved to guarantee availability, which generates no revenue but must be paid for.
Summing these items gives the price per thousand tokens required to break even. Comparing it against the price the business side is willing to accept makes the conclusion clear.
5. Sensitivity Analysis: Utilization Is What Really Decides Profitability
With hardware and model fixed, utilization is the most sensitive variable. A three-scenario estimate is recommended:
| Scenario | Average daily request intensity | Utilization | Likely outcome |
|---|---|---|---|
| Optimistic | Close to peak capacity | High | Lowest marginal cost, room for profit |
| Neutral | Clear peaks and troughs | Medium | Needs off-peak scheduling and multi-model card sharing |
| Conservative | Sparse and unpredictable | Low | Dedicated single-card operation will lose money |
General ways to raise utilization include: request queueing and batch aggregation, routing into pools by context length, running separate instances for long and short text, taking on offline batch jobs during low-traffic periods, and using elastic scaling to release resources as demand falls. None of these depend on any particular vendor’s capabilities; they are general engineering practices for inference services.
6. Conclusion and Decision Checklist
Back to the original question: under general conditions, serving a lightweight large model from a single high-end accelerator is neither naturally profitable nor naturally loss-making. Profitability is determined entirely by comparing “effective concurrency × utilization × unit price” against “full hourly cost.” Before purchasing, complete these checks:
- Measure prefill and decode metrics separately using real business text, rather than applying theoretical peaks;
- Work backward from the latency budget to the concurrency ceiling, and complete the memory capacity check;
- List every cost item, especially redundant capacity and personnel amortization;
- Run three utilization scenarios and find the minimum request intensity that corresponds to the break-even point;
- If the break-even point is higher than the traffic the business expects, prefer an elastic resource pool or pay-as-you-go model over a one-time heavy capital investment.
For scenarios that need elastic capacity and fast validation, you can build load-testing and canary environments on the general compute and container platform, object storage, and monitoring and alerting capabilities offered by Baidu AI Cloud, replacing estimates with real data before deciding on long-term resource planning.
