Skip to content

About

A curated list of awesome inference engineering tools, papers and resources.

Topics

Resources

Code of conduct

Contributing

Stars

24 stars

Watchers

0 watching

Forks

Latest commit

 

History

60 Commits

Folders and files

Repository files navigation

Awesome Inference Engineering Awesome

A curated guide to running models efficiently and reliably: inference fundamentals, engines, research papers, benchmarks and production practices.

The focus is LLM inference, with dedicated coverage of embeddings, speech, vision and diffusion.

Inference Engineering landscape

Start here

Choose a path, then use the topic index for deeper reading. The order within each path is intentional.

Your goal Read in this order Practical outcome
Learn the fundamentals How inference works -> KV cache -> prefill and decode -> batching -> latency metrics -> bottleneck analysis Explain where time and memory go during generation.
Deploy a first model Model selection and evaluation -> engine selection -> sizing -> containers -> benchmarking methodology Serve one model and measure its quality and latency against a representative workload.
Improve production serving Benchmarking and profiling -> optimization choices -> quantization -> structured output -> reliability -> cost Identify a bottleneck, change one variable and verify latency, quality and cost.

Tags: Paper, YYYY marks research papers; Paid marks commercial books; Historical marks archived projects kept for background; Reference code marks research implementations whose methods now ship in production engines. Vendor benchmark results describe their tested configurations.

Table of contents

1. Inference fundamentals

1.1 What inference is

1.2 Transformers and attention

1.3 The KV cache

1.4 Prefill, decode and serving modes

  • Prefill vs Decode - Why prefill often hits compute limits and small-batch decode often hits memory-bandwidth limits; the balance changes with batching and workload.
  • Using Asynchronous Inference in Production - Queue-based inference for long-running or bursty workloads.
  • vLLM OpenAI-Compatible Server - The chat, completions and embeddings endpoints most engines now expose, including streaming responses.
  • OpenAI-Compatible API - LLM Inference Handbook chapter on why the OpenAI API shape became the common interface for self-hosted models.
  • Chat Templates - How chat messages are rendered into the token sequence a model expects; a mismatched template silently degrades output.

1.5 Batching and request scheduling

1.6 Latency and throughput metrics

1.7 Bottleneck analysis

1.8 Inference optimization overview

1.9 Model selection, evaluation and fine-tuning

Model selection

Evaluation

  • LLM Evaluation: A Beginner's Guide - Evaluation methods for LLM systems, from benchmarks to LLM-as-a-judge.
  • Langfuse - Open-source platform for tracing, evaluating and monitoring LLM applications.
  • Arize Phoenix - Open-source LLM tracing and evaluation built on OpenTelemetry.
  • lm-evaluation-harness - EleutherAI's framework for running standard academic benchmarks against a model.
  • Lighteval - Hugging Face toolkit for evaluating LLMs across inference backends such as vLLM and SGLang.
  • DeepEval - Pytest-style framework for unit-testing LLM outputs with metrics and LLM-as-a-judge.
  • promptfoo - CLI for testing prompts, models and agents, including red-teaming.
  • Inspect - UK AI Security Institute's framework for LLM and agent evaluations.

Fine-tuning and adapters

  • PEFT - Parameter-efficient fine-tuning methods such as LoRA, which produce small adapters that engines can serve together on one base model.
  • TRL - Hugging Face library for supervised fine-tuning, DPO and RL-based post-training.
  • Unsloth - Memory-efficient fine-tuning and RL for open models, with export to GGUF and vLLM.
  • Axolotl - Config-driven fine-tuning for open models, from LoRA to multi-GPU full fine-tuning.
  • LlamaFactory - Unified fine-tuning for 100+ LLMs and VLMs with a CLI and web UI.

Pruning and distillation

1.10 Mixture of Experts and state-space models

2. Hardware

2.1 GPU architecture

2.2 Accelerators by vendor

NVIDIA

AMD

Google TPU

AWS Trainium and Inferentia

  • AWS Neuron Documentation - SDK, compiler and vLLM integration for AWS Trainium and Inferentia accelerators.
  • NxD Inference - AWS NeuronX Distributed Inference library and model hub for serving LLMs on Trainium and Inferentia.

Intel Gaudi

Other accelerators

2.3 Instances, interconnects and sizing

3. Software

