An LLM (large language model) is a deep neural network—almost always a Transformer—trained on large amounts of text (and sometimes multimodal data) to model the probability of the next token given prior context. Its objective at training time is to minimize prediction error over billions of tokens, producing weights that encode grammar, facts (with limitations), reasoning patterns, and task-following behavior after alignment or instruction tuning. At inference time the same model generates completions, answers questions, summarizes documents, or drives agents; production systems expose it through APIs (often OpenAI-compatible) backed by engines such as vLLM or NIM. LLMs power chatbots, code assistants, RAG pipelines, and enterprise copilots.
Architecturally, an LLM is not run like a typical CPU application: forward passes are dominated by matrix multiplication and attention, with memory footprint driven by model size (billions of parameters) and per-session KV cache during decode. A 7B–70B+ parameter model does not fit in host DRAM for fast serving; weights and cache live on GPU HBM, often sharded with tensor parallelism across devices linked by NVLink or NCCL over InfiniBand/RoCE. The CPU handles tokenization, request batching, networking, and orchestration. Context length (prompt + output tokens) directly affects latency and VRAM; techniques such as quantization, LoRA adapters, and prefix caching exist to reduce cost and improve throughput without retraining from scratch.
Red Hat positions LLMs as workloads on RHEL AI (curated models, InstructLab, local experimentation) and Red Hat OpenShift AI (multi-tenant serving, MLOps, integration with NVIDIA NIM and open vLLM). Documentation covers GPU node sizing, security (routes, SCCs, secrets for API keys), and hybrid patterns where training or fine-tuning happens on-cluster and inference runs behind gateways or llm-d for cache-aware routing. The platform story is Linux + Kubernetes + supported accelerators, not a proprietary model family—customers bring Hugging Face or vendor weights and operate them like any other stateful service.
