Skill 2.2.2

Deploy FM solutions by addressing unique challenges of large language models (LLMs) that differ from traditional ML deployments (for example, by implementing container-based deployment patterns that are optimized for memory requirements, GPU utilization, and token processing capacity, by following specialized model loading strategies)

Key Concepts

Model weights alone need roughly 2 bytes per parameter at 16-bit precision, so a 70-billion-parameter model needs about 140 GB before the key-value (KV) cache, which grows with context length and the number of concurrent requests. Large models are split across GPUs with tensor parallelism or shrunk with quantisation (8-bit or 4-bit). SageMaker AI large model inference (LMI) containers package serving engines such as vLLM and TensorRT-LLM with continuous batching and paged attention, which keep GPUs busy by adding new requests as others finish.

Specialized loading strategies reduce cold-start time: loading weights from S3 in parallel or streaming them directly to GPU memory, caching container images, using pre-compiled or pre-sharded weights, and keeping a minimum number of instances warm. Capacity is measured in tokens per second and concurrent sequences rather than requests per second.