3.1 Frameworks, runtimes and model formats

  • PyTorch - Core framework, including torch.compile and the PyTorch profiler.
  • JAX - Composable transformations and XLA compilation, widely used on TPUs.
  • Transformers - Hugging Face model definitions for text, vision, audio and multimodal models, used for both inference and training.
  • Tokenizers - Fast tokenizer implementations used by most open language models.
  • Common AI Model Formats - Comparison of GGUF, safetensors, PyTorch and ONNX formats.
  • safetensors - Safe, zero-copy tensor serialization format used by most open checkpoints.
  • GGUF - Specification of the single-file quantized model format used by llama.cpp.
  • ONNX Runtime - Cross-platform inference runtime for ONNX models.
  • TensorRT - NVIDIA SDK that compiles and optimizes models for inference on NVIDIA GPUs.
  • OpenVINO - Intel toolkit for optimizing and running models on Intel CPUs, GPUs and NPUs.

3.2 Inference engines

Datacenter serving

  • vLLM - High-throughput, memory-efficient LLM serving engine with continuous batching and PagedAttention.
  • Inside vLLM - Walkthrough of vLLM internals, from paged attention, continuous batching, prefix caching and speculative decoding to multi-GPU and multi-node serving.
  • SGLang - High-performance serving framework for language and multimodal models.
  • TensorRT-LLM - NVIDIA library and runtime for optimized LLM inference on NVIDIA GPUs.
  • Triton Inference Server - NVIDIA's multi-framework model server, with TensorRT-LLM, vLLM, PyTorch and ONNX backends.
  • LMDeploy - Toolkit for compressing, deploying and serving LLMs, built on its own TurboMind and PyTorch inference engines.
  • mistral.rs - Fast LLM inference engine written in Rust.
  • Modular MAX - Modular's inference framework and serving stack, with kernels written in Mojo.
  • KTransformers - CPU/GPU hybrid inference that keeps MoE experts in CPU memory to run large MoE models on limited VRAM.
  • DeepSpeed-MII - Microsoft DeepSpeed's inference library, built on DeepSpeed-FastGen.
  • Text Generation Inference - Hugging Face's LLM server. Historical: in maintenance mode and archived.

Local and desktop

  • llama.cpp - LLM inference in C/C++ for CPUs and GPUs, using the GGUF model format.
  • Ollama - Downloads and runs open models locally behind a simple API.
  • llamafile - Packages a model and llama.cpp into a single executable that runs on most operating systems.
  • LocalAI - Self-hosted, OpenAI-compatible server for running LLM, image and audio models locally.
  • PowerInfer - Consumer-GPU engine exploiting activation sparsity across GPU and CPU.
  • AirLLM - Layer-by-layer loading that runs large models on small GPUs at the cost of latency.
  • ExLlamaV3 - Inference library for quantized models on consumer GPUs, using the EXL3 format.
  • CTranslate2 - Optimized C++ and Python runtime for transformer models on CPU and GPU.

Apple Silicon

  • MLX - Array framework for machine learning on Apple Silicon.
  • vllm-metal - Community plugin for running vLLM on Apple Silicon GPUs.
  • On-Device Llama 3.1 with Core ML - Apple's walkthrough of optimizing an LLM for on-device Core ML inference.

Mobile and edge

  • ExecuTorch - PyTorch runtime for on-device inference on mobile and embedded hardware.
  • MLC LLM - Compiler-based deployment of LLMs to phones, browsers and GPUs.
  • LiteRT-LM - Google AI Edge's open-source inference framework for running LLMs on edge devices.
  • MediaPipe LLM Inference - Google AI Edge API for running LLMs on Android, iOS and the web.

Browser

  • WebLLM - In-browser LLM inference with WebGPU acceleration.
  • Transformers.js - Runs Hugging Face models in the browser and Node.js on ONNX Runtime, with WebGPU support.

Embeddings and rerankers

