StrategyCore
Back to Resources
18/ai / ml 7 min read

Serving LLM Inference on Kubernetes Without Overpaying

Why inference, not training, dominates GPU cost at scale, and how to serve it affordably on Kubernetes

Most attention on AI infrastructure goes to training, but for a model in production it is inference that runs every hour of every day and quietly dominates lifetime GPU spend. Serving it on Kubernetes brings the flexibility to scale, and the risk of paying for a peak that rarely arrives. Inference cost behaves differently from training, and a handful of techniques keep it affordable: autoscaling for spiky traffic, packing models onto shared GPUs, and holding latency without overprovisioning.

Inference on Kubernetes

SC-FL-01 · REV A · 2026.07

01Request

api.request

02Gateway routes

svc.gateway

03Replica pool

k8s · autoscale

04Model on GPU

llm.replica · gpu · mig

05Response

stream · tokens

Replicas scale with traffic and idle models scale to zero, so the cluster tracks real demand.

Flow diagram of an inference request: it enters a gateway, is routed to an autoscaled replica pool, runs on a model replica sharing a GPU, and streams the response back.
01

Why inference is the cost that never stops

Training is bursty and finite: a run consumes GPUs hard for a period, then ends. Inference is the opposite in every way. Once a model is in production it serves requests continuously, and it keeps serving for the life of the application. At any real scale, the GPUs dedicated to inference outnumber and outlast those used for training, so inference comes to dominate the lifetime cost of an AI platform. A few percent of inference efficiency, compounded across every hour the service runs, outweighs a large one-time training saving.

02

The spiky-traffic trap

Inference traffic is rarely flat. It follows business hours, campaigns, and time zones, with quiet troughs and sharp peaks. The tempting fix is to provision enough GPUs for the peak and leave them running, which means paying for peak capacity through every trough. The alternative is autoscaling: add replicas as traffic climbs, remove them as it falls, and scale idle models to zero so a rarely-used model holds no GPU at all. Predictive autoscaling, forecasting the climb before it arrives, matters more for inference than training, because a latency miss during a spike is a user-facing failure.

03

Packing models onto GPUs

Most inference workloads do not need a whole GPU. A single model replica often uses a fraction of a card's memory and compute, so dedicating a full GPU to each wastes most of it. Fractional GPUs, through MIG partitioning or software slicing, let many small models or replicas share one physical GPU with isolation between them. Right-sizing each model to the smallest slice that meets its latency target, then packing those slices densely, is often the single biggest inference cost saving, and it is invisible to the application.

04

Holding latency without overpaying

Inference is a three-way trade between latency, throughput, and cost. Batching requests raises throughput and lowers cost per request but adds latency; smaller batches do the reverse. The goal is the cheapest configuration that still meets the latency target, which shifts as traffic and model change. This is where ProphetStor's Federator.ai GPU Booster focuses on the inference side: targeting higher throughput, lower latency, and zero out-of-memory events, so a service holds its latency target while using fewer GPUs to do it.

05

Inference economics in Japan

For Japanese enterprises the inference bill is where a fixed annual budget meets an unpredictable production load. A model that is cheap to pilot can become expensive to serve once it is live, and an overrun is politically hard against a budget set a year earlier. Efficient inference serving, through autoscaling, fractional GPUs, and right-sizing, is what keeps a production LLM inside its budget. And because inference often runs on the same regulated data as everything else, serving it on-premise on Kubernetes keeps a sovereign model sovereign all the way to the response.

// Key Takeaways

What to remember

  • Inference runs continuously and dominates the lifetime GPU cost of a production model, unlike bursty finite training
  • Provisioning for peak wastes the trough; autoscaling and scale-to-zero for idle models track real traffic
  • Most models need only a fraction of a GPU, so fractional GPUs and dense packing are the biggest inference saving
  • Inference trades latency, throughput, and cost; GPU Booster targets throughput, latency, and zero out-of-memory events
  • In Japan, efficient inference serving keeps a production LLM inside a fixed annual budget, on-premise where residency requires

// FAQ

Frequently asked questions

Q1

Why does inference cost more than training over time?

Training is a one-time burst; inference runs continuously for the life of the application. At scale the GPUs serving inference outnumber and outlast those used for training, so inference comes to dominate lifetime GPU spend. Small, continuous inference efficiencies outweigh large one-time training savings.

Q2

How do you handle spiky inference traffic on Kubernetes?

With autoscaling: add model replicas as traffic climbs, remove them as it falls, and scale idle models to zero so they hold no GPU. Predictive autoscaling forecasts the climb before it lands, which matters for inference because a latency miss during a spike is user-facing. ProphetStor's Federator.ai provides this.

Q3

Can multiple models share one GPU?

Yes. Most inference replicas use only a fraction of a GPU's memory and compute. Fractional GPUs, via MIG partitioning or software slicing, let many small models or replicas share one physical card with isolation. Right-sizing and dense packing is often the single biggest inference cost saving.

Q4

How do you keep inference latency low without overprovisioning?

Inference trades latency, throughput, and cost: batching lifts throughput and cuts cost per request but adds latency. The aim is the cheapest configuration that still meets the latency target. ProphetStor's GPU Booster targets higher throughput, lower latency, and zero out-of-memory events on the inference side.

Q5

Can LLM inference run on-premise in Japan?

Yes. Serving inference on-premise on Kubernetes keeps a sovereign, self-hosted model sovereign all the way to the response, so regulated data never leaves the environment. Paired with efficient serving, it keeps a production LLM inside a fixed Japanese IT budget.

Last updated:

Scoping Japan entry in this category?

If your company is weighing Japan entry in the work above, StrategyCore is the operating layer that carries it from first assessment to live deployments, run locally and in Japanese.