November 30, 2026

From Weights to Live Endpoint: What Does It Take to Run AI Inference in Production?

From compute provisioning to model serving, networking and observability, here's what goes into making AI models work reliably at scale.

You train a model, or pick one from a model hub. It scores well on your test set and gives sensible answers in a notebook. But once in production, an application wants to call it a thousand times a minute and expects an answer before the user loses interest.

You can have a working inference setup in a matter of minutes, but running that model in production is a different challenge. Whether you're deploying an image recognition model, a recommendation engine, a speech recognition system or a large language model (LLM), you need an infrastructure environment that can execute the model efficiently and keep the service available even as workloads grow.

That involves considerably more than making compute available. It requires a combination of hardware, serving software, networking, orchestration and monitoring. Each of these components plays a role in the performance and reliability of the overall service.

A model that works in testing still has to survive production

Production adds pressures that model testing during training runs never applies. Many users or applications are calling at once. Workloads are competing for the same hardware. Then there are response-time targets, unpredictable demands, and rules about availability, security and data handling.

Different types of inference workloads create different pressures:

  • Image recognition: A model such as ResNet-50 can classify an image using roughly 4 billion multiply-accumulate operations (MACs). Processing ten test images is relatively easy. However, processing 5,000 frames per minute from a production-line camera means sustaining more than 83 inferences per second while keeping latency within acceptable limits.
  • Recommendation systems: They are often light on compute, but heavy on memory. Embedding tables for every user and item can run to hundreds of gigabytes, and the ranking has to finish in tens of milliseconds so a webpage can load.
  • Speech recognition: Transcribing recorded calls is a batch-processing job, because the system can process it after the call ends. Generating live captions is a streaming workload, where the system must process audio continuously and keep up with the speaker.
  • Generative AI: The cost and processing time of a request depend partly on how much text the model generates. A short answer and a 2,000-token report can put very different demands on the endpoint.

So, before you choose the hardware, you need to understand the workload you are trying to support.

Compute and storage: Compute choices start with memory

Caption: The model fits. Now the real memory math starts.

Choosing a GPU starts with understanding how much memory the model needs, not just how much processing power it requires. A model's weights must fit into GPU memory alongside the data and intermediate calculations required during inference.

The memory footprint of the weights depends on the model's parameter count and the precision used to represent each value. A 7-billion-parameter model stored at 16-bit precision requires approximately 14 GB for its weights. At 4-bit precision, the same model will need around 3.5 GB for weights. A 70-billion-parameter model at 16-bit precision, by comparison, requires about 140 GB, which is more than the capacity offered by a single 80 GB GPU. Such a model needs to be distributed across multiple GPUs, using techniques such as tensor parallelism to split its calculations between them.

Now these are estimates for the weights themselves. Actual memory requirements are higher because the serving runtime, intermediate calculations and incoming requests also need space. It becomes particularly important with generative models. As an LLM processes a conversation, it maintains a key-value cache (KV cache) containing information from previous tokens.

KV cache requirements grow with both context length and the number of concurrent requests. For Llama 3 8B, using its standard configuration and 16-bit cache values, each token requires approximately 128 KB of cache memory. An 8,000-token conversation therefore occupies around 1 GB. 30 such conversations running simultaneously would require roughly 30 GB of cache, in addition to the memory needed for the model weights and serving runtime.

The number of simultaneous conversations is not necessarily the same as the number of incoming requests per second. This is where teams can underestimate concurrency.

Consider a service that receives 200 requests per second. If each request spends an average of 250 milliseconds in the system, from arrival to response, around 50 requests will be in progress at any moment. This relationship is described by Little's Law:

Requests in progress = arrival rate × average time in the system

Time in the system includes any wait in a queue, not just processing time. Once requests start queuing, that additional time increases the number of requests in progress.