3.3 Benchmarking and profiling

  • GuideLLM - vLLM project's tool for benchmarking deployments against realistic traffic.
  • genai-bench - SGLang's token-level benchmark for LLM serving endpoints.
  • AIPerf - Generative AI load testing, trace replay and SLO analysis.
  • MLPerf Inference - Reference implementations of the MLPerf Inference benchmarks.
  • Vidur - Simulator that estimates LLM serving performance across configurations without running them.
  • InferenceX - SemiAnalysis's open benchmark that continuously runs inference engines across NVIDIA and AMD hardware (formerly InferenceMAX).
  • PyTorch Profiler - Recording operator- and kernel-level timings and memory from PyTorch code.
  • Holistic Trace Analysis - Meta's library for analyzing PyTorch profiler traces across ranks, including idle time and communication overlap.
  • Perfetto - Trace viewer used to inspect PyTorch and other Chrome-format traces.
  • Nsight Systems User Guide - NVIDIA's system-wide timeline profiler for CPU, GPU and communication activity.
  • ROCm Systems Profiler - AMD's system-wide timeline profiler for CPU and GPU activity.
  • Nsight Compute Profiling Guide - Profiling CUDA kernels and interpreting hardware metrics.
  • ROCm Compute Profiler - Kernel-level performance analysis for AMD Instinct GPUs.

3.4 Kernel libraries, languages and compilers

  • CUTLASS - CUDA C++ templates and Python DSLs for high-performance GEMM and related kernels.
  • cuDNN Frontend - C++ and Python API for cuDNN graph operations, including fused attention.
  • FlashAttention - Official FlashAttention kernels for NVIDIA and AMD GPUs.
  • FlashInfer - Attention, sampling and MoE kernels for LLM serving, used by vLLM and SGLang.
  • FlashMLA - DeepSeek's multi-head latent attention decoding kernels.
  • DeepGEMM - DeepSeek's FP8 GEMM kernels with fine-grained scaling, including grouped GEMMs for MoE.
  • Marlin - FP16xINT4 mixed-precision matmul kernel that underpins INT4 serving in vLLM and other engines. Reference code: production kernels ship in vLLM.
  • ThunderKittens - Small embedded DSL of tile primitives for writing fast GPU kernels.
  • AITER - AI Tensor Engine for ROCm: optimized inference operators for AMD GPUs.
  • Composable Kernel - AMD's templated library for fused GEMM, attention and other operators.
  • Triton - Language and compiler for writing GPU kernels in Python.
  • TileLang - Tile-level DSL for writing GEMM, attention and other high-performance kernels.
  • Mojo Manual - Modular's systems language for CPU and GPU kernels.
  • Introduction to torch.compile - PyTorch's JIT compiler, used by vLLM and SGLang to fuse operators.
  • Getting Started with CUDA Graphs - Capturing and replaying GPU work to cut kernel launch overhead, which matters most in small-batch decode.
  • FlexAttention - PyTorch API for writing custom attention variants that compile to fused kernels.
  • CUDA C++ Programming Guide - NVIDIA's reference for the CUDA programming model, memory hierarchy and execution.
  • HIP Documentation - AMD's C++ GPU programming model and runtime, with a porting path from CUDA.
  • Gluon Tutorials - Triton's lower-level language for explicit control over layouts and memory.
  • Learn by Doing: TorchInductor Reduction Kernels - How TorchInductor generates reduction kernels.
  • Apache TVM - Open machine learning compiler framework.
  • XLA - Machine learning compiler for GPUs, CPUs and TPUs, used by JAX.
  • IREE - MLIR-based compiler and runtime for deploying models from datacenter to edge.

3.5 GEMM kernels and tile programming

4. Inference techniques

4.1 Quantization

Guides

Low-precision formats

Papers

  • FP8 Formats for Deep Learning - Paper, 2022. The E4M3 and E5M2 FP8 formats now supported by Hopper, Blackwell and MI300 hardware.
  • GPTQ - Paper, 2022. One-shot weight quantization to 3-4 bits using approximate second-order information.
  • AWQ - Paper, 2023. Activation-aware weight quantization that protects the most salient weight channels.
  • SmoothQuant - Paper, 2022. Moving activation outliers into weights to enable W8A8 quantization.
  • QuaRot - Paper, 2024. Rotating hidden states to remove outliers for end-to-end 4-bit weights, activations and KV cache.
  • SpinQuant - Paper, 2024. Learned rotations for low-bit weight, activation and KV-cache quantization.
  • KIVI - Paper, 2024. Tuning-free 2-bit KV-cache quantization, per-channel for keys and per-token for values.

