Inference Engineering

Language

CUDA

53 entries · 11 sections

Editor’s pick

II Inference Engines 4

  1. LMDeploy Tool

    Toolkit pairing the C++ TurboMind engine with a PyTorch engine, with weight and KV-cache quantization and Ascend support.

    Datacenter Engines · Apache-2.0 · 8.2k stars · Updated 2026-11

  2. DeepInfer Tool

    DeepSeek's production engine, released for offline inference with expert parallelism, batch invariance, and Blackwell and Ascend support.

    Datacenter Engines · Apache-2.0 · 26k stars · Updated 2026-11

  3. ExLlamaV3 Library

    Inference library for consumer NVIDIA GPUs built around the QTIP-based EXL3 format, with tensor parallelism and TabbyAPI as its server.

    Local & Desktop Runtimes · MIT · 1.9k stars · Updated 2026-11

  4. tiny-vllm Tool

    Course plus C++/CUDA codebase that builds a small vLLM-style server step by step, from safetensors loading to paged attention.

    Minimal & Educational Engines · Apache-2.0 · 1.2k stars · Updated 2026-11

III Distributed Serving & Orchestration 1

  1. cuda-checkpoint Tool

    Command-line utility that suspends and restores CUDA state in a running process; paired with CRIU it snapshots GPU processes for faster restarts.

    Model Packaging, Loading & Cold Starts · proprietary · 510 stars · Updated 2026-11

V Model Compression 1

  1. bitsandbytes Library

    Reference code for LLM.int8() outlier-aware 8-bit matmul and the NF4 4-bit format from QLoRA, applied at load time in Transformers without calibration.

    Quantization Toolkits · MIT · 8.5k stars · Updated 2026-11

IX Kernels & GPU Programming 19

  1. FlashAttention Library

    IO-aware exact attention kernels; FA3 targets Hopper and FA4, written in CuTe DSL, targets Blackwell.

    Kernel Libraries · BSD-3-Clause · 25k stars · Updated 2026-11

  2. FlashInfer Library

    Attention, sampling, MoE, and GEMM kernels built for LLM serving, with JIT-compiled variants used as backends by vLLM and SGLang.

    Kernel Libraries · Apache-2.0 · 7k stars · Updated 2026-11

  3. CUTLASS Library

    NVIDIA's C++ templates and CuTe layout abstractions for GEMM-class kernels, plus the Python CuTe DSL, from Ampere through Blackwell.

    Kernel Libraries · BSD-3-Clause · 11k stars · Updated 2026-11

  4. DeepGEMM Library

    DeepSeek's JIT-compiled tensor-core kernels for FP8, FP4, and BF16 GEMMs, grouped MoE GEMMs, and MoE fused with communication.

    Kernel Libraries · MIT · 9.2k stars · Updated 2026-11

  5. FlashMLA Library

    DeepSeek's sparse and dense MLA attention kernels with FP8 or FP4 KV cache, for Blackwell GPUs and Ascend NPUs (Hopper in older releases).

    Kernel Libraries · MIT · 13k stars · Updated 2026-10

  6. Transformer Engine Library

    Transformer layers and scaling recipes for FP8, MXFP8, and NVFP4 execution on Hopper and Blackwell, with PyTorch and JAX bindings.

    Kernel Libraries · Apache-2.0 · 3.6k stars · Updated 2026-11

  7. ThunderKittens Library

    Tile primitives embedded in CUDA C++ for writing attention and GEMM kernels; version 2.0 adds Blackwell, MXFP8, and NVFP4 support.

    Kernel Libraries · MIT · 3.8k stars · Updated 2026-09

  8. SageAttention Library

    Quantized attention kernels (INT8 QK, FP8 PV, FP4 on Blackwell) that replace FlashAttention without retraining, common in video diffusion.

    Kernel Libraries · Apache-2.0 · 4k stars · Updated 2026-01

  9. DeepSelect Library

    Top-k selection kernels for the lightning indexer in DeepSeek Sparse Attention and for token samplers, on CUDA and Ascend.

    Kernel Libraries · MIT · 550 stars · Updated 2026-09

  10. Marlin Library

    Reference FP16xINT4 mixed-precision GEMM kernel for small-batch decoding; maintained Marlin variants now ship inside vLLM.

    Kernel Libraries · maintenance · Apache-2.0 · 1.2k stars · Updated 2024-09

  11. CUDA Programming Guide Docs

    NVIDIA's normative reference for the CUDA execution model, memory hierarchy, C++ language extensions, and per-architecture features.

    Kernel Languages & DSLs

  12. PTX ISA Spec

    Specification of NVIDIA's virtual instruction set and memory model, including async-copy, TMA, wgmma, and tcgen05 instructions.

    Kernel Languages & DSLs

  13. CUDA C++ Best Practices Guide Docs

    Official optimization workflow for CUDA C++ covering memory coalescing, shared memory, occupancy, and the assess-parallelize-optimize cycle.

    Kernel Languages & DSLs

  14. Mirage Persistent Kernel (MPK) Tool

    Compiler and runtime that turns a multi-GPU LLM forward pass into one persistent megakernel with SM-level task scheduling.

    Megakernels & Superoptimizers · Apache-2.0 · 2.6k stars · Updated 2026-11

  15. Megakernels (Hazy Research) Tool

    ThunderKittens-based research megakernels that run a full Llama forward pass in a single launch to eliminate kernel-boundary stalls.

    Megakernels & Superoptimizers · experimental · MIT · 888 stars · Updated 2026-05

  16. NCCL Library

    NVIDIA's collective and point-to-point communication library over NVLink, PCIe, InfiniBand, and RoCE; the default PyTorch GPU backend.

    Collective Communication · Apache-2.0 + BSD-3-Clause · 5.3k stars · Updated 2026-11

  17. NCCL Device API Docs

    Docs for NCCL's device-side API, which lets kernels issue communication over NVLink load/store, multicast, and GPU-initiated RDMA.

    Collective Communication

  18. NVSHMEM Library

    OpenSHMEM-style global address space for NVIDIA GPUs with one-sided puts, gets, atomics, and signals issued from inside kernels.

    Collective Communication · Apache-2.0 · 607 stars · Updated 2026-11

  19. DeepEP Library

    Expert-parallel dispatch and combine kernels with high-throughput NVLink/RDMA modes for prefill and low-latency modes for decoding.

    Collective Communication · MIT · 10k stars · Updated 2026-11

X Compilers & Graph Runtimes 1

  1. TensorRT Tool

    NVIDIA's inference optimizer and runtime; version 11 removed weakly typed networks, implicit quantization, and IPluginV2.

    Vendor Runtimes · proprietary · 13k stars · Updated 2026-11

XI Hardware & Accelerators 1

  1. CUTLASS Blackwell Documentation Docs

    CUTLASS reference for Blackwell SM100/SM120 GEMM layouts, tcgen05 MMA instructions, and warp-specialized kernel schedules.

    NVIDIA

XII Benchmarking & Capacity Planning 2

  1. CUTLASS GEMM Performance Measurement Methodology Docs

    NVIDIA guidance on separate warmup loops, buffer rotation for cold caches, fixed-clock versus fixed-power runs, and input entropy for reproducible GEMM numbers.

    Metrics & Methodology

  2. AI Systems Performance Checklist Article

    Over 200 tuning and measurement items from Fregly's O'Reilly book, from steady-state timing and OS and CUDA settings up to cluster-scale cost controls.

    Metrics & Methodology · Apache-2.0 · 2.2k stars · Updated 2026-11

XIII Observability & Operations 3

  1. Nsight Systems Tool

    System-wide timeline profiler that lines up CPU threads, OS runtime, CUDA API calls, kernels, memory copies, and NVTX ranges to expose idle GPU time.

    Profiling & Debugging

  2. Nsight Compute Tool

    Kernel profiler that reads hardware counters to report roofline position, memory-hierarchy throughput, occupancy, and warp stall reasons per CUDA kernel.

    Profiling & Debugging

  3. Compute Sanitizer Tool

    CUDA toolkit checkers (memcheck, racecheck, initcheck, synccheck) that catch out-of-bounds accesses, shared-memory races, and synchronization misuse.

    Profiling & Debugging

XV Verticals 1

  1. NVIDIA RecSys Examples Library

    NVIDIA's HSTU and semantic-ID recommender examples, including inference with a paged GPU KV cache, Triton Inference Server, and AOTInductor C++ deployment.

    Classical ML & RecSys · BSD-3-Clause · 368 stars · Updated 2026-11

XVII Case Studies & Engineering Blogs 2

  1. Better MoE Model Inference with Warp Decode (Cursor) Article

    Cursor's MoE decode kernel in which each warp computes one output value, with B200 measurements for a Qwen-style model on its internal inference system.

    Production Case Studies

  2. Hazy Research Blog Article

    Stanford's Hazy Research posts on hardware-aware kernels, efficient architectures, and local AI, including the ThunderKittens releases.

    Engineering Blogs

XVIII Learning Resources 18

  1. Programming Massively Parallel Processors (5th ed.) Book

    Standard textbook on GPU programming, memory hierarchies, and parallel patterns; the 2026 edition adds LLM workloads.

    Books · commercial

  2. AI Systems Performance Engineering (O'Reilly) Book

    Profiling-first book on tuning GPUs, CUDA kernels, PyTorch, and multi-node systems for training and inference, closing with an optimization checklist.

    Books · commercial

  3. CMU 11-868: Large Language Model Systems Course

    Spring 2026 course that goes from CUDA basics and a MiniTorch homework track to FlashAttention, vLLM, SGLang, and disaggregated serving.

    Courses

  4. GPU MODE Lectures Course

    Slides and code for the community lecture series on CUDA, Triton, CUTLASS, profiling, and inference kernels; recordings are on YouTube.

    Courses · Apache-2.0 · 7.1k stars · Updated 2026-09

  5. MIT 6.S894: Accelerated Computing Course

    Fall 2025 graduate course on performance engineering for accelerators, with weekly CUDA labs that build toward fast GPU kernels.

    Courses

  6. NVIDIA Accelerated Computing Hub Course

    Open notebooks and syllabi from NVIDIA for CUDA C++, CUDA Python, and CUDA Tile, runnable on cloud GPUs or Colab.

    Learning Paths · Apache-2.0 + CC-BY-NC-SA-4.0 · 2.2k stars · Updated 2026-11

  7. How to Optimize a CUDA Matmul Kernel for cuBLAS-like Performance Article

    Worklog that takes a naive SGEMM through coalescing, shared-memory tiling, and warptiling, profiling each step against cuBLAS.

    Deep Dives & Essays

  8. Inside NVIDIA GPUs: Anatomy of High-Performance Matmul Kernels Article

    Builds from GPU memory hierarchy and PTX/SASS up to Hopper matmul kernels that use TMA, wgmma, and warp specialization.

    Deep Dives & Essays

  9. Outperforming cuBLAS on H100: A Worklog Article

    Hopper follow-up to the Boehm worklog that grows a dependency-free GEMM in one CUDA file, adding TMA, wgmma, and warp specialization step by step.

    Deep Dives & Essays

  10. tcgen05 for dummies Article

    Plain CUDA C++ and PTX walkthrough of Blackwell's tcgen05 Tensor Core instructions, building a B200 matmul that approaches cuBLAS.

    Deep Dives & Essays

  11. CUTLASS Tutorial: Mastering the Tensor Memory Accelerator (TMA) Article

    Explains Hopper's TMA unit for asynchronous bulk copies, including loads, stores, and multicast, and how to drive it through CuTe.

    Deep Dives & Essays

  12. CUTLASS Tutorial: Fast Matrix Multiplication with WGMMA on Hopper Article

    Shows how warpgroup-level wgmma instructions work on Hopper and how CUTLASS and CuTe expose them in a GEMM mainloop.

    Deep Dives & Essays

  13. Deep Dive on CUTLASS Ping-Pong GEMM Kernel Article

    Walks through a warp-specialized Hopper FP8 GEMM in which producer and consumer warpgroups alternate so math overlaps with epilogues.

    Deep Dives & Essays

  14. GPUs Go Brrr Article

    Hazy Research essay on what keeps an H100 busy, from tensor cores and TMA to async pipelines, and the ThunderKittens design built on it.

    Deep Dives & Essays

  15. Optimizing Parallel Reduction in CUDA Article

    Classic NVIDIA slide deck that refines a sum-reduction kernel through seven versions, a template for reasoning about bandwidth limits.

    Deep Dives & Essays

  16. Fast LLM Inference From Scratch Article

    Builds a single-GPU inference engine in C++ and CUDA without libraries, profiling each step from a naive CPU loop to fused kernels.

    Deep Dives & Essays

  17. GPU MODE (YouTube) Video

    Recorded community lectures on CUDA, Triton, CUTLASS, profiling, and inference kernels, often given by the people who wrote them.

    Talks & Videos

  18. GPU MODE Discord Community

    Open Discord server for GPU programming with channels per kernel language and vendor, reading groups, lectures, and kernel competitions.

    Communities & Newsletters