Traffic also rarely arrives evenly. Sizing for the average arrival rate can leave infrastructure under-provisioned during busy periods. If the busiest second brings 600 requests, for example, you need to plan for around 150 requests in progress, plus additional headroom.

The infrastructure must have enough memory and processing capacity to handle that concurrent load without allowing response times to climb.

The practical implication is that GPU sizing cannot be based on model size alone. A configuration that accommodates the weights may still run out of memory under concurrent traffic. Teams need to account for the model, its serving configuration and the number of requests they expect to handle at once.

Processing speed matters too.

Having enough GPU memory to accommodate the model and its active requests does not necessarily mean inference will be fast. The GPU must also be able to process calculations and move data quickly enough to keep up with demand. This is where memory bandwidth comes into play.

However, different workloads have different performance bottlenecks, and not all of them benefit equally from higher memory bandwidth. Compute-bound workloads spend more time performing calculations than moving data. So, more processing power can help increase throughput. Memory-bound workloads spend more time moving data to and from memory. Generating tokens with an LLM is a common example. The model repeatedly reads its weights to calculate each next token. For these workloads, memory bandwidth is a major factor in how quickly the GPU can generate output.

The distinction helps explain why different workloads benefit from different hardware:

These are just starting points, not hardware-sizing rules. The right configuration depends on the model, request volume, latency target and serving setup.

Precision provides another way to manage memory. Using FP8 or INT8 instead of FP16 can reduce the memory required for weights and data movement. It can also improve performance on hardware that supports these formats. However, the trade-off is that lower precision can affect model quality. The impact varies by model and workload, so you need to evaluate it against your own accuracy and quality requirements before deploying it.

Execute and expose: The runtime and the serving layer

A model file cannot serve application requests on its own. It needs software that loads the model, often stored in object storage or a model registry, executes its calculations and makes the model available to other systems. Some tools provide only the runtime, others provide a serving layer that connects to different runtimes, and some combine both.

The runtime executes the model. It loads the weights onto the GPU or CPU and runs the model's calculations as efficiently as the hardware allows. The serving layer wraps the runtime and exposes it to other applications. It provides the API endpoint, accepts incoming requests, manages request scheduling and batching, and returns the results

However, loading the model can take longer than expected. Pulling a 16 GB model at a sustained transfer rate of 1 GB/s takes at least 16 seconds. The system may also need to download a container image, initialize the GPU environment and run warm-up operations before it is ready to accept traffic. Together, these steps can push a cold start beyond a minute. That delay becomes noticeable when a service needs to add capacity quickly.  Once the model is ready, the serving runtime manages how incoming requests are processed, how GPU resources are allocated and how inference is executed.

The choice of runtime and serving layer affects both inference performance and resource utilization. Different tools are designed for different models and workloads. Some common options include:

  • ONNX Runtime (inference runtime): Supports CPUs and GPUs through different execution providers and is commonly used for vision, speech and traditional machine learning workloads. It's a good option when teams need to run ONNX models across different hardware platforms.
  • NVIDIA TensorRT-LLM (inference runtime): Provides optimized execution for LLMs on NVIDIA GPUs. It supports techniques such as in-flight batching to improve hardware utilization. It's worth considering when teams want to optimize LLM serving on NVIDIA hardware.
  • vLLM (runtime and serving layer): Designed for LLM inference. It uses PagedAttention to manage the KV cache in memory-efficient blocks and continuous batching to let new requests join an active batch as other requests finish. It's a strong choice for serving LLMs to multiple concurrent users without needing a separate serving platform.
  • NVIDIA Dynamo Triton (serving layer): Can serve models from several frameworks, including PyTorch, TensorRT and ONNX Runtime. It connects to inference backends to execute models and provides features such as dynamic batching, which groups incoming requests to improve throughput. It's particularly useful when teams need a common serving platform for multiple models or frameworks.