Tools

  • LLM Compressor - vLLM project's library for producing GPTQ, AWQ, FP8 and other quantized checkpoints.
  • NVIDIA Model Optimizer - Quantization, pruning, distillation and sparsity for deployment with TensorRT-LLM, vLLM and SGLang.
  • torchao - PyTorch-native quantization and sparsity for training and inference.
  • bitsandbytes - 8-bit and 4-bit quantization for PyTorch, widely used for QLoRA.
  • GPTQModel - GPTQ quantization toolkit with CUDA, ROCm, XPU and CPU backends.
  • AutoRound - Intel's sign-gradient post-training quantization for low-bit LLMs and VLMs.

4.2 Speculative decoding

  • Fast Inference from Transformers via Speculative Decoding - Paper, 2022. Foundational draft-target speculative decoding algorithm with parallel verification.
  • EAGLE - Official implementation of the EAGLE-1, EAGLE-2 and EAGLE-3 speculative decoding methods.
  • Medusa - Multiple decoding heads for candidate token generation. Reference code: production implementations are available in TensorRT-LLM.
  • SpecInfer - Paper, 2023. Verifying a tree of speculated tokens in one pass instead of a single sequence.
  • Better and Faster Large Language Models via Multi-token Prediction - Paper, 2024. Training models to predict several tokens at once, used for self-speculative decoding.
  • Lookahead Decoding - Draft-free parallel decoding using Jacobi iteration and an n-gram pool. Reference code: production implementations are available in TensorRT-LLM.
  • Prompt Lookup Decoding - Using n-gram matches from the prompt as drafts, effective for summarization and code editing. Reference code: production equivalent is n-gram speculation in vLLM.
  • MagicDec - Paper, 2024. When speculative decoding still helps at large batch sizes for long-context requests.
  • vLLM Speculative Decoding - Configuring draft-model, n-gram, MTP and EAGLE speculation in vLLM.
  • Speculators: Production-Ready Speculative Decoding - Why the speculators library standardizes draft-model formats.

4.3 KV-cache reuse, routing and offload

4.4 Long-context handling

4.5 Parallelism and communication

  • vLLM Parallelism and Scaling - Configuring tensor, pipeline, data and expert parallelism for single-node and multi-node vLLM deployments.
  • How Multi-Node Inference Works for Massive LLMs like DeepSeek-R1 - A DeepSeek-R1 deployment using 16 H100s across two nodes, explaining the memory and communication choices in that configuration.
  • Megatron-LM - Paper, 2019. The paper that defined intra-layer tensor parallelism for transformers.
  • Shift Parallelism - Paper, 2025. Switching between tensor and data parallelism to balance latency and throughput.
  • vLLM Large Scale Serving: DeepSeek @ 2.2k tok/s/H200 with Wide-EP - Wide expert parallelism, dual-batch overlap and disaggregated serving for DeepSeek on H200 clusters.
  • NCCL - NVIDIA collective communication library for multi-GPU and multi-node transfers.
  • RCCL - AMD's collective communication library for ROCm GPUs.
  • NVSHMEM - NVIDIA's GPU-initiated communication library, used by DeepEP and other MoE kernels.
  • DeepEP - Expert-parallel communication library for MoE dispatch and combine.
  • UCCL - GPU communication library for collectives, P2P KV transfer and expert parallelism.
  • llm-d Wide Expert Parallelism - How llm-d deploys large MoE models with data and expert parallelism across nodes.

4.6 Disaggregation

  • Disaggregated Inference at Scale with PyTorch and vLLM - Running separate prefill and decode pools with vLLM.
  • DistServe - Paper, 2024. OSDI 2024 paper on placing prefill and decode on separate GPUs to meet TTFT and TPOT targets.
  • Splitwise - Paper, 2023. Splitting prompt and token phases onto different machines, including different GPU types.
  • Disaggregated Serving in TensorRT-LLM - TensorRT-LLM's disaggregated serving design.
  • SGLang PD Disaggregation - Configuring prefill/decode disaggregation in SGLang.
  • NVIDIA Dynamo - Datacenter-scale distributed inference serving framework with disaggregated prefill and decode.
  • NIXL - NVIDIA Inference Xfer Library for moving KV cache between GPUs, nodes and storage, used by Dynamo, vLLM and llm-d.
  • llm-d Architecture - Component design and topology of llm-d.
  • llm-d - Kubernetes-native distributed LLM inference with KV-cache-aware scheduling.
  • llm-d P/D Disaggregation - When to split prefill and decode in llm-d and how KV-cache is transferred between them.

