[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-112684":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":10,"pushedAt":28,"updatedAt":29,"readmeContent":30,"aiSummary":31,"trendingCount":15,"starSnapshotCount":15,"syncStatus":16,"lastSyncTime":32,"discoverSource":33},112684,"awesome-inference-engineering","one2nc\u002Fawesome-inference-engineering","one2nc","A curated list of awesome inference engineering tools, papers and resources.","",null,"Python",70,8,57,0,2,4,10,6,49.86,"MIT License",false,"main",[25,26,27],"awesome","awesome-list","inference-engineering","2026-11-23 06:46:28","2026-11-22 15:20:57","# Awesome Inference Engineering [![Awesome](https:\u002F\u002Fawesome.re\u002Fbadge.svg)](https:\u002F\u002Fawesome.re)\n\nA curated guide to running models efficiently and reliably: inference fundamentals, engines, research papers, benchmarks and production practices.\n\nThe focus is LLM inference, with dedicated coverage of embeddings, speech, vision and diffusion.\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"assets\u002Finference-landscape.png\">\u003Cimg src=\"assets\u002Finference-landscape.png\" alt=\"Inference Engineering landscape\" width=\"100%\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Ca id=\"start-here\">\u003C\u002Fa>\n\n## Start here\n\nChoose a path, then use the topic index for deeper reading. The order within each path is intentional.\n\n| Your goal | Read in this order | Practical outcome |\n|---|---|---|\n| Learn the fundamentals | [How inference works](#inference-basics) -> [KV cache](#kv-cache-basics) -> [prefill and decode](#prefill-and-decode) -> [batching](#batching-and-scheduling) -> [latency metrics](#latency-metrics) -> [bottleneck analysis](#bottleneck-analysis) | Explain where time and memory go during generation. |\n| Deploy a first model | [Model selection and evaluation](#model-strategy) -> [engine selection](#inference-engines) -> [sizing](#instances-and-interconnects) -> [containers](#containers-and-gpus) -> [benchmarking methodology](#benchmarking-and-profiling) | Serve one model and measure its quality and latency against a representative workload. |\n| Improve production serving | [Benchmarking and profiling](#benchmarking-and-profiling) -> [optimization choices](#optimization-overview) -> [quantization](#quantization) -> [structured output](#structured-output) -> [reliability](#serving-reliability) -> [cost](#cost-and-efficiency) | Identify a bottleneck, change one variable and verify latency, quality and cost. |\n\n\u003Ca id=\"contents\">\u003C\u002Fa>\n\n## Table of contents\n\n- [Start here](#start-here)\n- [1. Inference fundamentals](#fundamentals)\n  - [1.1 What inference is](#inference-basics)\n  - [1.2 Transformers and attention](#transformers-and-attention)\n  - [1.3 The KV cache](#kv-cache-basics)\n  - [1.4 Prefill, decode and serving modes](#prefill-and-decode)\n  - [1.5 Batching and request scheduling](#batching-and-scheduling)\n  - [1.6 Latency and throughput metrics](#latency-metrics)\n  - [1.7 Bottleneck analysis](#bottleneck-analysis)\n  - [1.8 Inference optimization overview](#optimization-overview)\n  - [1.9 Model selection, evaluation and fine-tuning](#model-strategy)\n  - [1.10 Mixture of Experts and state-space models](#model-architectures)\n- [2. Hardware](#hardware)\n  - [2.1 GPU architecture](#gpu-architecture)\n  - [2.2 Accelerators by vendor](#accelerators-by-vendor)\n  - [2.3 Instances, interconnects and sizing](#instances-and-interconnects)\n- [3. Software](#software)\n  - [3.1 Frameworks, runtimes and model formats](#frameworks-and-formats)\n  - [3.2 Inference engines](#inference-engines)\n  - [3.3 Benchmarking and profiling](#benchmarking-and-profiling)\n  - [3.4 Kernel libraries, languages and compilers](#kernel-libraries)\n  - [3.5 GEMM kernels and tile programming](#gemm-kernels)\n- [4. Inference techniques](#inference-techniques)\n  - [4.1 Quantization](#quantization)\n  - [4.2 Speculative decoding](#speculative-decoding)\n  - [4.3 KV-cache reuse, routing and offload](#kv-cache)\n  - [4.4 Long-context handling](#long-context)\n  - [4.5 Parallelism and communication](#parallelism-and-communication)\n  - [4.6 Disaggregation](#disaggregation)\n  - [4.7 Structured output, sampling and tool calling](#structured-output)\n- [5. Multimodal inference](#beyond-llms)\n  - [5.1 Omni-modal inference](#omni-modal-inference)\n  - [5.2 Vision-language models](#vision-language-models)\n  - [5.3 Speech](#speech)\n  - [5.4 Computer vision and video analytics](#vision-and-video-analytics)\n  - [5.5 Image and video generation](#image-and-video-generation)\n- [6. Production inference](#production)\n  - [6.1 Containers and GPU enablement](#containers-and-gpus)\n  - [6.2 Kubernetes serving platforms](#kubernetes-serving)\n  - [6.3 Gateways, routing and autoscaling](#routing-and-autoscaling)\n  - [6.4 Cloud and GPU hosting platforms](#cloud-platforms)\n  - [6.5 Observability, security and debugging](#observability-and-reliability)\n  - [6.6 Cost and efficiency](#cost-and-efficiency)\n  - [6.7 Offline batch inference, RL rollouts and reasoning budgets](#batch-and-rollout)\n  - [6.8 Serving reliability and deployment safety](#serving-reliability)\n- [7. Learning resources](#learning)\n  - [7.1 Courses and books](#courses-and-books)\n  - [7.2 Repositories and reading lists](#repositories-and-reading-lists)\n  - [7.3 Talks](#talks)\n- [Contributing](#contributing)\n- [License](#license)\n\n\u003Ca id=\"fundamentals\">\u003C\u002Fa>\n\n## 1. Inference fundamentals\n\n\u003Ca id=\"inference-basics\">\u003C\u002Fa>\n\n### 1.1 What inference is\n\n- [The Difference Between AI Training and Inference](https:\u002F\u002Fnebius.com\u002Fblog\u002Fposts\u002Fdifference-between-ai-training-and-inference) - How serving a trained model differs from training it.\n- [How LLM Inference Works](https:\u002F\u002Farpitbhayani.me\u002Fblogs\u002Fhow-llm-inference-works\u002F) - Prompt-to-response walkthrough of tokenization, embedding and autoregressive generation.\n\n\u003Ca id=\"transformers-and-attention\">\u003C\u002Fa>\n\n### 1.2 Transformers and attention\n\n- [The Illustrated Transformer](https:\u002F\u002Fjalammar.github.io\u002Fillustrated-transformer\u002F) - Diagram-led walkthrough of self-attention and the encoder-decoder transformer.\n- [FlashAttention](https:\u002F\u002Farxiv.org\u002Fhtml\u002F2205.14135v2) - **Paper, 2022**. IO-aware exact attention that tiles computation to avoid materializing the attention matrix.\n- [FlashAttention-2](https:\u002F\u002Farxiv.org\u002Fabs\u002F2307.08691) - **Paper, 2023**. Better work partitioning and parallelism across thread blocks and warps.\n- [FlashAttention-3](https:\u002F\u002Farxiv.org\u002Fabs\u002F2407.08608) - **Paper, 2024**. Hopper-specific attention using asynchronous tensor cores, TMA and FP8.\n- [Flash-Decoding for Long-Context Inference](https:\u002F\u002Fcrfm.stanford.edu\u002F2023\u002F10\u002F12\u002Fflashdecoding.html) - Splitting the KV sequence across thread blocks to keep the GPU busy during decode.\n- [Fast Transformer Decoding: One Write-Head is All You Need](https:\u002F\u002Farxiv.org\u002Fabs\u002F1911.02150) - **Paper, 2019**. Multi-query attention (MQA), which shares keys and values across heads to shrink the KV cache.\n- [GQA: Training Generalized Multi-Query Transformer Models](https:\u002F\u002Farxiv.org\u002Fabs\u002F2305.13245) - **Paper, 2023**. Grouped-query attention, the middle ground between multi-head and multi-query attention used by most open models.\n- [DeepSeek-V2](https:\u002F\u002Farxiv.org\u002Fabs\u002F2405.04434) - **Paper, 2024**. Introduces multi-head latent attention (MLA), which compresses the KV cache into a low-rank latent.\n\n\u003Ca id=\"kv-cache-basics\">\u003C\u002Fa>\n\n### 1.3 The KV cache\n\n- [KV Caching Explained](https:\u002F\u002Fhuggingface.co\u002Fblog\u002Fnot-lain\u002Fkv-caching) - How caching keys and values speeds up transformer decoding.\n- [What Is a KV Cache, and Why Does It Make LLM Inference Faster?](https:\u002F\u002Fsebastianraschka.com\u002Ffaq\u002Fdocs\u002Fkv-cache.html) - What the KV cache stores and why LLM inference depends on it.\n- [Paged Attention from First Principles](https:\u002F\u002Fhamzaelshafie.bearblog.dev\u002Fpaged-attention-from-first-principles-a-view-inside-vllm\u002F) - PagedAttention explained from virtual-memory basics.\n\n\u003Ca id=\"prefill-and-decode\">\u003C\u002Fa>\n\n### 1.4 Prefill, decode and serving modes\n\n- [Prefill vs Decode](https:\u002F\u002Fredis.io\u002Fblog\u002Fprefill-vs-decode\u002F) - Why prefill often hits compute limits and small-batch decode often hits memory-bandwidth limits; the balance changes with batching and workload.\n- [Using Asynchronous Inference in Production](https:\u002F\u002Fwww.baseten.co\u002Fblog\u002Fusing-asynchronous-inference-in-production) - Queue-based inference for long-running or bursty workloads.\n- [vLLM OpenAI-Compatible Server](https:\u002F\u002Fdocs.vllm.ai\u002Fen\u002Flatest\u002Fserving\u002Fopenai_compatible_server\u002F) - The chat, completions and embeddings endpoints most engines now expose, including streaming responses.\n- [OpenAI-Compatible API](https:\u002F\u002Fhandbook.modular.com\u002Fmodel-interaction\u002Fopenai-compatible-api\u002F) - LLM Inference Handbook chapter on why the OpenAI API shape became the common interface for self-hosted models.\n- [Chat Templates](https:\u002F\u002Fhuggingface.co\u002Fdocs\u002Ftransformers\u002Fmain\u002Fen\u002Fchat_templating) - How chat messages are rendered into the token sequence a model expects; a mismatched template silently degrades output.\n\n\u003Ca id=\"batching-and-scheduling\">\u003C\u002Fa>\n\n### 1.5 Batching and request scheduling\n\n- [Continuous Batching from First Principles](https:\u002F\u002Fhuggingface.co\u002Fblog\u002Fcontinuous_batching) - Hugging Face walkthrough from static batching to iteration-level scheduling.\n- [Continuous Batching: Optimizing LLM Inference Throughput](https:\u002F\u002Fmbrenndoerfer.com\u002Fwriting\u002Fcontinuous-batching) - Interactive explanation of how requests join and leave a running batch.\n- [Efficient Request Queueing](https:\u002F\u002Fhuggingface.co\u002Fblog\u002Ftngtech\u002Fllm-performance-request-queueing) - How queueing in front of an LLM server affects latency and throughput under load.\n- [Orca: A Distributed Serving System for Transformer-Based Generative Models](https:\u002F\u002Fwww.usenix.org\u002Fconference\u002Fosdi22\u002Fpresentation\u002Fyu) - **Paper, 2022**. OSDI paper that introduced iteration-level scheduling, the basis of continuous batching.\n- [Efficient Memory Management for Large Language Model Serving with PagedAttention](https:\u002F\u002Farxiv.org\u002Fabs\u002F2309.06180) - **Paper, 2023**. SOSP 2023 vLLM paper on paging the KV cache to raise batch sizes.\n- [Sarathi-Serve](https:\u002F\u002Farxiv.org\u002Fabs\u002F2403.02310) - **Paper, 2024**. Chunked prefill and stall-free batching to balance throughput against decode latency.\n\n\u003Ca id=\"latency-metrics\">\u003C\u002Fa>\n\n### 1.6 Latency and throughput metrics\n\n- [LLM Inference Benchmarking: Fundamental Concepts](https:\u002F\u002Fdeveloper.nvidia.com\u002Fblog\u002Fllm-benchmarking-fundamental-concepts\u002F) - Definitions of TTFT, inter-token latency, tokens per second and end-to-end latency.\n- [NIM LLM Benchmarking Metrics](https:\u002F\u002Fdocs.nvidia.com\u002Fnim\u002Fbenchmarking\u002Fllm\u002Fmetrics) - How NVIDIA defines and measures TTFT, inter-token latency, throughput and request latency.\n- [Key Metrics for LLM Inference](https:\u002F\u002Fhandbook.modular.com\u002Fllm-inference-basics\u002Fllm-inference-metrics\u002F) - LLM Inference Handbook chapter on latency, throughput, goodput and tail latency, with an interactive TPOT calculator.\n- [Reproducible Performance Metrics for LLM Inference](https:\u002F\u002Fwww.anyscale.com\u002Fblog\u002Freproducible-performance-metrics-for-llm-inference) - Anyscale's case for measuring TTFT, inter-token latency and cost the same way across providers.\n- [vLLM Production Metrics](https:\u002F\u002Fdocs.vllm.ai\u002Fen\u002Flatest\u002Fusage\u002Fmetrics\u002F) - The Prometheus metrics vLLM exposes for queueing, latency, KV-cache usage and throughput.\n\n\u003Ca id=\"bottleneck-analysis\">\u003C\u002Fa>\n\n### 1.7 Bottleneck analysis\n\n- [Transformer Inference Arithmetic](https:\u002F\u002Fkipp.ly\u002Fp\u002Ftransformer-inference-arithmetic) - Back-of-the-envelope compute and memory math for transformer inference.\n- [How Fast Can We Perform a Forward Pass?](https:\u002F\u002Fbounded-regret.ghost.io\u002Fhow-fast-can-we-perform-a-forward-pass\u002F) - Theoretical and practical limits on forward-pass latency.\n- [Making Deep Learning Go Brrrr From First Principles](https:\u002F\u002Fhorace.io\u002Fbrrr_intro.html) - Separates compute, memory-bandwidth and overhead bottlenecks.\n- [A Guide to LLM Inference and Performance](https:\u002F\u002Fwww.baseten.co\u002Fblog\u002Fllm-transformer-inference-guide) - Ops:byte ratio, arithmetic intensity and memory bandwidth applied to choosing a GPU.\n- [What Is the Roofline Model?](https:\u002F\u002Fmodal.com\u002Fgpu-glossary\u002Fperf\u002Froofline-model) - Short definition of the roofline model with a worked diagram.\n- [GPU Performance Background User's Guide](https:\u002F\u002Fdocs.nvidia.com\u002Fdeeplearning\u002Fperformance\u002Fdl-performance-gpu-background\u002Findex.html) - NVIDIA's background guide to math-bound and memory-bound operations.\n- [All About Rooflines](https:\u002F\u002Fjax-ml.github.io\u002Fscaling-book\u002Froofline\u002F) - Roofline analysis and arithmetic intensity applied to model workloads.\n\n\u003Ca id=\"optimization-overview\">\u003C\u002Fa>\n\n### 1.8 Inference optimization overview\n\n- [Mastering LLM Techniques: Inference Optimization](https:\u002F\u002Fdeveloper.nvidia.com\u002Fblog\u002Fmastering-llm-techniques-inference-optimization\u002F) - Prefill and decode, compute and memory limits, batching and KV-cache trade-offs.\n- [Top 5 AI Model Optimization Techniques for Faster, Smarter Inference](https:\u002F\u002Fdeveloper.nvidia.com\u002Fblog\u002Ftop-5-ai-model-optimization-techniques-for-faster-smarter-inference\u002F) - Post-training quantization, quantization-aware training, quantization-aware distillation, speculative decoding and pruning with distillation.\n- [Inference Performance from First Principles](https:\u002F\u002Faleph-alpha.com\u002Fen\u002Fblog\u002Finference-performance-from-first-principles\u002F) - Aleph Alpha's analytical model of prefill and decode bottlenecks across compute, memory movement and communication, for dense and MoE models.\n\n\u003Ca id=\"model-strategy\">\u003C\u002Fa>\n\n### 1.9 Model selection, evaluation and fine-tuning\n\n#### Model selection\n\n- [Choosing the Right Model](https:\u002F\u002Fhandbook.modular.com\u002Fgetting-started\u002Fchoosing-the-right-model\u002F) - Criteria for picking an open model for a given task, size and budget.\n- [LLM Benchmarking Framework with LLM-as-a-JURY](https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fsample-bedrock-migration-and-modernization-tools\u002Fblob\u002Fmain\u002F360-eval\u002FREADME.md) - AWS 360-Eval, which benchmarks candidate models on your own data using a jury of LLM judges.\n\n#### Evaluation\n\n- [LLM Evaluation: A Beginner's Guide](https:\u002F\u002Fwww.evidentlyai.com\u002Fllm-guide\u002Fllm-evaluation) - Evaluation methods for LLM systems, from benchmarks to LLM-as-a-judge.\n- [Langfuse](https:\u002F\u002Fgithub.com\u002Flangfuse\u002Flangfuse) - Open-source platform for tracing, evaluating and monitoring LLM applications.\n- [Arize Phoenix](https:\u002F\u002Fgithub.com\u002FArize-ai\u002Fphoenix) - Open-source LLM tracing and evaluation built on OpenTelemetry.\n- [lm-evaluation-harness](https:\u002F\u002Fgithub.com\u002FEleutherAI\u002Flm-evaluation-harness) - EleutherAI's framework for running standard academic benchmarks against a model.\n- [Lighteval](https:\u002F\u002Fgithub.com\u002Fhuggingface\u002Flighteval) - Hugging Face toolkit for evaluating LLMs across inference backends such as vLLM and SGLang.\n- [DeepEval](https:\u002F\u002Fgithub.com\u002Fconfident-ai\u002Fdeepeval) - Pytest-style framework for unit-testing LLM outputs with metrics and LLM-as-a-judge.\n- [promptfoo](https:\u002F\u002Fgithub.com\u002Fpromptfoo\u002Fpromptfoo) - CLI for testing prompts, models and agents, including red-teaming.\n- [Inspect](https:\u002F\u002Fgithub.com\u002FUKGovernmentBEIS\u002Finspect_ai) - UK AI Security Institute's framework for LLM and agent evaluations.\n\n#### Fine-tuning and adapters\n\n- [PEFT](https:\u002F\u002Fgithub.com\u002Fhuggingface\u002Fpeft) - Parameter-efficient fine-tuning methods such as LoRA, which produce small adapters that engines can serve together on one base model.\n- [TRL](https:\u002F\u002Fgithub.com\u002Fhuggingface\u002Ftrl) - Hugging Face library for supervised fine-tuning, DPO and RL-based post-training.\n- [Unsloth](https:\u002F\u002Fgithub.com\u002Funslothai\u002Funsloth) - Memory-efficient fine-tuning and RL for open models, with export to GGUF and vLLM.\n- [Axolotl](https:\u002F\u002Fgithub.com\u002Faxolotl-ai-cloud\u002Faxolotl) - Config-driven fine-tuning for open models, from LoRA to multi-GPU full fine-tuning.\n- [LlamaFactory](https:\u002F\u002Fgithub.com\u002Fhiyouga\u002FLlamaFactory) - Unified fine-tuning for 100+ LLMs and VLMs with a CLI and web UI.\n\n#### Pruning and distillation\n\n- [LLM Model Pruning and Knowledge Distillation with NVIDIA NeMo Framework](https:\u002F\u002Fdeveloper.nvidia.com\u002Fblog\u002Fllm-model-pruning-and-knowledge-distillation-with-nvidia-nemo-framework\u002F) - Producing a smaller student model through pruning and distillation.\n- [SparseGPT](https:\u002F\u002Farxiv.org\u002Fabs\u002F2301.00774) - **Paper, 2023**. One-shot pruning of large GPT-family models to 50% or more sparsity without retraining.\n- [Wanda](https:\u002F\u002Farxiv.org\u002Fabs\u002F2306.11695) - **Paper, 2023**. Pruning by weight magnitude times input activation, with no retraining or weight updates.\n- [Compact Language Models via Pruning and Knowledge Distillation](https:\u002F\u002Farxiv.org\u002Fabs\u002F2407.14679) - **Paper, 2024**. NVIDIA Minitron recipe for deriving smaller models from a larger one.\n\n\u003Ca id=\"model-architectures\">\u003C\u002Fa>\n\n### 1.10 Mixture of Experts and state-space models\n\n- [Mixture of Experts Explained](https:\u002F\u002Fhuggingface.co\u002Fblog\u002Fmoe) - How sparse expert layers work, and what they change for training and inference.\n- [Mixtral of Experts](https:\u002F\u002Farxiv.org\u002Fabs\u002F2401.04088) - **Paper, 2024**. Sparse MoE model that activates two of eight experts per token.\n- [DeepSeek-V3 Technical Report](https:\u002F\u002Farxiv.org\u002Fabs\u002F2412.19437) - **Paper, 2024**. Large MoE model with MLA, auxiliary-loss-free load balancing and multi-token prediction.\n- [Mamba: Linear-Time Sequence Modeling with Selective State Spaces](https:\u002F\u002Farxiv.org\u002Fabs\u002F2312.00752) - **Paper, 2023**. State-space model with constant-size recurrent state instead of a growing KV cache.\n- [Jamba](https:\u002F\u002Farxiv.org\u002Fabs\u002F2403.19887) - **Paper, 2024**. Hybrid Transformer-Mamba MoE model that interleaves attention and state-space layers.\n- [Gated Delta Networks](https:\u002F\u002Farxiv.org\u002Fabs\u002F2412.06464) - **Paper, 2024**. Linear-attention layer combining gating with the delta rule, used in recent hybrid models.\n- [Nemotron-H](https:\u002F\u002Farxiv.org\u002Fabs\u002F2504.03624) - **Paper, 2025**. NVIDIA's hybrid Mamba-Transformer models that replace most attention layers to cut inference cost.\n- [Hybrid Models as First-Class Citizens in vLLM](https:\u002F\u002Fpytorch.org\u002Fblog\u002Fhybrid-models-as-first-class-citizens-in-vllm\u002F) - How vLLM manages state-space and attention caches together for hybrid models.\n\n\u003Ca id=\"hardware\">\u003C\u002Fa>\n\n## 2. Hardware\n\n\u003Ca id=\"gpu-architecture\">\u003C\u002Fa>\n\n### 2.1 GPU architecture\n\n- [Intro to GPUs for the Researcher](https:\u002F\u002Fhackbot.dad\u002Fwriting\u002Fintro-to-gpus\u002F) - Practical GPU mental model aimed at raising model FLOPS utilization.\n- [How to Think About GPUs](https:\u002F\u002Fjax-ml.github.io\u002Fscaling-book\u002Fgpus\u002F) - How GPU chips and their networks work, and what that means for LLMs.\n- [What Is GPU Memory and Why It Matters for LLM Inference](https:\u002F\u002Fwww.bentoml.com\u002Fblog\u002Fwhat-is-gpu-memory-and-why-it-matters-for-llm-inference) - How weights, KV cache and activations compete for VRAM.\n\n\u003Ca id=\"accelerators-by-vendor\">\u003C\u002Fa>\n\n### 2.2 Accelerators by vendor\n\n#### NVIDIA\n\n- [NVIDIA Hopper Architecture In-Depth](https:\u002F\u002Fdeveloper.nvidia.com\u002Fblog\u002Fnvidia-hopper-architecture-in-depth\u002F) - Architecture guide to the NVIDIA H100 Tensor Core GPU.\n- [Inside NVIDIA Blackwell Ultra](https:\u002F\u002Fdeveloper.nvidia.com\u002Fblog\u002Finside-nvidia-blackwell-ultra-the-chip-powering-the-ai-factory-era\u002F) - Blackwell Ultra architecture, NVFP4 and attention-layer acceleration.\n- [Inside the NVIDIA Vera Rubin Platform](https:\u002F\u002Fdeveloper.nvidia.com\u002Fblog\u002Finside-the-nvidia-rubin-platform-six-new-chips-one-ai-supercomputer\u002F) - Vendor overview of the Vera Rubin rack-scale platform and its chips, including the Vera CPU.\n\n#### AMD\n\n- [AMD CDNA 3 Architecture White Paper](https:\u002F\u002Fwww.amd.com\u002Fcontent\u002Fdam\u002Famd\u002Fen\u002Fdocuments\u002Finstinct-tech-docs\u002Fwhite-papers\u002Famd-cdna-3-white-paper.pdf) - Architecture of the MI300 series, including chiplets and memory.\n- [AMD CDNA 4 Architecture White Paper](https:\u002F\u002Fwww.amd.com\u002Fcontent\u002Fdam\u002Famd\u002Fen\u002Fdocuments\u002Finstinct-tech-docs\u002Fwhite-papers\u002Famd-cdna-4-architecture-whitepaper.pdf) - Architecture of the MI350 series and its low-precision data types.\n- [ROCm Documentation](https:\u002F\u002Frocm.docs.amd.com\u002Fen\u002Flatest\u002F) - Documentation for AMD's ROCm software platform for Instinct accelerators.\n- [AMD Instinct MI300 and MI350 Workload Optimization](https:\u002F\u002Frocm.docs.amd.com\u002Fprojects\u002Fai-ecosystem\u002Fen\u002Flatest\u002Foptimization\u002Fworkload-optimization.html) - AMD's guide to tuning vLLM and other inference workloads on Instinct GPUs.\n\n#### Google TPU\n\n- [Ironwood: The first Google TPU for the age of inference](https:\u002F\u002Fblog.google\u002Finnovation-and-ai\u002Finfrastructure-and-cloud\u002Fgoogle-cloud\u002Fironwood-tpu-age-of-inference\u002F) - Google's announcement of its seventh-generation, inference-focused TPU.\n- [TPU Architecture](https:\u002F\u002Fdocs.cloud.google.com\u002Ftpu\u002Fdocs\u002Fsystem-architecture-tpu-vm) - Official reference for TensorCores, MXUs, slices, pods and multislice topologies.\n- [How to Think About TPUs](https:\u002F\u002Fjax-ml.github.io\u002Fscaling-book\u002Ftpus\u002F) - TPU compute, memory and interconnect explained for model workloads.\n- [vLLM JAX](https:\u002F\u002Fgithub.com\u002Fvllm-project\u002Fvllm-jax) - vLLM's TPU backend with JAX and PyTorch model support (formerly tpu-inference).\n- [JetStream](https:\u002F\u002Fgithub.com\u002FAI-Hypercomputer\u002FJetStream) - Throughput- and memory-optimized LLM inference engine for TPUs and other XLA devices.\n\n#### AWS Trainium and Inferentia\n\n- [AWS Neuron Documentation](https:\u002F\u002Fawsdocs-neuron.readthedocs-hosted.com\u002Fen\u002Flatest\u002F) - SDK, compiler and vLLM integration for AWS Trainium and Inferentia accelerators.\n- [NxD Inference](https:\u002F\u002Fgithub.com\u002Faws-neuron\u002Fneuronx-distributed-inference) - AWS NeuronX Distributed Inference library and model hub for serving LLMs on Trainium and Inferentia.\n\n#### Intel Gaudi\n\n- [Intel Gaudi Documentation](https:\u002F\u002Fdocs.habana.ai\u002Fen\u002Flatest\u002F) - Software stack, PyTorch integration and vLLM support for Intel Gaudi accelerators.\n- [vLLM Gaudi Plugin](https:\u002F\u002Fgithub.com\u002Fvllm-project\u002Fvllm-gaudi) - Community-maintained hardware plugin for running vLLM on Intel Gaudi.\n\n#### Other accelerators\n\n- [Cerebras Inference Documentation](https:\u002F\u002Finference-docs.cerebras.ai\u002F) - API and model documentation for inference on Cerebras wafer-scale systems.\n- [Groq Documentation](https:\u002F\u002Fconsole.groq.com\u002Fdocs\u002Foverview) - API documentation for inference on Groq LPUs.\n- [TT-Metalium](https:\u002F\u002Fgithub.com\u002Ftenstorrent\u002Ftt-metal) - Tenstorrent's low-level programming model and model library for its accelerators.\n- [Qualcomm Efficient Transformers](https:\u002F\u002Fgithub.com\u002Fqualcomm\u002Fefficient-transformers) - Library for porting and running Hugging Face models on Qualcomm Cloud AI 100.\n\n\u003Ca id=\"instances-and-interconnects\">\u003C\u002Fa>\n\n### 2.3 Instances, interconnects and sizing\n\n- [NVLink and NVLink Switch](https:\u002F\u002Fwww.nvidia.com\u002Fen-us\u002Fdata-center\u002Fnvlink\u002F) - Vendor overview of NVIDIA's GPU-to-GPU interconnect and switch fabric.\n- [RoCE networks for distributed AI training at scale](https:\u002F\u002Fengineering.fb.com\u002F2024\u002F08\u002F05\u002Fdata-center-engineering\u002Froce-network-distributed-ai-training-at-scale\u002F) - How Meta designs and runs RDMA over Converged Ethernet networks for its GPU clusters.\n- [NVIDIA InfiniBand](https:\u002F\u002Fwww.nvidia.com\u002Fen-us\u002Fnetworking\u002Fproducts\u002Finfiniband\u002F) - Vendor overview of the InfiniBand fabric used in most multi-node GPU clusters.\n- [GPUDirect RDMA](https:\u002F\u002Fdocs.nvidia.com\u002Fcuda\u002Fgpudirect-rdma\u002Findex.html) - How NICs read and write GPU memory directly, which multi-node KV transfer and expert parallelism rely on.\n- [Amazon EC2 Instance Types](https:\u002F\u002Faws.amazon.com\u002Fec2\u002Finstance-types\u002F) - AWS accelerated-computing families for GPU, Trainium and Inferentia.\n- [Google Cloud GPU Machine Types](https:\u002F\u002Fdocs.cloud.google.com\u002Fcompute\u002Fdocs\u002Fgpus) - GPU models, machine families and regional availability on Compute Engine.\n- [Azure VM Sizes](https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fazure\u002Fvirtual-machines\u002Fsizes\u002Foverview) - Azure VM families, including the GPU-accelerated N-series.\n- [Artificial Analysis Hardware Benchmarks](https:\u002F\u002Fartificialanalysis.ai\u002Fhardware-inference-stack\u002F) - Independent throughput, speed and cost benchmarks of inference hardware, from datacenter systems to laptops and phones.\n- [Calculating GPU Memory for Serving LLMs](https:\u002F\u002Fhandbook.modular.com\u002Fgetting-started\u002Fcalculating-gpu-memory-for-llms\u002F) - LLM Inference Handbook chapter on estimating weight and KV-cache memory before choosing a GPU.\n- [Accelerate Model Memory Estimator](https:\u002F\u002Fhuggingface.co\u002Fdocs\u002Faccelerate\u002Fusage_guides\u002Fmodel_size_estimator) - CLI that estimates a Hub model's memory footprint across precisions without downloading weights.\n- [vLLM Optimization and Tuning](https:\u002F\u002Fdocs.vllm.ai\u002Fen\u002Flatest\u002Fconfiguration\u002Foptimization\u002F) - Runtime controls for memory utilization, preemption, chunked prefill and batch sizes.\n\n\u003Ca id=\"software\">\u003C\u002Fa>\n\n## 3. Software\n\n\u003Ca id=\"frameworks-and-formats\">\u003C\u002Fa>\n\n### 3.1 Frameworks, runtimes and model formats\n\n- [PyTorch](https:\u002F\u002Fgithub.com\u002Fpytorch\u002Fpytorch) - Core framework, including torch.compile and the PyTorch profiler.\n- [JAX](https:\u002F\u002Fgithub.com\u002Fjax-ml\u002Fjax) - Composable transformations and XLA compilation, widely used on TPUs.\n- [Transformers](https:\u002F\u002Fgithub.com\u002Fhuggingface\u002Ftransformers) - Hugging Face model definitions for text, vision, audio and multimodal models, used for both inference and training.\n- [Tokenizers](https:\u002F\u002Fgithub.com\u002Fhuggingface\u002Ftokenizers) - Fast tokenizer implementations used by most open language models.\n- [Common AI Model Formats](https:\u002F\u002Fhuggingface.co\u002Fblog\u002Fngxson\u002Fcommon-ai-model-formats) - Comparison of GGUF, safetensors, PyTorch and ONNX formats.\n- [safetensors](https:\u002F\u002Fgithub.com\u002Fsafetensors\u002Fsafetensors) - Safe, zero-copy tensor serialization format used by most open checkpoints.\n- [GGUF](https:\u002F\u002Fgithub.com\u002Fggml-org\u002Fggml\u002Fblob\u002Fmaster\u002Fdocs\u002Fgguf.md) - Specification of the single-file quantized model format used by llama.cpp.\n- [ONNX Runtime](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fonnxruntime) - Cross-platform inference runtime for ONNX models.\n- [TensorRT](https:\u002F\u002Fgithub.com\u002FNVIDIA\u002FTensorRT) - NVIDIA SDK that compiles and optimizes models for inference on NVIDIA GPUs.\n- [OpenVINO](https:\u002F\u002Fgithub.com\u002Fopenvinotoolkit\u002Fopenvino) - Intel toolkit for optimizing and running models on Intel CPUs, GPUs and NPUs.\n\n\u003Ca id=\"inference-engines\">\u003C\u002Fa>\n\n### 3.2 Inference engines\n\n#### Datacenter serving\n\n- [vLLM](https:\u002F\u002Fgithub.com\u002Fvllm-project\u002Fvllm) - High-throughput, memory-efficient LLM serving engine with continuous batching and PagedAttention.\n- [Inside vLLM](https:\u002F\u002Fwww.aleksagordic.com\u002Fblog\u002Fvllm) - Walkthrough of vLLM internals, from paged attention, continuous batching, prefix caching and speculative decoding to multi-GPU and multi-node serving.\n- [SGLang](https:\u002F\u002Fgithub.com\u002Fsgl-project\u002Fsglang) - High-performance serving framework for language and multimodal models.\n- [TensorRT-LLM](https:\u002F\u002Fgithub.com\u002FNVIDIA\u002FTensorRT-LLM) - NVIDIA library and runtime for optimized LLM inference on NVIDIA GPUs.\n- [Triton Inference Server](https:\u002F\u002Fgithub.com\u002Ftriton-inference-server\u002Fserver) - NVIDIA's multi-framework model server, with TensorRT-LLM, vLLM, PyTorch and ONNX backends.\n- [LMDeploy](https:\u002F\u002Fgithub.com\u002FInternLM\u002Flmdeploy) - Toolkit for compressing, deploying and serving LLMs, built on its own TurboMind and PyTorch inference engines.\n- [mistral.rs](https:\u002F\u002Fgithub.com\u002FEricLBuehler\u002Fmistral.rs) - Fast LLM inference engine written in Rust.\n- [Modular MAX](https:\u002F\u002Fgithub.com\u002Fmodular\u002Fmodular) - Modular's inference framework and serving stack, with kernels written in Mojo.\n- [KTransformers](https:\u002F\u002Fgithub.com\u002Fkvcache-ai\u002Fktransformers) - CPU\u002FGPU hybrid inference that keeps MoE experts in CPU memory to run large MoE models on limited VRAM.\n- [DeepSpeed-MII](https:\u002F\u002Fgithub.com\u002Fdeepspeedai\u002FDeepSpeed-MII) - Microsoft DeepSpeed's inference library, built on DeepSpeed-FastGen.\n- [Text Generation Inference](https:\u002F\u002Fgithub.com\u002Fhuggingface\u002Ftext-generation-inference) - Hugging Face's LLM server. Historical: in maintenance mode and archived.\n\n#### Local and desktop\n\n- [llama.cpp](https:\u002F\u002Fgithub.com\u002Fggml-org\u002Fllama.cpp) - LLM inference in C\u002FC++ for CPUs and GPUs, using the GGUF model format.\n- [Ollama](https:\u002F\u002Fgithub.com\u002Follama\u002Follama) - Downloads and runs open models locally behind a simple API.\n- [llamafile](https:\u002F\u002Fgithub.com\u002Fmozilla-ai\u002Fllamafile) - Packages a model and llama.cpp into a single executable that runs on most operating systems.\n- [LocalAI](https:\u002F\u002Fgithub.com\u002Fmudler\u002FLocalAI) - Self-hosted, OpenAI-compatible server for running LLM, image and audio models locally.\n- [PowerInfer](https:\u002F\u002Fgithub.com\u002FTiiny-AI\u002FPowerInfer) - Consumer-GPU engine exploiting activation sparsity across GPU and CPU.\n- [AirLLM](https:\u002F\u002Fgithub.com\u002Flyogavin\u002Fairllm) - Layer-by-layer loading that runs large models on small GPUs at the cost of latency.\n- [ExLlamaV3](https:\u002F\u002Fgithub.com\u002Fturboderp-org\u002Fexllamav3) - Inference library for quantized models on consumer GPUs, using the EXL3 format.\n- [CTranslate2](https:\u002F\u002Fgithub.com\u002FOpenNMT\u002FCTranslate2) - Optimized C++ and Python runtime for transformer models on CPU and GPU.\n\n#### Apple Silicon\n\n- [MLX](https:\u002F\u002Fgithub.com\u002Fml-explore\u002Fmlx) - Array framework for machine learning on Apple Silicon.\n- [vllm-metal](https:\u002F\u002Fgithub.com\u002Fvllm-project\u002Fvllm-metal) - Community plugin for running vLLM on Apple Silicon GPUs.\n- [On-Device Llama 3.1 with Core ML](https:\u002F\u002Fmachinelearning.apple.com\u002Fresearch\u002Fcore-ml-on-device-llama) - Apple's walkthrough of optimizing an LLM for on-device Core ML inference.\n\n#### Mobile and edge\n\n- [ExecuTorch](https:\u002F\u002Fgithub.com\u002Fpytorch\u002Fexecutorch) - PyTorch runtime for on-device inference on mobile and embedded hardware.\n- [MLC LLM](https:\u002F\u002Fgithub.com\u002Fmlc-ai\u002Fmlc-llm) - Compiler-based deployment of LLMs to phones, browsers and GPUs.\n- [LiteRT-LM](https:\u002F\u002Fgithub.com\u002Fgoogle-ai-edge\u002FLiteRT-LM) - Google AI Edge's open-source inference framework for running LLMs on edge devices.\n- [MediaPipe LLM Inference](https:\u002F\u002Fdevelopers.google.com\u002Fedge\u002Fmediapipe\u002Fsolutions\u002Fgenai\u002Fllm_inference) - Google AI Edge API for running LLMs on Android, iOS and the web.\n\n#### Browser\n\n- [WebLLM](https:\u002F\u002Fgithub.com\u002Fmlc-ai\u002Fweb-llm) - In-browser LLM inference with WebGPU acceleration.\n- [Transformers.js](https:\u002F\u002Fgithub.com\u002Fhuggingface\u002Ftransformers.js) - Runs Hugging Face models in the browser and Node.js on ONNX Runtime, with WebGPU support.\n\n#### Embeddings and rerankers\n\n- [Text Embeddings Inference](https:\u002F\u002Fgithub.com\u002Fhuggingface\u002Ftext-embeddings-inference) - Hugging Face server for embedding, reranker and sequence-classification models.\n- [Infinity](https:\u002F\u002Fgithub.com\u002Fmichaelfeil\u002Finfinity) - OpenAI-compatible server for embedding, reranking and CLIP models.\n- [vLLM Pooling Models](https:\u002F\u002Fdocs.vllm.ai\u002Fen\u002Flatest\u002Fmodels\u002Fpooling_models\u002F) - Serving embedding, classification and reward models in vLLM.\n- [Sentence Transformers: Speeding up Inference](https:\u002F\u002Fsbert.net\u002Fdocs\u002Fsentence_transformer\u002Fusage\u002Fefficiency.html) - ONNX, OpenVINO and quantized backends for embedding models.\n\n\u003Ca id=\"benchmarking-and-profiling\">\u003C\u002Fa>\n\n### 3.3 Benchmarking and profiling\n\n- [GuideLLM](https:\u002F\u002Fgithub.com\u002Fvllm-project\u002Fguidellm) - vLLM project's tool for benchmarking deployments against realistic traffic.\n- [genai-bench](https:\u002F\u002Fgithub.com\u002Fsgl-project\u002Fgenai-bench) - SGLang's token-level benchmark for LLM serving endpoints.\n- [AIPerf](https:\u002F\u002Fgithub.com\u002Fai-dynamo\u002Faiperf) - Generative AI load testing, trace replay and SLO analysis.\n- [MLPerf Inference](https:\u002F\u002Fgithub.com\u002Fmlcommons\u002Finference) - Reference implementations of the MLPerf Inference benchmarks.\n- [Vidur](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvidur) - Simulator that estimates LLM serving performance across configurations without running them.\n- [InferenceX](https:\u002F\u002Fgithub.com\u002FSemiAnalysisAI\u002FInferenceX) - SemiAnalysis's open benchmark that continuously runs inference engines across NVIDIA and AMD hardware (formerly InferenceMAX).\n- [PyTorch Profiler](https:\u002F\u002Fdocs.pytorch.org\u002Ftutorials\u002Frecipes\u002Frecipes\u002Fprofiler_recipe.html) - Recording operator- and kernel-level timings and memory from PyTorch code.\n- [Holistic Trace Analysis](https:\u002F\u002Fgithub.com\u002Ffacebookresearch\u002FHolisticTraceAnalysis) - Meta's library for analyzing PyTorch profiler traces across ranks, including idle time and communication overlap.\n- [Perfetto](https:\u002F\u002Fperfetto.dev\u002F) - Trace viewer used to inspect PyTorch and other Chrome-format traces.\n- [Nsight Systems User Guide](https:\u002F\u002Fdocs.nvidia.com\u002Fnsight-systems\u002FUserGuide\u002Findex.html) - NVIDIA's system-wide timeline profiler for CPU, GPU and communication activity.\n- [ROCm Systems Profiler](https:\u002F\u002Frocm.docs.amd.com\u002Fprojects\u002Frocprofiler-systems\u002Fen\u002Flatest\u002F) - AMD's system-wide timeline profiler for CPU and GPU activity.\n- [Nsight Compute Profiling Guide](https:\u002F\u002Fdocs.nvidia.com\u002Fnsight-compute\u002FProfilingGuide\u002Findex.html) - Profiling CUDA kernels and interpreting hardware metrics.\n- [ROCm Compute Profiler](https:\u002F\u002Frocm.docs.amd.com\u002Fprojects\u002Frocprofiler-compute\u002Fen\u002Flatest\u002F) - Kernel-level performance analysis for AMD Instinct GPUs.\n\n\u003Ca id=\"kernel-libraries\">\u003C\u002Fa>\n\n### 3.4 Kernel libraries, languages and compilers\n\n- [CUTLASS](https:\u002F\u002Fgithub.com\u002FNVIDIA\u002Fcutlass) - CUDA C++ templates and Python DSLs for high-performance GEMM and related kernels.\n- [cuDNN Frontend](https:\u002F\u002Fgithub.com\u002FNVIDIA\u002Fcudnn-frontend) - C++ and Python API for cuDNN graph operations, including fused attention.\n- [FlashAttention](https:\u002F\u002Fgithub.com\u002FDao-AILab\u002Fflash-attention) - Official FlashAttention kernels for NVIDIA and AMD GPUs.\n- [FlashInfer](https:\u002F\u002Fgithub.com\u002Fflashinfer-ai\u002Fflashinfer) - Attention, sampling and MoE kernels for LLM serving, used by vLLM and SGLang.\n- [FlashMLA](https:\u002F\u002Fgithub.com\u002Fdeepseek-ai\u002FFlashMLA) - DeepSeek's multi-head latent attention decoding kernels.\n- [DeepGEMM](https:\u002F\u002Fgithub.com\u002Fdeepseek-ai\u002FDeepGEMM) - DeepSeek's FP8 GEMM kernels with fine-grained scaling, including grouped GEMMs for MoE.\n- [Marlin](https:\u002F\u002Fgithub.com\u002FIST-DASLab\u002Fmarlin) - FP16xINT4 mixed-precision matmul kernel that underpins INT4 serving in vLLM and other engines. Reference code: production kernels ship in vLLM.\n- [ThunderKittens](https:\u002F\u002Fgithub.com\u002FHazyResearch\u002FThunderKittens) - Small embedded DSL of tile primitives for writing fast GPU kernels.\n- [AITER](https:\u002F\u002Fgithub.com\u002FROCm\u002Faiter) - AI Tensor Engine for ROCm: optimized inference operators for AMD GPUs.\n- [Composable Kernel](https:\u002F\u002Fgithub.com\u002FROCm\u002Frocm-libraries\u002Ftree\u002Fdevelop\u002Fprojects\u002Fcomposablekernel) - AMD's templated library for fused GEMM, attention and other operators.\n- [Triton](https:\u002F\u002Fgithub.com\u002Ftriton-lang\u002Ftriton) - Language and compiler for writing GPU kernels in Python.\n- [TileLang](https:\u002F\u002Fgithub.com\u002Ftile-ai\u002Ftilelang) - Tile-level DSL for writing GEMM, attention and other high-performance kernels.\n- [Mojo Manual](https:\u002F\u002Fmojolang.org\u002Fdocs\u002Fmanual\u002F) - Modular's systems language for CPU and GPU kernels.\n- [Introduction to torch.compile](https:\u002F\u002Fdocs.pytorch.org\u002Ftutorials\u002Fintermediate\u002Ftorch_compile_tutorial.html) - PyTorch's JIT compiler, used by vLLM and SGLang to fuse operators.\n- [Getting Started with CUDA Graphs](https:\u002F\u002Fdeveloper.nvidia.com\u002Fblog\u002Fcuda-graphs\u002F) - Capturing and replaying GPU work to cut kernel launch overhead, which matters most in small-batch decode.\n- [FlexAttention](https:\u002F\u002Fpytorch.org\u002Fblog\u002Fflexattention\u002F) - PyTorch API for writing custom attention variants that compile to fused kernels.\n- [CUDA Programming Guide](https:\u002F\u002Fdocs.nvidia.com\u002Fcuda\u002Fcuda-programming-guide\u002Findex.html) - NVIDIA's reference for the CUDA programming model, memory hierarchy and execution.\n- [HIP Documentation](https:\u002F\u002Frocm.docs.amd.com\u002Fprojects\u002FHIP\u002Fen\u002Flatest\u002F) - AMD's C++ GPU programming model and runtime, with a porting path from CUDA.\n- [Gluon Tutorials](https:\u002F\u002Fgithub.com\u002Ftriton-lang\u002Ftriton\u002Ftree\u002Fmain\u002Fpython\u002Ftutorials\u002Fgluon) - Triton's lower-level language for explicit control over layouts and memory.\n- [Apache TVM](https:\u002F\u002Fgithub.com\u002Fapache\u002Ftvm) - Open machine learning compiler framework.\n- [XLA](https:\u002F\u002Fgithub.com\u002Fopenxla\u002Fxla) - Machine learning compiler for GPUs, CPUs and TPUs, used by JAX.\n- [IREE](https:\u002F\u002Fgithub.com\u002Firee-org\u002Firee) - MLIR-based compiler and runtime for deploying models from datacenter to edge.\n\n\u003Ca id=\"gemm-kernels\">\u003C\u002Fa>\n\n### 3.5 GEMM kernels and tile programming\n\n- [How to Optimize a CUDA Matmul Kernel for cuBLAS-like Performance](https:\u002F\u002Fsiboehm.com\u002Farticles\u002F22\u002FCUDA-MMM) - Step-by-step path from a naive kernel to near-cuBLAS performance.\n- [Outperforming cuBLAS on H100](https:\u002F\u002Fcudaforfun.substack.com\u002Fp\u002Foutperforming-cublas-on-h100-a-worklog) - Worklog of Hopper-specific matmul optimizations.\n- [Inside NVIDIA GPUs: Anatomy of High-Performance Matmul Kernels](https:\u002F\u002Fwww.aleksagordic.com\u002Fblog\u002Fmatmul) - From PTX\u002FSASS to warp tiling and asynchronous tensor-core pipelines.\n- [Categorical Foundations for CuTe Layouts](https:\u002F\u002Fresearch.colfax-intl.com\u002Fcategorical-foundations-for-cute-layouts\u002F) - The mathematics behind CuTe's layout algebra.\n- [Demystifying Numeric Conversions in CuTeDSL](https:\u002F\u002Fveitner.bearblog.dev\u002Fdemystifying-numeric-conversions-in-cutedsl\u002F) - Type-conversion primitives in CuTeDSL.\n- [Blackwell Pipelining with CuTeDSL](https:\u002F\u002Fveitner.bearblog.dev\u002Fblackwell-pipelining-with-cutedsl\u002F) - Overlapping work with CuTeDSL asynchronous pipelines on Blackwell.\n\n\u003Ca id=\"inference-techniques\">\u003C\u002Fa>\n\n## 4. Inference techniques\n\n\u003Ca id=\"quantization\">\u003C\u002Fa>\n\n### 4.1 Quantization\n\n#### Guides\n\n- [A Visual Guide to Quantization](https:\u002F\u002Fnewsletter.maartengrootendorst.com\u002Fp\u002Fa-visual-guide-to-quantization) - Illustrated introduction to LLM quantization.\n- [Post Training Quantization](https:\u002F\u002Fliyuan24.github.io\u002Fwritings\u002F2026_01_06_post_training_quantization.html) - Walkthrough of post-training weight quantization.\n- [Quantization-Aware Training for Large Language Models with PyTorch](https:\u002F\u002Fpytorch.org\u002Fblog\u002Fquantization-aware-training\u002F) - Recovering accuracy lost to quantization by simulating it during training.\n\n#### Low-precision formats\n\n- [Microscaling Data Formats for Deep Learning](https:\u002F\u002Farxiv.org\u002Fabs\u002F2310.10537) - **Paper, 2023**. Block-scaled MX formats (MXFP8, MXFP6, MXFP4, MXINT8) with a shared scale per block of elements.\n- [OCP Microscaling Formats (MX) Specification](https:\u002F\u002Fwww.opencompute.org\u002Fdocuments\u002Focp-microscaling-formats-mx-v1-0-spec-final-pdf\u002F) - The Open Compute Project specification for MX data formats.\n- [Introducing NVFP4 for Efficient and Accurate Low-Precision Inference](https:\u002F\u002Fdeveloper.nvidia.com\u002Fblog\u002Fintroducing-nvfp4-for-efficient-and-accurate-low-precision-inference\u002F) - NVIDIA's 4-bit floating-point format for Blackwell and how its two-level scaling differs from MXFP4.\n- [gpt-oss](https:\u002F\u002Fgithub.com\u002Fopenai\u002Fgpt-oss) - OpenAI's open-weight models, released with MXFP4-quantized MoE weights and reference inference code.\n- [llama.cpp Quantization Tool](https:\u002F\u002Fgithub.com\u002Fggml-org\u002Fllama.cpp\u002Fblob\u002Fmaster\u002Ftools\u002Fquantize\u002FREADME.md) - The GGUF quantization types (k-quants, i-quants) and how to produce them.\n\n#### Papers\n\n- [FP8 Formats for Deep Learning](https:\u002F\u002Farxiv.org\u002Fabs\u002F2209.05433) - **Paper, 2022**. The E4M3 and E5M2 FP8 formats now supported by Hopper, Blackwell and MI300 hardware.\n- [GPTQ](https:\u002F\u002Farxiv.org\u002Fabs\u002F2210.17323) - **Paper, 2022**. One-shot weight quantization to 3-4 bits using approximate second-order information.\n- [AWQ](https:\u002F\u002Farxiv.org\u002Fabs\u002F2306.00978) - **Paper, 2023**. Activation-aware weight quantization that protects the most salient weight channels.\n- [SmoothQuant](https:\u002F\u002Farxiv.org\u002Fabs\u002F2211.10438) - **Paper, 2022**. Moving activation outliers into weights to enable W8A8 quantization.\n- [QuaRot](https:\u002F\u002Farxiv.org\u002Fabs\u002F2404.00456) - **Paper, 2024**. Rotating hidden states to remove outliers for end-to-end 4-bit weights, activations and KV cache.\n- [SpinQuant](https:\u002F\u002Farxiv.org\u002Fabs\u002F2405.16406) - **Paper, 2024**. Learned rotations for low-bit weight, activation and KV-cache quantization.\n- [KIVI](https:\u002F\u002Farxiv.org\u002Fabs\u002F2402.02750) - **Paper, 2024**. Tuning-free 2-bit KV-cache quantization, per-channel for keys and per-token for values.\n\n#### Tools\n\n- [LLM Compressor](https:\u002F\u002Fgithub.com\u002Fvllm-project\u002Fllm-compressor) - vLLM project's library for producing GPTQ, AWQ, FP8 and other quantized checkpoints.\n- [NVIDIA Model Optimizer](https:\u002F\u002Fgithub.com\u002FNVIDIA\u002FModel-Optimizer) - Quantization, pruning, distillation and sparsity for deployment with TensorRT-LLM, vLLM and SGLang.\n- [torchao](https:\u002F\u002Fgithub.com\u002Fpytorch\u002Fao) - PyTorch-native quantization and sparsity for training and inference.\n- [bitsandbytes](https:\u002F\u002Fgithub.com\u002Fbitsandbytes-foundation\u002Fbitsandbytes) - 8-bit and 4-bit quantization for PyTorch, widely used for QLoRA.\n- [GPTQModel](https:\u002F\u002Fgithub.com\u002FModelCloud\u002FGPTQModel) - GPTQ quantization toolkit with CUDA, ROCm, XPU and CPU backends.\n- [AutoRound](https:\u002F\u002Fgithub.com\u002Fintel\u002Fauto-round) - Intel's sign-gradient post-training quantization for low-bit LLMs and VLMs.\n\n\u003Ca id=\"speculative-decoding\">\u003C\u002Fa>\n\n### 4.2 Speculative decoding\n\n- [Fast Inference from Transformers via Speculative Decoding](https:\u002F\u002Farxiv.org\u002Fhtml\u002F2211.17192v2) - **Paper, 2022**. Foundational draft-target speculative decoding algorithm with parallel verification.\n- [EAGLE](https:\u002F\u002Fgithub.com\u002FSafeAILab\u002FEAGLE) - Official implementation of the EAGLE-1, EAGLE-2 and EAGLE-3 speculative decoding methods.\n- [Medusa](https:\u002F\u002Fgithub.com\u002FFasterDecoding\u002FMedusa) - Multiple decoding heads for candidate token generation. Reference code: production implementations are available in TensorRT-LLM.\n- [SpecInfer](https:\u002F\u002Farxiv.org\u002Fabs\u002F2305.09781) - **Paper, 2023**. Verifying a tree of speculated tokens in one pass instead of a single sequence.\n- [Better and Faster Large Language Models via Multi-token Prediction](https:\u002F\u002Farxiv.org\u002Fabs\u002F2404.19737) - **Paper, 2024**. Training models to predict several tokens at once, used for self-speculative decoding.\n- [Lookahead Decoding](https:\u002F\u002Fgithub.com\u002Fhao-ai-lab\u002FLookaheadDecoding) - Draft-free parallel decoding using Jacobi iteration and an n-gram pool. Reference code: production implementations are available in TensorRT-LLM.\n- [Prompt Lookup Decoding](https:\u002F\u002Fgithub.com\u002Fapoorvumang\u002Fprompt-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.\n- [MagicDec](https:\u002F\u002Farxiv.org\u002Fabs\u002F2408.11049) - **Paper, 2024**. When speculative decoding still helps at large batch sizes for long-context requests.\n- [vLLM Speculative Decoding](https:\u002F\u002Fdocs.vllm.ai\u002Fen\u002Flatest\u002Ffeatures\u002Fspec_decode\u002F) - Configuring draft-model, n-gram, MTP and EAGLE speculation in vLLM.\n- [Speculators: Production-Ready Speculative Decoding](https:\u002F\u002Fdevelopers.redhat.com\u002Farticles\u002F2025\u002F11\u002F19\u002Fspeculators-standardized-production-ready-speculative-decoding) - Why the speculators library standardizes draft-model formats.\n\n\u003Ca id=\"kv-cache\">\u003C\u002Fa>\n\n### 4.3 KV-cache reuse, routing and offload\n\n- [Prompt Caching](https:\u002F\u002Fngrok.com\u002Fblog\u002Fprompt-caching) - How cached prompt tokens skip recomputation and why that makes them cheaper.\n- [vLLM Automatic Prefix Caching](https:\u002F\u002Fdocs.vllm.ai\u002Fen\u002Flatest\u002Fdesign\u002Fprefix_caching\u002F) - Design of vLLM's hash-based prefix cache.\n- [Fast and Expressive LLM Inference with RadixAttention and SGLang](https:\u002F\u002Fwww.lmsys.org\u002Fblog\u002F2024-01-17-sglang\u002F) - Radix-tree KV-cache reuse across requests in SGLang.\n- [Ray Serve: Reduce LLM Inference Latency by 60% with Custom Request Routing](https:\u002F\u002Fwww.anyscale.com\u002Fblog\u002Fray-serve-faster-first-token-custom-routing) - Prefix-aware routing to cut TTFT in multi-turn chat.\n- [How to Reduce KV Cache Bottlenecks with NVIDIA Dynamo](https:\u002F\u002Fdeveloper.nvidia.com\u002Fblog\u002Fhow-to-reduce-kv-cache-bottlenecks-with-nvidia-dynamo\u002F) - KV-cache offload and reuse in Dynamo.\n- [Inside vLLM's New KV Offloading Connector](https:\u002F\u002Fvllm.ai\u002Fblog\u002F2026-01-08-kv-offloading-connector) - Offloading KV-cache to CPU DRAM and tuning host-to-device throughput.\n- [LMCache](https:\u002F\u002Fgithub.com\u002FLMCache\u002FLMCache) - KV-cache layer that stores and reuses KV cache across GPU, CPU, disk and remote tiers.\n- [PrisKV](https:\u002F\u002Faibrix.github.io\u002Fposts\u002F2025-11-26-priskv-intro\u002F) - Colocated, tiered KV-cache store from the AIBrix project.\n- [kvcached](https:\u002F\u002Fgithub.com\u002Fovg-project\u002Fkvcached) - Elastic, virtualized KV-cache that lets multiple models share a GPU.\n- [Mooncake](https:\u002F\u002Fgithub.com\u002Fkvcache-ai\u002FMooncake) - KV-cache-centric serving platform behind Moonshot AI's Kimi, whose Mooncake Store pools, reuses and offloads KV cache across serving instances.\n\n\u003Ca id=\"long-context\">\u003C\u002Fa>\n\n### 4.4 Long-context handling\n\n- [Rotary Embeddings: A Relative Revolution](https:\u002F\u002Fblog.eleuther.ai\u002Frotary-embeddings\u002F) - Explains RoPE, the position encoding most context-extension methods modify.\n- [RoFormer](https:\u002F\u002Farxiv.org\u002Fabs\u002F2104.09864) - **Paper, 2021**. The paper that introduced rotary position embeddings (RoPE).\n- [YaRN](https:\u002F\u002Farxiv.org\u002Fabs\u002F2309.00071) - **Paper, 2023**. Efficient RoPE scaling for extending a model's context window.\n- [LongRoPE](https:\u002F\u002Farxiv.org\u002Fabs\u002F2402.13753) - **Paper, 2024**. Extending RoPE-based models beyond 2 million tokens.\n- [DroPE](https:\u002F\u002Fpub.sakana.ai\u002FDroPE\u002F) - **Paper, 2025**. Extends context by dropping positional embeddings instead of long-context fine-tuning.\n- [Ring Attention with Blockwise Transformers for Near-Infinite Context](https:\u002F\u002Farxiv.org\u002Fabs\u002F2310.01889) - **Paper, 2023**. Splitting long sequences across devices with blockwise attention passed around a ring.\n- [Efficient Streaming Language Models with Attention Sinks](https:\u002F\u002Farxiv.org\u002Fabs\u002F2309.17453) - **Paper, 2023**. StreamingLLM: keeping initial sink tokens plus a sliding window for unbounded streaming generation.\n- [H2O: Heavy-Hitter Oracle](https:\u002F\u002Farxiv.org\u002Fabs\u002F2306.14048) - **Paper, 2023**. Evicting KV-cache entries that receive little attention.\n- [SnapKV](https:\u002F\u002Fgithub.com\u002FFasterDecoding\u002FSnapKV) - Compressing the KV cache of long prompts by selecting important positions before generation. Reference code: also implemented in kvpress.\n- [kvpress](https:\u002F\u002Fgithub.com\u002FNVIDIA\u002Fkvpress) - NVIDIA library implementing and benchmarking many KV-cache compression methods.\n- [Native Sparse Attention](https:\u002F\u002Farxiv.org\u002Fabs\u002F2502.11089) - **Paper, 2025**. DeepSeek's hardware-aligned, trainable sparse attention for long-context models.\n- [Evaluating Long Context (Reasoning) Ability](https:\u002F\u002Fnrehiew.github.io\u002Fblog\u002Flong_context\u002F) - Why models degrade well before their advertised context length, measured on LongCodeEdit.\n\n\u003Ca id=\"parallelism-and-communication\">\u003C\u002Fa>\n\n### 4.5 Parallelism and communication\n\n- [vLLM Parallelism and Scaling](https:\u002F\u002Fdocs.vllm.ai\u002Fen\u002Flatest\u002Fserving\u002Fparallelism_scaling\u002F) - Configuring tensor, pipeline, data and expert parallelism for single-node and multi-node vLLM deployments.\n- [How Multi-Node Inference Works for Massive LLMs like DeepSeek-R1](https:\u002F\u002Fwww.baseten.co\u002Fblog\u002Fhow-multi-node-inference-works-llms-deepseek-r1) - A DeepSeek-R1 deployment using 16 H100s across two nodes, explaining the memory and communication choices in that configuration.\n- [Megatron-LM](https:\u002F\u002Farxiv.org\u002Fabs\u002F1909.08053) - **Paper, 2019**. The paper that defined intra-layer tensor parallelism for transformers.\n- [Shift Parallelism](https:\u002F\u002Farxiv.org\u002Fhtml\u002F2509.16495v2) - **Paper, 2025**. Switching between tensor and data parallelism to balance latency and throughput.\n- [vLLM Large Scale Serving: DeepSeek @ 2.2k tok\u002Fs\u002FH200 with Wide-EP](https:\u002F\u002Fvllm.ai\u002Fblog\u002F2025-12-17-large-scale-serving) - Wide expert parallelism, dual-batch overlap and disaggregated serving for DeepSeek on H200 clusters.\n- [NCCL](https:\u002F\u002Fgithub.com\u002FNVIDIA\u002Fnccl) - NVIDIA collective communication library for multi-GPU and multi-node transfers.\n- [RCCL](https:\u002F\u002Fgithub.com\u002FROCm\u002Frocm-systems\u002Ftree\u002Fdevelop\u002Fprojects\u002Frccl) - AMD's collective communication library for ROCm GPUs.\n- [NVSHMEM](https:\u002F\u002Fdeveloper.nvidia.com\u002Fnvshmem) - NVIDIA's GPU-initiated communication library, used by DeepEP and other MoE kernels.\n- [DeepEP](https:\u002F\u002Fgithub.com\u002Fdeepseek-ai\u002FDeepEP) - Expert-parallel communication library for MoE dispatch and combine.\n- [UCCL](https:\u002F\u002Fgithub.com\u002Fuccl-project\u002Fuccl) - GPU communication library for collectives, P2P KV transfer and expert parallelism.\n- [llm-d Wide Expert Parallelism](https:\u002F\u002Fllm-d.ai\u002Fdocs\u002Farchitecture\u002Fdisaggregation\u002Fwide-expert-parallelism) - How llm-d deploys large MoE models with data and expert parallelism across nodes.\n\n\u003Ca id=\"disaggregation\">\u003C\u002Fa>\n\n### 4.6 Disaggregation\n\n- [Disaggregated Inference at Scale with PyTorch and vLLM](https:\u002F\u002Fpytorch.org\u002Fblog\u002Fdisaggregated-inference-at-scale-with-pytorch-vllm\u002F) - Running separate prefill and decode pools with vLLM.\n- [DistServe](https:\u002F\u002Farxiv.org\u002Fabs\u002F2401.09670) - **Paper, 2024**. OSDI 2024 paper on placing prefill and decode on separate GPUs to meet TTFT and TPOT targets.\n- [Splitwise](https:\u002F\u002Farxiv.org\u002Fabs\u002F2311.18677) - **Paper, 2023**. Splitting prompt and token phases onto different machines, including different GPU types.\n- [Disaggregated Serving in TensorRT-LLM](https:\u002F\u002Fgithub.com\u002FNVIDIA\u002FTensorRT-LLM\u002Fblob\u002Fmain\u002Fdocs\u002Fsource\u002Fblogs\u002Ftech_blog\u002Fblog05_Disaggregated_Serving_in_TensorRT-LLM.md) - TensorRT-LLM's disaggregated serving design.\n- [SGLang PD Disaggregation](https:\u002F\u002Fdocs.sglang.io\u002Fdocs\u002Fadvanced_features\u002Fpd_disaggregation) - Configuring prefill\u002Fdecode disaggregation in SGLang.\n- [NVIDIA Dynamo](https:\u002F\u002Fgithub.com\u002Fai-dynamo\u002Fdynamo) - Datacenter-scale distributed inference serving framework with disaggregated prefill and decode.\n- [NIXL](https:\u002F\u002Fgithub.com\u002Fai-dynamo\u002Fnixl) - NVIDIA Inference Xfer Library for moving KV cache between GPUs, nodes and storage, used by Dynamo, vLLM and llm-d.\n- [llm-d Architecture](https:\u002F\u002Fllm-d.ai\u002Fdocs\u002Farchitecture) - Component design and topology of llm-d.\n- [llm-d](https:\u002F\u002Fgithub.com\u002Fllm-d\u002Fllm-d) - Kubernetes-native distributed LLM inference with KV-cache-aware scheduling.\n- [llm-d P\u002FD Disaggregation](https:\u002F\u002Fllm-d.ai\u002Fdocs\u002Farchitecture\u002Fdisaggregation\u002Fpd-disaggregation) - When to split prefill and decode in llm-d and how KV-cache is transferred between them.\n\n\u003Ca id=\"structured-output\">\u003C\u002Fa>\n\n### 4.7 Structured output, sampling and tool calling\n\n- [How to Generate Text](https:\u002F\u002Fhuggingface.co\u002Fblog\u002Fhow-to-generate) - Greedy search, beam search, top-k and top-p sampling compared.\n- [Inference Parameters](https:\u002F\u002Fhandbook.modular.com\u002Fmodel-interaction\u002Finference-parameters\u002F) - LLM Inference Handbook chapter on temperature, top-p, penalties and other generation controls.\n- [Min-p Sampling](https:\u002F\u002Farxiv.org\u002Fabs\u002F2407.01082) - **Paper, 2024**. Truncating the token distribution relative to the top token's probability.\n- [XGrammar](https:\u002F\u002Fgithub.com\u002Fmlc-ai\u002Fxgrammar) - Fast grammar-constrained decoding engine, integrated into serving engines including vLLM and SGLang; backend defaults depend on engine version.\n- [llguidance](https:\u002F\u002Fgithub.com\u002Fguidance-ai\u002Fllguidance) - Low-latency constrained decoding for JSON schemas, regular expressions and context-free grammars.\n- [Outlines](https:\u002F\u002Fgithub.com\u002Fdottxt-ai\u002Foutlines) - Library for generating structured output from LLMs using regex, JSON schemas and grammars.\n- [LM Format Enforcer](https:\u002F\u002Fgithub.com\u002Fnoamgat\u002Flm-format-enforcer) - Enforcing JSON schema or regex output by filtering allowed tokens.\n- [vLLM Structured Outputs](https:\u002F\u002Fdocs.vllm.ai\u002Fen\u002Flatest\u002Ffeatures\u002Fstructured_outputs\u002F) - Guided JSON, regex, choice and grammar decoding in vLLM.\n- [vLLM Tool Calling](https:\u002F\u002Fdocs.vllm.ai\u002Fen\u002Flatest\u002Ffeatures\u002Ftool_calling\u002F) - How vLLM parses model-specific tool-call formats into OpenAI-compatible responses.\n- [vLLM Reasoning Outputs](https:\u002F\u002Fdocs.vllm.ai\u002Fen\u002Flatest\u002Ffeatures\u002Freasoning_outputs\u002F) - Separating reasoning content from the final answer for reasoning models.\n\n\u003Ca id=\"beyond-llms\">\u003C\u002Fa>\n\n## 5. Multimodal inference\n\n\u003Ca id=\"omni-modal-inference\">\u003C\u002Fa>\n\n### 5.1 Omni-modal inference\n\n- [What Is an Omni-Model?](https:\u002F\u002Fwww.nvidia.com\u002Fen-us\u002Fglossary\u002Fomni-model\u002F) - NVIDIA definition of models that take and produce several modalities.\n- [Qwen2.5-Omni Technical Report](https:\u002F\u002Farxiv.org\u002Fabs\u002F2503.20215) - **Paper, 2025**. Thinker-talker architecture that reads text, images, audio and video and streams speech back.\n- [Qwen3-Omni](https:\u002F\u002Fgithub.com\u002FQwenLM\u002FQwen3-Omni) - End-to-end omni-modal model that understands text, audio, images and video and generates speech in real time.\n- [vLLM-Omni](https:\u002F\u002Fgithub.com\u002Fvllm-project\u002Fvllm-omni) - vLLM framework for serving omni-modal models.\n- [vLLM-Omni: Fully Disaggregated Serving for Any-to-Any Multimodal Models](https:\u002F\u002Farxiv.org\u002Fabs\u002F2602.02204) - **Paper, 2026**. Paper on serving multimodal pipelines as independently scheduled stages.\n\n\u003Ca id=\"vision-language-models\">\u003C\u002Fa>\n\n### 5.2 Vision-language models\n\n- [Vision Language Models Explained](https:\u002F\u002Fhuggingface.co\u002Fblog\u002Fvlms) - Hugging Face introduction to VLM architectures, training and how to choose one.\n- [Vision Language Models (Better, Faster, Stronger)](https:\u002F\u002Fhuggingface.co\u002Fblog\u002Fvlms-2025) - Hugging Face update on newer VLM trends, including any-to-any models, reasoning, small models and MoE decoders.\n- [Vision Language Models](https:\u002F\u002Fwww.baseten.co\u002Finference-engineering\u002Fbook\u002F06-modalities\u002Fvision-language-models) - Inference Engineering book chapter on serving models that take images and video, and the cost of the vision encoder.\n- [vLLM Multimodal Inputs](https:\u002F\u002Fdocs.vllm.ai\u002Fen\u002Flatest\u002Ffeatures\u002Fmultimodal_inputs\u002F) - Passing images, video and audio to multimodal models in vLLM.\n- [Vision Language Model Prompt Engineering Guide for Image and Video Understanding](https:\u002F\u002Fdeveloper.nvidia.com\u002Fblog\u002Fvision-language-model-prompt-engineering-guide-for-image-and-video-understanding\u002F) - NVIDIA guide to feeding single images, multiple images and video frames to VLMs.\n\n\u003Ca id=\"speech\">\u003C\u002Fa>\n\n### 5.3 Speech\n\n- [Robust Speech Recognition via Large-Scale Weak Supervision](https:\u002F\u002Farxiv.org\u002Fabs\u002F2212.04356) - **Paper, 2022**. The Whisper paper.\n- [Silero VAD](https:\u002F\u002Fgithub.com\u002Fsnakers4\u002Fsilero-vad) - Lightweight voice activity detector for finding speech before transcription.\n- [faster-whisper](https:\u002F\u002Fgithub.com\u002FSYSTRAN\u002Ffaster-whisper) - Whisper transcription reimplemented on CTranslate2 for faster inference.\n- [whisper.cpp](https:\u002F\u002Fgithub.com\u002Fggml-org\u002Fwhisper.cpp) - Port of Whisper to C\u002FC++ for CPU, GPU and on-device transcription.\n- [WhisperX](https:\u002F\u002Fgithub.com\u002Fm-bain\u002FwhisperX) - Batched Whisper transcription with word-level timestamps and speaker diarization.\n- [NeMo Speech](https:\u002F\u002Fgithub.com\u002FNVIDIA-NeMo\u002FSpeech) - NVIDIA's speech toolkit, home of the Parakeet and Canary ASR models.\n- [sherpa-onnx](https:\u002F\u002Fgithub.com\u002Fk2-fsa\u002Fsherpa-onnx) - Offline streaming ASR, TTS, VAD and diarization on ONNX Runtime for mobile, embedded and server targets.\n- [Piper](https:\u002F\u002Fgithub.com\u002FOHF-Voice\u002Fpiper1-gpl) - Fast, local neural text-to-speech engine.\n- [Kokoro](https:\u002F\u002Fgithub.com\u002Fhexgrad\u002Fkokoro) - Small 82M-parameter open-weight text-to-speech model.\n- [Pipecat](https:\u002F\u002Fgithub.com\u002Fpipecat-ai\u002Fpipecat) - Open-source framework for real-time voice and multimodal agents that chains streaming ASR, LLM and TTS services.\n- [LiveKit Agents](https:\u002F\u002Fgithub.com\u002Flivekit\u002Fagents) - Framework for real-time voice AI agents over WebRTC, with turn detection and interruption handling.\n- [What Is Speech-to-Speech?](https:\u002F\u002Fdeepgram.com\u002Fblog\u002Fwhat-is-speech-to-speech) - Cascaded versus end-to-end speech-to-speech pipelines and where each fits.\n- [Moshi](https:\u002F\u002Fgithub.com\u002Fkyutai-labs\u002Fmoshi) - Speech-text foundation model and full-duplex dialogue framework with a streaming audio codec.\n\n\u003Ca id=\"vision-and-video-analytics\">\u003C\u002Fa>\n\n### 5.4 Computer vision and video analytics\n\n- [Ultralytics YOLO](https:\u002F\u002Fgithub.com\u002Fultralytics\u002Fultralytics) - Training, export and inference for YOLO detection, segmentation, pose and tracking models.\n- [Ultralytics Export Formats](https:\u002F\u002Fdocs.ultralytics.com\u002Fmodes\u002Fexport) - Exporting YOLO models to ONNX, TensorRT, OpenVINO, Core ML and other deployment formats.\n- [Triton Inference Server with Ultralytics YOLO](https:\u002F\u002Fdocs.ultralytics.com\u002Fguides\u002Ftriton-inference-server) - Exporting a YOLO model to ONNX and serving it from a Triton model repository.\n- [NVIDIA DeepStream SDK](https:\u002F\u002Fgithub.com\u002FNVIDIA\u002FDeepStream) - GStreamer-based toolkit for multi-stream video analytics pipelines on NVIDIA GPUs and Jetson.\n- [DeepStream-Yolo](https:\u002F\u002Fgithub.com\u002Fmarcoslucianops\u002FDeepStream-Yolo) - Community implementation for running YOLO models inside DeepStream pipelines.\n- [Savant](https:\u002F\u002Fgithub.com\u002Finsight-platform\u002FSavant) - Python framework for video analytics pipelines, built on DeepStream for NVIDIA GPUs and Jetson.\n- [DL Streamer](https:\u002F\u002Fgithub.com\u002Fopen-edge-platform\u002Fdlstreamer) - Intel's GStreamer-based pipeline framework for video analytics on Intel CPUs, GPUs and NPUs.\n- [Roboflow Inference](https:\u002F\u002Fgithub.com\u002Froboflow\u002Finference) - Self-hosted server for running vision models and video-stream workflows on cloud or edge devices.\n\n\u003Ca id=\"image-and-video-generation\">\u003C\u002Fa>\n\n### 5.5 Image and video generation\n\n- [Diffusion Models](https:\u002F\u002Fhuggingface.co\u002Fblog\u002FEsmail-AGumaan\u002Fdiffusion-models) - Introductory explanation of how diffusion models are trained and sampled.\n- [Diffusers](https:\u002F\u002Fgithub.com\u002Fhuggingface\u002Fdiffusers) - Hugging Face library of diffusion models and pipelines for image, video and audio generation.\n- [ComfyUI](https:\u002F\u002Fgithub.com\u002FComfy-Org\u002FComfyUI) - Node-graph interface, API and backend for running diffusion pipelines.\n- [SGLang Diffusion](https:\u002F\u002Fwww.lmsys.org\u002Fblog\u002F2025-11-07-sglang-diffusion\u002F) - SGLang's serving stack applied to image and video generation.\n- [xDiT](https:\u002F\u002Fgithub.com\u002Fxdit-project\u002FxDiT) - Parallel inference engine for diffusion transformers, splitting image and video generation across GPUs.\n- [FastVideo](https:\u002F\u002Fgithub.com\u002Fhao-ai-lab\u002FFastVideo) - Inference and post-training framework for accelerated video generation.\n- [vLLM-Omni Diffusion Guide](https:\u002F\u002Fgithub.com\u002Fvllm-project\u002Fvllm-omni\u002Ftree\u002Fmain\u002Fdocs\u002Fuser_guide\u002Fdiffusion) - Attention backends and acceleration options for diffusion models in vLLM-Omni.\n- [stable-diffusion.cpp](https:\u002F\u002Fgithub.com\u002Fleejet\u002Fstable-diffusion.cpp) - Diffusion model inference in C\u002FC++ on ggml, for CPUs and consumer GPUs.\n- [Latent Consistency Models](https:\u002F\u002Farxiv.org\u002Fabs\u002F2310.04378) - **Paper, 2023**. Distilling diffusion models to generate images in a few sampling steps.\n- [DeepCache](https:\u002F\u002Fgithub.com\u002Fhorseee\u002FDeepCache) - Training-free acceleration by reusing high-level U-Net features across denoising steps.\n- [TeaCache](https:\u002F\u002Fgithub.com\u002Fali-vilab\u002FTeaCache) - Training-free caching that skips redundant timesteps in video and image diffusion models.\n- [Nunchaku](https:\u002F\u002Fgithub.com\u002Fnunchux-ai\u002Fnunchaku) - 4-bit inference engine for diffusion models based on SVDQuant.\n\n\u003Ca id=\"production\">\u003C\u002Fa>\n\n## 6. Production inference\n\n\u003Ca id=\"containers-and-gpus\">\u003C\u002Fa>\n\n### 6.1 Containers and GPU enablement\n\n- [NVIDIA Container Toolkit](https:\u002F\u002Fgithub.com\u002FNVIDIA\u002Fnvidia-container-toolkit) - Runtime hooks that expose NVIDIA GPUs to containers.\n- [AMD Container Toolkit](https:\u002F\u002Fgithub.com\u002FROCm\u002Fcontainer-toolkit) - Runtime and tools that expose AMD GPUs to containers.\n- [NVIDIA NIM](https:\u002F\u002Fdocs.nvidia.com\u002Fnim\u002F) - Prebuilt, optimized inference microservice containers for NVIDIA GPUs.\n- [BentoML](https:\u002F\u002Fgithub.com\u002Fbentoml\u002FBentoML) - Framework for packaging models as inference APIs, job queues and multi-model pipelines.\n- [NVIDIA Device Plugin](https:\u002F\u002Fgithub.com\u002FNVIDIA\u002Fk8s-device-plugin) - Exposes NVIDIA GPUs as schedulable Kubernetes resources.\n- [NVIDIA GPU Operator](https:\u002F\u002Fgithub.com\u002FNVIDIA\u002Fgpu-operator) - Installs and manages NVIDIA drivers, device plugin and monitoring on Kubernetes.\n- [AMD GPU Device Plugin](https:\u002F\u002Fgithub.com\u002FROCm\u002Fk8s-device-plugin) - Exposes AMD GPUs as schedulable Kubernetes resources.\n- [AMD GPU Operator](https:\u002F\u002Fgithub.com\u002FROCm\u002Fgpu-operator) - Installs and manages AMD GPU drivers, device plugin and metrics on Kubernetes.\n\n#### Model loading and cold starts\n\n- [Model Streamer](https:\u002F\u002Fgithub.com\u002Fdsx-ai-factory\u002Fmodel-streamer) - Concurrent streaming of safetensors weights from object storage or disk into GPU memory (formerly Run:ai Model Streamer).\n- [fastsafetensors](https:\u002F\u002Fgithub.com\u002Ffoundation-model-stack\u002Ffastsafetensors) - Faster safetensors loading using GPUDirect Storage and parallel reads.\n- [Tensorizer](https:\u002F\u002Fgithub.com\u002Fcoreweave\u002Ftensorizer) - CoreWeave's serialization format and loader for streaming model weights from HTTP, S3 or disk.\n\n#### Model artifact packaging and delivery\n\n- [KServe OCI Storage (Modelcars)](https:\u002F\u002Fkserve.github.io\u002Fwebsite\u002Fdocs\u002Fmodel-serving\u002Fstorage\u002Fproviders\u002Foci) - Packaging models as OCI images so nodes cache and share them like container layers.\n- [Kubernetes Image Volumes](https:\u002F\u002Fkubernetes.io\u002Fdocs\u002Ftasks\u002Fconfigure-pod-container\u002Fimage-volumes\u002F) - Mounting an OCI image as a read-only volume, which lets model weights ship separately from the serving image.\n- [ModelPack Model Spec](https:\u002F\u002Fgithub.com\u002Fmodelpack\u002Fmodel-spec) - Open specification for packaging and distributing models as OCI artifacts.\n- [KitOps](https:\u002F\u002Fgithub.com\u002Fkitops-ml\u002Fkitops) - CNCF tool for packaging and versioning models, datasets and configuration as OCI artifacts.\n\n\u003Ca id=\"kubernetes-serving\">\u003C\u002Fa>\n\n### 6.2 Kubernetes serving platforms\n\n- [KServe](https:\u002F\u002Fgithub.com\u002Fkserve\u002Fkserve) - Kubernetes platform for deploying generative and predictive models across frameworks.\n- [Ray](https:\u002F\u002Fgithub.com\u002Fray-project\u002Fray) - Distributed compute engine whose Ray Serve library serves models at scale.\n- [vLLM Production Stack](https:\u002F\u002Fgithub.com\u002Fvllm-project\u002Fproduction-stack) - vLLM's reference system for Kubernetes-native, cluster-wide deployment.\n- [AIBrix](https:\u002F\u002Fgithub.com\u002Fvllm-project\u002Faibrix) - vLLM project's Kubernetes control plane for LLM serving, with LoRA management, routing and autoscaling.\n- [KAITO](https:\u002F\u002Fgithub.com\u002Fkaito-project\u002Fkaito) - CNCF Kubernetes AI Toolchain Operator that provisions GPU nodes and deploys open models.\n- [HAMi](https:\u002F\u002Fgithub.com\u002FProject-HAMi\u002FHAMi) - CNCF project for sharing and isolating heterogeneous GPUs on Kubernetes.\n- [LeaderWorkerSet](https:\u002F\u002Fgithub.com\u002Fkubernetes-sigs\u002Flws) - Kubernetes API for deploying a group of pods as one unit, used for multi-node inference.\n- [Kueue](https:\u002F\u002Fgithub.com\u002Fkubernetes-sigs\u002Fkueue) - Kubernetes job queueing and quota management for sharing GPU capacity across teams.\n\n#### GPU sharing and allocation\n\n- [NVIDIA Multi-Instance GPU User Guide](https:\u002F\u002Fdocs.nvidia.com\u002Fdatacenter\u002Ftesla\u002Fmig-user-guide\u002Flatest\u002F) - Partitioning a GPU into isolated instances with dedicated memory and compute.\n- [GPU Operator: GPU Sharing](https:\u002F\u002Fdocs.nvidia.com\u002Fdatacenter\u002Fcloud-native\u002Fgpu-operator\u002Flatest\u002Fgpu-sharing.html) - Configuring time-slicing so several pods share one GPU on Kubernetes.\n- [Kubernetes Dynamic Resource Allocation](https:\u002F\u002Fkubernetes.io\u002Fdocs\u002Fconcepts\u002Fresource-management\u002Fdynamic-resource-allocation\u002F) - The Kubernetes API for requesting and sharing devices such as GPUs with structured parameters.\n- [DRA Driver for NVIDIA GPUs](https:\u002F\u002Fgithub.com\u002Fkubernetes-sigs\u002Fdra-driver-nvidia-gpu) - Kubernetes DRA driver that allocates NVIDIA GPUs, MIG devices and shared GPUs.\n\n\u003Ca id=\"routing-and-autoscaling\">\u003C\u002Fa>\n\n### 6.3 Gateways, routing and autoscaling\n\n- [The Baseten Inference Stack](https:\u002F\u002Fwww.baseten.co\u002Fresources\u002Fguide\u002Fthe-baseten-inference-stack) - Runtime and infrastructure layers of a production stack, including geo-aware load balancing.\n- [LiteLLM](https:\u002F\u002Fgithub.com\u002FBerriAI\u002Flitellm) - AI gateway and SDK that calls 100+ LLM APIs in OpenAI format, with load balancing and cost tracking.\n- [Agent Router (formerly Envoy AI Gateway)](https:\u002F\u002Fgithub.com\u002Ftheagentrouter\u002Fagent-router) - Unified access to generative AI services, built on Envoy Gateway.\n- [Portkey Gateway](https:\u002F\u002Fgithub.com\u002FPortkey-AI\u002Fgateway) - Open-source AI gateway with routing, retries, fallbacks and guardrails across LLM providers.\n- [Gateway API Inference Extension](https:\u002F\u002Fgithub.com\u002Fkubernetes-sigs\u002Fgateway-api-inference-extension) - Kubernetes SIG project that adds model-aware routing to Gateway API through InferencePool.\n- [llm-d Router](https:\u002F\u002Fgithub.com\u002Fllm-d\u002Fllm-d-router) - llm-d's scheduler that routes requests by prefix-cache hits, load and predicted latency.\n- [KEDA](https:\u002F\u002Fgithub.com\u002Fkedacore\u002Fkeda) - Event-driven Kubernetes autoscaler, often used to scale inference pods on queue depth.\n- [Karpenter](https:\u002F\u002Fgithub.com\u002Fkubernetes-sigs\u002Fkarpenter) - Kubernetes node autoscaler that provisions GPU nodes to fit pending pods.\n- [vLLM LoRA Adapters](https:\u002F\u002Fdocs.vllm.ai\u002Fen\u002Flatest\u002Ffeatures\u002Flora\u002F) - Serving many LoRA adapters on one base model and routing requests to them.\n- [S-LoRA](https:\u002F\u002Farxiv.org\u002Fabs\u002F2311.03285) - **Paper, 2023**. Serving thousands of concurrent LoRA adapters with unified paging of adapter weights and KV cache.\n- [Punica](https:\u002F\u002Farxiv.org\u002Fabs\u002F2310.18547) - **Paper, 2023**. Batching requests for different LoRA adapters with a custom segmented-gather kernel.\n- [vLLM Semantic Router](https:\u002F\u002Fgithub.com\u002Fvllm-project\u002Fsemantic-router) - Programmable layer that classifies requests and routes them to the right model.\n- [Autoscaling Endpoints for LLM Inference](https:\u002F\u002Fwww.together.ai\u002Fblog\u002Fautoscaling-endpoints-for-llm-inference) - Choosing scaling metrics, tuning scaling windows and budgeting for cold starts.\n- [vLLM: Why Requests Take Hours Under Load](https:\u002F\u002Fblog.dotieuthien.com\u002Fposts\u002Fvllm) - Diagnosing KV block exhaustion and queue starvation.\n\n\u003Ca id=\"cloud-platforms\">\u003C\u002Fa>\n\n### 6.4 Cloud and GPU hosting platforms\n\n#### Choosing a hosting model\n\n- [Serverless vs. Self-hosted LLM Inference](https:\u002F\u002Fhandbook.modular.com\u002Fgetting-started\u002Fserverless-vs-self-hosted-llm-inference\u002F) - Trade-offs between managed APIs and self-hosted deployments in control, cost, scaling and compliance.\n- [Bring Your Own Cloud](https:\u002F\u002Fhandbook.modular.com\u002Fgetting-started\u002Fbring-your-own-cloud\u002F) - The middle ground of managed serving software running in your own cloud account.\n- [On-Prem LLM Deployments](https:\u002F\u002Fhandbook.modular.com\u002Fgetting-started\u002Fon-prem-llms\u002F) - When on-premises inference makes sense and what it requires to operate.\n\n#### AWS (EKS)\n\n- [Load and Serve Models on Amazon EKS](https:\u002F\u002Fdocs.aws.amazon.com\u002Feks\u002Flatest\u002Fuserguide\u002Fml-inference-load-serve-model.html) - Deploying vLLM on GPUs and streaming weights from S3 with the Run:ai Model Streamer to cut cold starts.\n- [EKS Best Practices: Application Scaling and Performance](https:\u002F\u002Fdocs.aws.","这是一个专注于推理工程（Inference Engineering）的精选资源列表，系统整理了大语言模型（LLM）及多模态模型（如嵌入、语音、视觉、扩散模型）高效、可靠推理所需的工具、论文与实践指南。核心内容涵盖推理基础原理（KV缓存、prefill\u002Fdecode、批处理与调度）、主流推理引擎对比、硬件选型、量化与优化技术、性能基准测试方法及生产级可靠性与成本控制策略。适用于AI工程师、MLOps团队和基础设施研发人员在模型部署、服务优化与规模化推理场景中快速获取权威参考与落地路径。","2026-11-24 04:43:50","CREATED_QUERY"]