06. Inference Acceleration & Model Serving
Turning laboratory checkpoints into ultra-low-latency, memory-efficient, high-throughput, and resilient production serving engines.
6.1 Kernel, Compiler & Hardware Acceleration
CUDA C/C++ kernels, OpenAI Triton language, FlashAttention-1/2/3 IO-aware tiling, TensorRT graph compiler, AMD ROCm, and Intel OpenVINO heterogeneous acceleration.
FlashAttention-1/2/3 IO Optimization & OpenAI Triton Kernels
IO-aware tiling, on-chip SRAM online softmax calculation, reducing HBM IO from $O(N^2)$ to $O(N)$ with standard $O(N^2 d)$ FLOPs, warp specialization, and OpenAI Triton kernel programming.
Deep Learning Compilers, Graph Fusion & Heterogeneous Hardware
TensorRT/TVM/XLA computational graph optimization, automatic operator fusion, CUTLASS 3.x GEMM templates, AMD ROCm/HIP, Intel OpenVINO, and Roofline bottleneck analysis.
6.2 KV Cache, Context & Decoding Optimization
PagedAttention virtual memory paging, Automatic Prefix Caching (APC), RadixAttention, Chunked Prefill, Disaggregated Prefill/Decode, and Speculative Decoding.
PagedAttention Virtual Paging & Automatic Prefix Caching
OS-style virtual memory paging for dynamic non-contiguous KV Cache allocation, mitigating external memory fragmentation, and zero-copy prefix caching (APC/RadixAttention).
Chunked Prefill, Disaggregated Serving & Speculative Decoding
Chunked prefill balancing TTFT and TPOT, Disaggregated Prefill-Decode serving (Mooncake architecture), Speculative Decoding (EAGLE/Medusa draft verification), and Attention Sinks streaming.
6.3 Model Compression & Quantization
Hopper/Blackwell native FP8/NVFP4 compute, SmoothQuant/QuaRot outlier mitigation, AWQ activation-aware quantization, KV Cache compression, and quality gates.
Native FP8 / NVFP4 Compute, SmoothQuant & GPTQ
Ada/Hopper native FP8 and Blackwell NVFP4 fine-grained block quantization, SmoothQuant outlier channel scaling, GPTQ inverse Hessian error compensation, and GGUF cross-platform quantization.
AWQ Salient Activation, KV Cache Quantization & Quality Gates
AWQ protecting salient top-1% activation channels, FP8/INT8 KV Cache quantization for 2x concurrency, calibration dataset standards, automated multi-benchmark regression gates, and fallback rollback strategies.
6.4 Production Serving Engines, Control Plane & Reliability
vLLM, SGLang, and TensorRT-LLM engines, continuous batching, Multi-LoRA concurrent serving, TTFT/TPOT latency SLO governance, admission control, and canary rollbacks.
High-Throughput Engines & Continuous Batching
vLLM, SGLang, TensorRT-LLM, TGI architectures, iteration-level continuous batching, dynamic multi-LoRA concurrent mounting, distributed tensor parallel serving, and high-throughput SSE/gRPC streaming.
Serving Control Plane, SLO Governance & Elastic Reliability
TTFT and TPOT P95/P99 millisecond latency SLO observability, adaptive admission control and load shedding, multi-model gateway routing, GPU autoscaling, canary deployments, and automated zero-downtime rollback.