VISI

LLMs and inference infrastructure

Large Language Models (LLMs) in production have different resource profiles than training:

AspectTrainingInference
Compute patternBatch, long-runningRequest-driven, latency-sensitive
MemoryVery high (model + optimizer states)High (model weights only)
ParallelismData + model + pipeline parallelTensor parallel for large models
OptimizationThroughputLatency + throughput

Inference optimization techniques:

  • Quantization (INT8, FP16, BF16) — reduces GPU memory footprint
  • Batching strategies: static batching, dynamic batching, continuous batching
  • KV cache management for transformer models
  • Model compilation with TensorRT for optimized kernels

NVIDIA Triton Inference Server:

  • Multi-framework serving (PyTorch, TensorFlow, ONNX, TensorRT)
  • Dynamic batching and concurrent model execution
  • Kubernetes-native — deploy as a pod with GPU resources
  • gRPC and HTTP/REST APIs

Quiz

A few quick questions based on this unit. Mark it complete when you are done.

Question 1 / 3

What is Kubernetes-native?