4.7 Structured output, sampling and tool calling

  • How to Generate Text - Greedy search, beam search, top-k and top-p sampling compared.
  • Inference Parameters - LLM Inference Handbook chapter on temperature, top-p, penalties and other generation controls.
  • Min-p Sampling - Paper, 2024. Truncating the token distribution relative to the top token's probability.
  • XGrammar - Fast grammar-constrained decoding engine, integrated into serving engines including vLLM and SGLang; backend defaults depend on engine version.
  • llguidance - Low-latency constrained decoding for JSON schemas, regular expressions and context-free grammars.
  • Outlines - Library for generating structured output from LLMs using regex, JSON schemas and grammars.
  • LM Format Enforcer - Enforcing JSON schema or regex output by filtering allowed tokens.
  • vLLM Structured Outputs - Guided JSON, regex, choice and grammar decoding in vLLM.
  • vLLM Tool Calling - How vLLM parses model-specific tool-call formats into OpenAI-compatible responses.
  • vLLM Reasoning Outputs - Separating reasoning content from the final answer for reasoning models.

5. Multimodal inference

5.1 Omni-modal inference

5.2 Vision-language models

5.3 Speech

  • Robust Speech Recognition via Large-Scale Weak Supervision - Paper, 2022. The Whisper paper.
  • Silero VAD - Lightweight voice activity detector for finding speech before transcription.
  • faster-whisper - Whisper transcription reimplemented on CTranslate2 for faster inference.
  • whisper.cpp - Port of Whisper to C/C++ for CPU, GPU and on-device transcription.
  • WhisperX - Batched Whisper transcription with word-level timestamps and speaker diarization.
  • NeMo Speech - NVIDIA's speech toolkit, home of the Parakeet and Canary ASR models.
  • sherpa-onnx - Offline streaming ASR, TTS, VAD and diarization on ONNX Runtime for mobile, embedded and server targets.
  • Piper - Fast, local neural text-to-speech engine.
  • Kokoro - Small 82M-parameter open-weight text-to-speech model.
  • Pipecat - Open-source framework for real-time voice and multimodal agents that chains streaming ASR, LLM and TTS services.
  • LiveKit Agents - Framework for real-time voice AI agents over WebRTC, with turn detection and interruption handling.
  • What Is Speech-to-Speech? - Cascaded versus end-to-end speech-to-speech pipelines and where each fits.
  • Moshi - Speech-text foundation model and full-duplex dialogue framework with a streaming audio codec.

5.4 Computer vision and video analytics

  • Ultralytics YOLO - Training, export and inference for YOLO detection, segmentation, pose and tracking models.
  • Ultralytics Export Formats - Exporting YOLO models to ONNX, TensorRT, OpenVINO, Core ML and other deployment formats.
  • Triton Inference Server with Ultralytics YOLO - Exporting a YOLO model to ONNX and serving it from a Triton model repository.
  • NVIDIA DeepStream SDK - GStreamer-based toolkit for multi-stream video analytics pipelines on NVIDIA GPUs and Jetson.
  • DeepStream-Yolo - Community implementation for running YOLO models inside DeepStream pipelines.
  • Savant - Python framework for video analytics pipelines, built on DeepStream for NVIDIA GPUs and Jetson.
  • DL Streamer - Intel's GStreamer-based pipeline framework for video analytics on Intel CPUs, GPUs and NPUs.
  • Roboflow Inference - Self-hosted server for running vision models and video-stream workflows on cloud or edge devices.

5.5 Image and video generation

  • Diffusion Models - Introductory explanation of how diffusion models are trained and sampled.
  • Diffusers - Hugging Face library of diffusion models and pipelines for image, video and audio generation.
  • ComfyUI - Node-graph interface, API and backend for running diffusion pipelines.
  • SGLang Diffusion - SGLang's serving stack applied to image and video generation.
  • xDiT - Parallel inference engine for diffusion transformers, splitting image and video generation across GPUs.
  • FastVideo - Inference and post-training framework for accelerated video generation.
  • vLLM-Omni Diffusion Guide - Attention backends and acceleration options for diffusion models in vLLM-Omni.
  • stable-diffusion.cpp - Diffusion model inference in C/C++ on ggml, for CPUs and consumer GPUs.
  • Latent Consistency Models - Paper, 2023. Distilling diffusion models to generate images in a few sampling steps.
  • DeepCache - Training-free acceleration by reusing high-level U-Net features across denoising steps.
  • TeaCache - Training-free caching that skips redundant timesteps in video and image diffusion models.
  • Nunchaku - 4-bit inference engine for diffusion models based on SVDQuant.

