How Much Does It Really Cost to Deploy an LLM On-Premises?

    A practical cost framework for self-hosted LLM inference: a breakdown of hardware, power and facilities, staffing, and hidden costs, a side-by-side comparison with cloud API usage, and a three-step evaluation method for deciding whether on-premises deployment actually pays off. The article shows why the widely quoted "tens of millions per year" figure applies only to large-scale, high-availability, self-built deployments, and why most teams should validate value with a cloud API first.

    1. Where the Anxiety Comes From

    A claim has been circulating in technical communities: one company reportedly spent tens of millions of RMB (several million USD) a year just to keep a self-hosted large model running. That number made more than a few teams that were planning to build their own compute capacity pause.

    The honest answer is that there is no single figure. On-premises LLM deployment spans a wide range, from a few hundred thousand to tens of millions of RMB, depending on model size, concurrency, availability requirements, and how much in-house expertise the team already has. This article works through that math so you can build your own cost estimation framework.

    2. Four Layers of Cost

    2.1 Compute hardware: the large upfront expense

    The first line item is GPU servers, and the main variables are parameter count and quantization precision:

    • Models around 7B parameters: low inference demand. A single high-memory GPU is enough, and with quantization a single-GPU workstation is a viable starting point.
    • Models in the tens of billions of parameters: usually require a multi-GPU server. At current market prices, a well-specced 8-GPU server typically costs on the order of RMB 1 million (roughly $140,000).
    • Models above 100B parameters: generally need a multi-node, multi-GPU cluster, plus engineering work on the inference stack, KV Cache optimization, and so on.

    A rough estimate: for a production-grade service handling moderate concurrency, a one-time hardware outlay of RMB 2 million to 20 million (roughly $280,000 to $2.8 million) is not unusual. This is the first source of the “tens of millions” rumor, because hardware cost amortized over a year is already a substantial annual figure.

    2.2 Power and facilities: the routinely underestimated recurring cost

    Inference clusters are power hungry. Take an 8-GPU server: full-load draw can reach 6–10 kW, and once cooling and data center PUE (typically 1.3–1.5) are included:

    1. Annual power per server ≈ 8kW × 24h × 365 × 1.4 ≈ 98,000 kWh
    2. At an industrial rate of about $0.11/kWh, annual electricity per server ≈ $11,000

    A ten-server cluster therefore spends close to $110,000 a year on electricity alone. Build your own facility or lease a high-spec one, and you add rack rental, UPS, and network bandwidth.

    2.3 Staffing: the easiest item to overlook

    On-premises deployment is not “buy it, plug it in, done.” A production inference service needs at minimum:

    • Inference service deployment and tuning (quantization, throughput optimization, batching strategy);
    • Monitoring, alerting, log collection, and failure recovery;
    • Version upgrades and security patch management;
    • Possibly fine-tuning and data engineering.

    An AI infrastructure team able to own all of this independently typically runs 3–5 engineers. At salary levels in a major expensive tech hub, annual staffing cost easily reaches $210,000–$420,000 (RMB 1.5–3 million). The “tens of millions a year” in the rumor is largely hardware amortization plus people plus operations.

    2.4 Hidden costs and opportunity costs

    • Utilization risk: demand peaks during the day and compute sits idle at night; utilization often stays below 40%.
    • Technology churn risk: inference hardware and frameworks move fast, and today’s flagship card may be behind on price-performance in two years.
    • Trial-and-error cost: early misjudgments about concurrency, latency, and memory requirements frequently lead to a second procurement round.

    3. Comparison: calling a cloud-hosted model

    The cost structure of calling a cloud provider’s model API, or using a managed service, is entirely different:

    Dimension On-premises Cloud API
    Upfront cost From several hundred thousand USD Close to zero
    Billing model Mostly fixed cost Pay per use / per token
    Scaling Long procurement cycle Elastic
    Data compliance Fully self-controlled Depends on the provider’s compliance posture
    Operational burden Carried by you Carried by the vendor

    A simple rule of thumb: on-premises deployment can only beat the cloud on unit cost if your daily call volume is both stable and very large (for example, tens of millions of tokens per day) and you have strict data compliance requirements. Otherwise, the total cost of ownership (TCO) of cloud calls is usually lower. Cloud vendors, Baidu AI Cloud among them, offer a range of delivery models from model calls to private deployments, so enterprises can choose a gradual path according to their compliance and cost needs.

    4. Decision guidance: a three-step evaluation

    1. Measure the real workload: work backward from peak QPS, average request length, and P99 latency targets to the number of cards you need. Do not procure based on a gut feeling.
    2. Run a three-year TCO comparison: for on-premises, include hardware amortization, electricity, staffing, and idle capacity; for cloud, include the growth curve of token consumption.
    3. Prefer a hybrid architecture: route sensitive data to a local small model or a private deployment, and general workloads to a large cloud model, balancing compliance and cost.

    5. Conclusion

    Back to the opening rumor: “tens of millions a year for on-premises” is not baseless, but it describes the upper bound for a large-scale, high-availability, self-built-facility, dedicated-team scenario, not a requirement for every team. For most enterprises, the rational path is to validate business value with a cloud API first, then decide whether and to what extent to bring models on-premises based on data sensitivity and call volume. Doing this math matters more than blindly chasing “private deployment” or putting blind faith in “just move to the cloud.”