Teams don't always choose the most suitable combination. They may default to tools they already know, prioritize ease of deployment or carry a configuration from an initial proof of concept into production. A setup that works for a small number of requests may struggle under higher concurrency. Teams may also optimize for throughput without accounting for response latency, GPU memory consumption or cost per request.

Networking: Routing decides whether capacity turns into speed

Once a model is deployed, the serving system needs to decide where each incoming request goes. In deployments with multiple replicas, this means distributing requests across available capacity. Because a fleet of replicas only helps if requests reach the right one.

Inference needs more careful load balancing than a typical web service because requests can vary significantly in their processing time, input length and memory requirements. Sending requests to an already-busy GPU increases latency and wastes unused capacity.  

  • Round-robin routing sends requests to replicas in sequence. It works when requests have roughly similar processing costs, as with fixed-size image classification. It becomes less effective for LLMs, where one request might generate 20 tokens and another 2,000.
  • Prefix-aware routing sends requests that share a long system prompt or input prefix to the same replica. This allows the serving runtime to reuse cached information instead of processing the same prefix again.
  • Session affinity keeps requests from the same session connected to the same replica. This is useful for streaming speech applications, where successive audio chunks may depend on the state maintained by a particular model instance.

All requests must also pass through access control first. Every endpoint needs authentication, using API keys or tokens tied to an identity, and authorization rules that define which teams can call which models. Without these controls, an exposed GPU endpoint is an open tab that anyone can run up.

Rate limits help prevent one application from consuming all available capacity. For LLMs, you need to limit tokens per minute as well as requests per minute, because one request can cost a hundred times another.

Finally, teams need a plan for overload. If requests arrive faster than replicas can handle them, a bounded queue with a timeout and a clear 429 or 503 response is better than an unbounded queue that lets delays build unlimited. Otherwise, users will be waiting long after the service's latency target has been missed.

Monitoring: It has to see both the GPU and the request

A deployed model can become slower or less efficient without actually crashing. Monitoring can help pinpoint subtle issues before they become a major problem. Infrastructure metrics show what is happening on the hardware. Application metrics show what users experience. You need to track both to get the full picture.

You can collect Infrastructure metrics from the GPU and the platform running it. emma, for example, shows GPU utilization and memory from the moment an endpoint starts, along with who owns it and what it costs. Application metrics come from the serving layer: vLLM and Triton both publish them in a format tools like Prometheus and Grafana can collect and chart.

Latency deserves particular attention. An average response time of 200 milliseconds may look healthy, but it can hide a situation where 5% of users are waiting two seconds or longer. p95 and p99 latency reveal how slow it can be for users experiencing the worst delays.

GPU utilization also needs careful interpretation. The utilization figure commonly reported by nvidia-smi measures the share of time during which at least one kernel was executing. So, a high GPU utilization percentage doesn't necessarily mean the GPU is using all its processing power. There could still be significant compute capacity available.

In fact, no single utilization number tells the whole story. Teams can combine their utilization metric with measurements such as streaming multiprocessor (SM) activity from NVIDIA DCGM, along with memory usage and throughput to get a complete picture.

Different workloads also need their own performance indicators:

  • LLMs: Time to first token measures how long users wait before a response begins. Inter-token latency measures the time between generated tokens and helps show how smoothly a response streams.
  • Speech recognition: Real-time factor compares processing time with the length of the audio. A value below 1 means the system is processing audio faster than it is arriving or being played back.
  • Recommendation systems: Feature-lookup latency matters because the model may spend more time retrieving user and item data than performing calculations.

However, infrastructure monitoring does not tell the whole story, either. A model can remain available and respond quickly while the quality of its predictions deteriorates. This can happen when the data changes. An image recognition model trained mostly on daylight photographs, for example, may perform less reliably when it starts receiving nighttime images.

You can monitor model quality by evaluating outputs against known examples and tracking changes in input data. Logging a carefully selected sample of inputs and outputs can also help identify unexpected changes. However, any logging strategy needs to account for privacy, data retention and access requirements, particularly when requests contain sensitive information.