6. Production inference

6.1 Containers and GPU enablement

  • NVIDIA Container Toolkit - Runtime hooks that expose NVIDIA GPUs to containers.
  • AMD Container Toolkit - Runtime and tools that expose AMD GPUs to containers.
  • NVIDIA NIM - Prebuilt, optimized inference microservice containers for NVIDIA GPUs.
  • BentoML - Framework for packaging models as inference APIs, job queues and multi-model pipelines.
  • NVIDIA Device Plugin - Exposes NVIDIA GPUs as schedulable Kubernetes resources.
  • NVIDIA GPU Operator - Installs and manages NVIDIA drivers, device plugin and monitoring on Kubernetes.
  • AMD GPU Device Plugin - Exposes AMD GPUs as schedulable Kubernetes resources.
  • AMD GPU Operator - Installs and manages AMD GPU drivers, device plugin and metrics on Kubernetes.

Model loading and cold starts

  • Model Streamer - Concurrent streaming of safetensors weights from object storage or disk into GPU memory (formerly Run:ai Model Streamer).
  • fastsafetensors - Faster safetensors loading using GPUDirect Storage and parallel reads.
  • Tensorizer - CoreWeave's serialization format and loader for streaming model weights from HTTP, S3 or disk.

Model artifact packaging and delivery

  • KServe OCI Storage (Modelcars) - Packaging models as OCI images so nodes cache and share them like container layers.
  • Kubernetes Image Volumes - Mounting an OCI image as a read-only volume, which lets model weights ship separately from the serving image.
  • ModelPack Model Spec - Open specification for packaging and distributing models as OCI artifacts.
  • KitOps - CNCF tool for packaging and versioning models, datasets and configuration as OCI artifacts.

6.2 Kubernetes serving platforms

  • KServe - Kubernetes platform for deploying generative and predictive models across frameworks.
  • Ray - Distributed compute engine whose Ray Serve library serves models at scale.
  • vLLM Production Stack - vLLM's reference system for Kubernetes-native, cluster-wide deployment.
  • AIBrix - vLLM project's Kubernetes control plane for LLM serving, with LoRA management, routing and autoscaling.
  • KAITO - CNCF Kubernetes AI Toolchain Operator that provisions GPU nodes and deploys open models.
  • HAMi - CNCF project for sharing and isolating heterogeneous GPUs on Kubernetes.
  • LeaderWorkerSet - Kubernetes API for deploying a group of pods as one unit, used for multi-node inference.
  • Kueue - Kubernetes job queueing and quota management for sharing GPU capacity across teams.

GPU sharing and allocation

6.3 Gateways, routing and autoscaling

  • The Baseten Inference Stack - Runtime and infrastructure layers of a production stack, including geo-aware load balancing.
  • LiteLLM - AI gateway and SDK that calls 100+ LLM APIs in OpenAI format, with load balancing and cost tracking.
  • Agent Router (formerly Envoy AI Gateway) - Unified access to generative AI services, built on Envoy Gateway.
  • Portkey Gateway - Open-source AI gateway with routing, retries, fallbacks and guardrails across LLM providers.
  • Gateway API Inference Extension - Kubernetes SIG project that adds model-aware routing to Gateway API through InferencePool.
  • llm-d Router - llm-d's scheduler that routes requests by prefix-cache hits, load and predicted latency.
  • KEDA - Event-driven Kubernetes autoscaler, often used to scale inference pods on queue depth.
  • Karpenter - Kubernetes node autoscaler that provisions GPU nodes to fit pending pods.
  • vLLM LoRA Adapters - Serving many LoRA adapters on one base model and routing requests to them.
  • S-LoRA - Paper, 2023. Serving thousands of concurrent LoRA adapters with unified paging of adapter weights and KV cache.
  • Punica - Paper, 2023. Batching requests for different LoRA adapters with a custom segmented-gather kernel.
  • vLLM Semantic Router - Programmable layer that classifies requests and routes them to the right model.
  • Autoscaling Endpoints for LLM Inference - Choosing scaling metrics, tuning scaling windows and budgeting for cold starts.
  • vLLM: Why Requests Take Hours Under Load - Diagnosing KV block exhaustion and queue starvation.

