Inference is the operational phase of machine learning where a trained model is applied to new inputs to produce outputs: next tokens in an LLM, bounding boxes in vision, embeddings for search, or scores in tabular models. Its objective is reliable serving at scale—honoring latency targets (time to first token, p99 completion time), throughput (requests or tokens per second), availability, and cost per query—rather than improving weights. In generative AI, inference splits into prefill (processing the prompt in one or few forward passes) and decode (autoregressive generation of each output token), each with different bottlenecks. Production inference adds API gateways, auth, rate limiting, observability, model versioning, A/B tests, and guardrails; the model file is read-mostly while KV cache and batch state are ephemeral per session.
Architecturally, inference favors low latency per request and efficient memory reuse on accelerators; training favors sustained FLOPs over huge datasets with frequent all-to-all communication and checkpoint writes. A CPU can serve small models or orchestrate I/O, but LLM inference at useful scale runs on GPUs (or TPUs/ASICs) with frameworks such as vLLM, NIM, or Triton, often in containers on Kubernetes. The host CPU schedules batches, handles networking, and runs the control plane; the device holds weights and the KV cache. Scaling is horizontal (more replicas) and vertical (tensor parallelism, disaggregation); schedulers like llm-d route traffic so replicas with warm prefix cache do more work. Training clusters optimize for gradient sync and large memory per job; inference clusters optimize for concurrent sessions, tail latency, and cost per token—different failure modes and different autoscaling signals.
Red Hat addresses inference through Red Hat OpenShift AI, RHEL AI, and OpenShift as the deployment substrate. Supported patterns include vLLM and partner NIM microservices on GPU nodes, routes and service mesh for north-south traffic, llm-d for distributed routing on OpenShift, and enterprise Linux for drivers and security. Red Hat documents reference architectures for private AI inference (GPU sizing, MIG, networking, storage for model artifacts), integrates observability and CI/CD for model promotions, and aligns with the NVIDIA AI stack on certified hardware. Training may happen elsewhere (cloud burst, dedicated cluster); inference is often what runs continuously on the customer’s Red Hat platform close to applications and data.