Demand changes, and the infra has to change with it

Inference traffic is rarely constant. A recommendation engine may receive more requests in the evening. A speech service may experience a surge when a contact centre opens. A new generative AI feature can attract thousands of unexpected users after one viral post.

Orchestration platforms such as Kubernetes help respond to these changes. They place model-serving replicas on available GPU nodes, restart failed instances and adjust the number of running replicas as demand changes. However this autoscaling is only as effective as the signals it uses.

GPU utilization, for example, is a common scaling metric for web services. But as we discussed earlier, it’s an unreliable metric since it could just be a measure of time during which at least one kernel was executing. More useful signals could be queue depth, the number of requests in progress on each replica and KV cache usage. These metrics give teams a clearer picture of whether the service is approaching its capacity or falling behind its response-time target.

Next, you also need to account for cold starts. A new instance may need to download a container image, retrieve model weights, initialize its runtime and complete a warm-up request. If that process takes 90 seconds, an autoscaler reacting to a sudden traffic spike cannot provide additional capacity immediately.

You can use several techniques to reduce this delay:

  • Keep a minimum number of replicas running and ready to serve requests.
  • Cache model weights on local NVMe storage to reduce download times.
  • Pre-pull container images onto GPU nodes.
  • Scale ahead of predictable demand, such as scheduled traffic peaks.

GPU availability adds another constraint. The GPU model a team needs may not be available in its preferred region when demand increases. Having the ability to deploy across multiple regions or cloud providers can give teams more options, although moving workloads between environments also introduces networking, data-transfer, security and operational considerations.

The fleet also needs a safe way to change over time. Model versions, serving runtimes and configurations all require updates, and sometimes, a change works in testing but still causes problems in production. You can limit the risk through readiness checks, canary releases and safe rollback options. Production inference is not a one-time deployment. It is an environment that teams need to monitor, adjust and maintain.

Production inference is seven layers that work together

In production, all these individual parts that we’ve looked at work as one connected system. The infrastructure can be understood as seven layers:

  1. Compute provides the CPUs, GPUs or other accelerators needed to run the model.
  2. Storage makes model weights, container images and dependencies available.
  3. Serving software loads and executes the model, manages requests and applies techniques such as batching.
  4. Networking connects applications to inference endpoints and supports communication between distributed components.
  5. Orchestration places, scales, upgrades and recovers model-serving replicas.
  6. Observability gives teams visibility into latency, throughput, resource usage and errors.
  7. Governance defines who can deploy workloads, where they can run, which data they can access and how costs are attributed.

The important part is how these layers affect one another. Increasing the batch size in the serving layer changes the memory required from the compute layer. The autoscaling policy depends on the metrics exposed by observability. A data residency requirement may restrict which regions the orchestration layer can use.

Managing these dependencies for one model on one cloud is relatively straightforward. The challenge grows when organizations distribute their workloads across hyperscalers and neoclouds. Each additional environment can bring its own console, configuration, metrics and billing view. Teams then have to maintain consistency across them while still making use of the capacity available in each location.

The work starts when the endpoint goes live

Getting from weights to a live endpoint takes compute that fits the model, a runtime and serving layer that make it reachable, routing that turns capacity into speed, monitoring that catches problems early, and scaling that keeps pace with demand. The work continues long after the launch. Traffic grows, models change, and better GPUs appear in places you aren't running yet. The teams that run inference must treat it as infrastructure to operate, rather than a deployment to complete.

Ship your models with emma

Running inference starts with getting the right GPUs. emma gives you access to GPU capacity across AWS, Azure, GCP, Nebius and emma's own cloud, so you can deploy where the GPUs are available, in the regions you need, at the price that fits the workload.

Once your models are running, you can see them. GPU utilization and memory are tracked from the moment an endpoint starts, and every GPU-hour is tied to the team and project behind it.

Table of contents
Explore now