6.4 Cloud and GPU hosting platforms

Choosing a hosting model

AWS (EKS)

Google Cloud (GKE)

Azure (AKS)

GPU clouds

Managed inference endpoints

6.5 Observability, security and debugging

  • DCGM Exporter - Prometheus exporter for NVIDIA GPU metrics, built on DCGM.
  • AMD Device Metrics Exporter - Exports AMD GPU metrics to Prometheus and other collectors.
  • OpenTelemetry Semantic Conventions for Generative AI - Evolving conventions for spans and metrics covering model calls, tokens and latency; pin the convention version when instrumenting.
  • OpenLLMetry - OpenTelemetry instrumentation for LLM providers, frameworks and vector databases.
  • Helicone - Open-source LLM observability platform and gateway for request logging, cost and latency.
  • Langfuse and Arize Phoenix, listed under Evaluation, also trace production LLM traffic.
  • Confidential Compute for AI Inference - How Chutes uses trusted execution environments for verifiable private inference on third-party GPUs.
  • OWASP Top 10 for LLM Applications - Common security risks for LLM applications, from prompt injection to unbounded consumption.
  • ModelScan - Scans model files for unsafe serialized code, such as malicious pickle payloads.
  • Pickle Scanning - Why pickle-based checkpoints can execute code on load, and how the Hugging Face Hub scans for it.
  • Model Transparency - Sigstore and OpenSSF tooling for signing models and verifying their provenance.
  • Llama Guard - Paper, 2023. LLM-based safeguard model for classifying prompts and responses.
  • NeMo Guardrails - Programmable input, output and dialog guardrails for LLM applications.
  • Token-Level Truth - HaluGate: token-level hallucination detection in vLLM Semantic Router, checked against tool outputs and context.
  • One Token to Corrupt Them All - How AI21 traced a state-corruption bug in vLLM's scheduler and memory management for Mamba models.

6.6 Cost and efficiency

6.7 Offline batch inference, RL rollouts and reasoning budgets

Offline batch inference

  • vLLM Offline Inference - Running vLLM as a library for batch generation without an HTTP server.
  • Ray Data LLM - Batch LLM inference over large datasets with vLLM on Ray Data.

RL rollout generation

  • verl - RL post-training framework that uses vLLM and SGLang as rollout engines.
  • slime - RL scaling framework that connects Megatron training with SGLang rollouts.

Reasoning budgets

6.8 Serving reliability and deployment safety

7. Learning resources

7.1 Courses and books

7.2 Repositories and reading lists

  • 100 Days of LLM Inference - Day-by-day runnable experiments that follow the Inference Engineering book, from KV cache and kernels to quantization, speculative decoding and disaggregated serving.
  • LLM Inference Engineering - Step-by-step blog series from autoregressive generation, prefill and decode to KV cache, PagedAttention, continuous batching, vLLM, SGLang and GPUs.
  • AI Inference Resources - AER Labs' tiered reading guide covering LLM serving, GPU kernels, attention, quantization, distributed inference and production deployment.
  • Inference Engineering Library - Community-shared books, courses, code and research for inference engineering, filterable by format and level.
  • GPU MODE Lectures - Slides and code from the GPU MODE lecture series on CUDA, Triton and inference kernels.
  • A Survey on Efficient Inference for Large Language Models - Paper, 2024. Taxonomy of data-, model- and system-level inference optimizations.
  • Awesome LLM Inference - Companion list of LLM and VLM inference papers with code.

7.3 Talks

Contributing

Read the contribution guide before submitting. Use the issue templates to propose a topic.

License

This repository's original content is licensed under the MIT License. Linked projects, documentation, papers, images and code retain their respective licenses.

About

A curated list of awesome inference engineering tools, papers and resources.

Topics

Resources

Code of conduct

Contributing

Stars

24 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages