Skip to content
Projekte

wafer-ai/gpu-perf-engineering-resources

Auf GitHub ansehen

wafer-ai/gpu-perf-engineering-resources has 4,348 GitHub stars and 416 forks. GitHot measured +5 stars in 24 hours. Last checked 2026-11-07 15:59 UTC. Last push 2026-10-17.

So werden diese Zahlen gemessen

A curated resource list for learning AI performance engineering, from GPU fundamentals to production inference.

Gemessener Sternzuwachs

in 24h
+5
in 7 days
Verlauf wird gesammelt
in 15 days
Verlauf wird gesammelt
in 1 month
Verlauf wird gesammelt

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

README.md

Original

AI Performance Engineering

AI Performance Engineering

A curated resource list for learning GPU performance engineering and production inference.

The list is ordered from a single inference request to a single GPU, optimized kernels, inference engines, and distributed systems. Read Start here first. After that, use it as a reference.

The core list uses original papers, official specifications and documentation, creator repositories, and direct implementation work.

If you work on these problems, Wafer is hiring.

Contents

Start here: the minimum mental model

Read these in order if you are new to the field.

  1. How to Scale Your Model: Inference - One request from prefill through decode, with batching, KV memory, and parallelism.
  2. Attention Is All You Need - The transformer computation that the rest of the list optimizes.
  3. CUDA C++ basics - The shortest official introduction to the CUDA execution model.
  4. Programming Massively Parallel Processors - The main textbook for GPU programming, memory, and kernel design.
  5. Roofline: An Insightful Visual Performance Model - The compute, memory-bandwidth, and arithmetic-intensity model.
  6. Transformer Inference Arithmetic - FLOPs, parameter bytes, KV bytes, and communication for transformer inference.
  7. Efficiently Scaling Transformer Inference - Latency, memory, and parallelism costs for large-model inference.
  8. Etalon - TTFT, TPOT, goodput, and latency SLOs for generative-model serving.

For a practical companion, use the GPU Mode lectures.

1. GPU fundamentals

Programming model

Compilation and machine code

2. Kernel optimization

Foundational kernel exercises

Matrix multiplication

  • Benchmarking GPUs to Tune Dense Linear Algebra - The canonical case for reasoning from measured hardware behavior instead of occupancy alone.
  • CUTLASS 3.x design - The collective and kernel structure used by modern CUTLASS.
  • Stream-K - Work-centric GEMM decomposition that splits k-loop iterations evenly across persistent CTAs to avoid wave quantization.
  • DeepGEMM - A compact production FP8 GEMM implementation for Hopper.

Direct implementation work

Tensor cores and low precision

Attention

3. Programming models and profiling

Triton

  • Triton paper - The original blocked-program language and compiler design.
  • Triton programming guide - The official programming model.
  • Triton tutorials - Official worked kernels for fused softmax, matmul with grouped tile ordering, fused attention, persistent matmul, and block-scaled matmul.
  • Linear Layouts - Triton's layout system, which represents layouts and layout conversions as binary matrices over F2.
  • Triton repository - Compiler, examples, tests, and backend implementation.

CUTLASS, CuTe, and CUDA Tile

Other hardware stacks

Profiling, benchmarking, and correctness

4. Inference engines

Scheduling and continuous batching

  • Orca - Iteration-level scheduling for autoregressive serving.
  • PagedAttention and vLLM - Paged KV allocation and continuous batching.
  • Sarathi-Serve - Chunked prefills that reduce interference with decode.
  • SGLang - Prefix reuse, structured programs, and a serving runtime.
  • vLLM, SGLang, and TensorRT-LLM - The main production engine implementations.

KV cache systems

  • Grouped-Query Attention - Fewer key-value heads and a smaller KV cache.
  • DeepSeek-V2 - Multi-head latent attention and compressed KV state.
  • KIVI - KV quantization with separate treatment for keys and values.
  • CacheGen - KV compression for transfer.
  • Jenga - KV memory allocation and per-layer caching for models that mix attention types, state-space layers, and vision embeddings.

Quantization

  • GPTQ - One-shot second-order weight quantization.
  • SmoothQuant - W8A8 execution by moving quantization difficulty from activations into weights.
  • AWQ - Low-bit weight-only inference with salient-weight protection.
  • QuaRot - Output-preserving rotations that remove outliers so weights, activations, and the KV cache can run in 4 bits.
  • Introducing NVFP4 for Efficient and Accurate Low-Precision Inference - Hardware-native 4-bit micro-block scaling for Blackwell inference.

Speculative decoding

Structured decoding and fairness

Long context and multimodal inference

  • Ring Attention - Exact distributed attention by circulating KV blocks around a device ring.
  • MInference 1.0 - Dynamic sparse patterns for long-context prefill on existing models.
  • Native Sparse Attention - A model trained with a hardware-aligned sparse attention hierarchy.
  • DeepSeek-V3.2 - DeepSeek Sparse Attention, where a lightweight learned indexer selects the top-k key-value entries for each query.
  • vLLM multimodal inputs - Current engine support for text, image, audio, and video inputs.

5. Distributed inference

Parallelism, collectives, and topology

Mixture-of-experts serving

  • GShard - Expert parallelism through all-to-all token dispatch and combine under a per-expert capacity.
  • DeepSeek-V3 - Routed experts, shared experts, and the model-system design.
  • DeepEP - Expert dispatch and combine kernels.
  • EPLB - Expert placement and replication from measured load.
  • MegaScale-Infer - Large-scale MoE inference and communication overlap.

Prefill and decode disaggregation

  • DistServe - Separate prefill and decode workers optimized for goodput under latency constraints.
  • Splitwise - Phase-specific allocation and scheduling.
  • Mooncake - KV-centric disaggregated inference built on a distributed KV cache pool.
  • NIXL - A transport layer for moving inference state across memory and network backends.
  • Dynamo - A production implementation of disaggregated prefill and decode with KV-aware routing.

Production systems

  • Clockwork - Predictable model serving through centralized scheduling.
  • ServerlessLLM - Faster model startup and live migration.
  • Gateway API Inference Extension - Model, accelerator, and KV-aware request routing.
  • llm-d - Distributed routing, scheduling, and disaggregated serving on Kubernetes.

Serving benchmarks

  • MLPerf Inference - Reproducible benchmark scenarios and load generation.
  • Etalon - Goodput under per-request latency SLOs.
  • ServeGen - Workload generation that preserves important production-trace properties.
  • BurstGPT - A public trace for bursty LLM workloads.
  • MLPerf Endpoints - An endpoint-level benchmark for interactive generative AI.

6. Current hardware

Read each architecture with its ISA or tuning guide. Vendor peak numbers are not performance measurements.

NVIDIA

AMD

Google TPU

AWS Trainium

Frontier

Verified on 2026-10-17. This section is kept separate from the core list because the evidence changes quickly.

AI-generated kernels

  • KernelBench - The original benchmark for converting PyTorch operators into faster GPU kernels.
  • KernelBench-Verified - Stronger correctness tests and baseline parity.
  • FlashInfer-Bench - Kernel tasks drawn from real serving traces, with correctness-checked kernels substituted into SGLang and vLLM.
  • SOL-ExecBench - Correctness and performance measured against a hardware speed-of-light model.
  • KernelGuard - Layered defenses against reward-hacked kernel submissions: static rules, physics-floor checks, and an LLM judge.

Watchlist

  • NVIDIA Rubin, pending a tuning guide or architecture whitepaper and reproducible measurements on generally available systems.
  • AMD MI455X and Helios, with the CDNA 5 whitepaper and ISA guide published, pending reproducible measurements on shipped systems.
  • Google TPU 8t and TPU 8i, pending Cloud TPU architecture documentation and reproducible measurements on generally available systems.
  • UALink 2.0, pending shipped silicon and reproducible measurements.
  • Gluon, Triton's lower-level GPU programming model, pending a stable API across releases.
  • Session-aware and agentic scheduling against public production traces.
  • Real-time voice and video serving with complete quality and latency metrics.
  • Inference ASICs, processing in memory, analog compute, and photonic compute with reproducible deployments.
  • Individual AI kernel agents that have not been rerun on a hardened evaluator.

Source policy

A core source must be one of the following:

  • the paper that introduced the mechanism;
  • the specification or official documentation that defines it;
  • the repository that implements it;
  • a direct implementer report with code, measurements, and enough detail to reproduce the result.

Performance claims need the hardware, workload, precision, baseline, and correctness method. Otherwise the number is omitted.

See CONTRIBUTING.md before proposing a resource.

License

MIT

Maintainer

[email protected]

Ähnliche Projekte entdecken