Notes · 2026-11-30

Inference 최적화 · GPU 성능 엔지니어링 읽기 목록Inference Optimization and GPU Performance Engineering: A Reading List

요청 하나에서 GPU, kernel, 엔진, 분산 서빙으로 넓혀 가며 LLM inference 성능 엔지니어링을 공부하기 위한 자료 지도다.A map of resources for studying LLM inference performance engineering, widening from a single request to the GPU, kernels, engines and distributed serving.

A collection of resources for studying LLM inference optimization and GPU performance engineering. The backbone is the curated list wafer-ai/gpu-perf-engineering-resources; on top of it I have laid out a reading order and topic-based groupings.

Related lesson: /study/llm/inference/ · Related note: Strata: an inference engine that runs large MoE models on a personal PC

Deep-dive lessons (the inference track): roofline and metrics · attention kernels · KV-cache management · batching and scheduling · quantisation · speculative decoding · parallelism and MoE · long-context serving · inference for RL

1. What the list is

  • An MIT-licensed list maintained by Wafer, an AI kernel company. Its scope is inference only; training material is included only when the same principles carry over to inference.
  • It is organized in the order one request → one GPU → kernels → engines → distributed.
  • Principle: only original papers, official docs, implementation repos and reproducible implementation write-ups are included. Performance numbers are left out unless they come with the hardware, workload, precision, baseline and the method used to check correctness.

2. Read these first (in this order)

# Resource What you get
1 How to Scale Your Model: Inference (JAX scaling book) How a single request flows from prefill to decode; batching, KV memory, parallelism
2 Attention Is All You Need The computation that is being optimized
3 CUDA C++ basics (NVIDIA) The shortest introduction to the CUDA execution model
4 Programming Massively Parallel Processors (textbook) GPU programming, memory, kernel design
5 Roofline (CACM 2008) The compute / bandwidth / arithmetic-intensity model
6 Transformer Inference Arithmetic (kipply) Computing FLOPs, parameter bytes, KV bytes and communication volume
7 Efficiently Scaling Transformer Inference (MLSys 23) Latency, memory and parallelism costs of large-model inference
8 Etalon TTFT, TPOT, goodput and latency-SLO metrics

For hands-on practice alongside these, GPU Mode lectures are a good companion.

3. Overall structure

Chapter What it covers Representative resources
1. GPU fundamentals CUDA model, Hopper/Blackwell tuning guides, PTX/SASS CUDA Programming Guide, Blackwell Tuning Guide
2. Kernel optimization transpose, reduction, scan, online softmax, matmul, tensor cores and low precision, attention, sampling, megakernels siboehm CUDA matmul, tcgen05 for dummies, FlashAttention 2 3 4, FlashInfer, DeepGEMM
3. Programming models and profiling Triton, CUTLASS/CuTe/CUDA Tile, ThunderKittens and Helion, AMD and TPU, Nsight, correctness checking Triton tutorials, CuTe GEMM tutorial, Nsight Compute
4. Inference engines continuous batching, KV cache (GQA, MLA, KV quantization), quantization (GPTQ, AWQ, NVFP4), speculative decoding (Medusa, EAGLE-3), structured decoding, long context Orca, vLLM (PagedAttention), Sarathi-Serve, SGLang
5. Distributed inference TP and NCCL, MoE serving (DeepEP, EPLB), prefill/decode disaggregation (DistServe, Mooncake, Dynamo), production systems, serving benchmarks DeepSeek-V3, DistServe, llm-d
6. Latest hardware NVIDIA (Hopper, Blackwell, Rubin), AMD CDNA4, TPU Ironwood, Trainium Hopper and Blackwell microbenchmark papers
Frontier Evaluating AI-generated kernels (KernelBench, SOL-ExecBench, KernelGuard), watchlist A fast-moving area; see the original list

4. Reading by topic

Rather than reading the list from start to finish, it is more efficient to pick a topic you care about and read a few items together.

Topic Items to read together Why read them together
Latest GPU generation Blackwell Tuning Guide, tcgen05 for dummies, Blackwell microbenchmark Tensor-core instructions and measured characteristics of the Blackwell generation, such as the B200
MoE serving DeepSeek-V3, DeepEP, EPLB, MegaScale-Infer All-to-all communication and load balancing in expert parallelism
Low-precision serving OCP FP8, Transformer Engine, NVFP4 FP8/FP4 formats and scaling schemes
RL and numerical determinism Defeating Nondeterminism in LLM Inference (Thinking Machines) The reduction order changes with batch size, so the training engine and the rollout engine assign different probabilities. See the RL stability note
Speculative decoding The speculative decoding section of chapter 4, Speculative Decoding: Performance or Illusion? Grounds for judging the speedup from measurements on real engines across batch sizes
Scheduling long requests DistServe, Sarathi-Serve, Etalon Long prefills blocking other requests’ decode, and how the metrics are defined
Graders and reward hacking Anatomy of a Reward Hack, KernelGuard, Measuring the Checker If a grader measures correctness and performance separately, reward hacks appear. It is the same problem as designing an RL verifier

5. Notes

  • “Strata” (OSDI 26, a paper on hierarchical context caching) in the chapter 4 KV cache systems section may be a separate project that only shares its name with the local MoE inference engine covered in the Strata note. I have not checked.

LLM inference 최적화와 GPU 성능 엔지니어링을 공부하기 위한 자료 모음이다. 뼈대는 큐레이션 목록 wafer-ai/gpu-perf-engineering-resources이고, 여기에 읽는 순서와 주제별 묶음을 정리했다.

관련 레슨: /study/llm/inference/ · 관련 노트: Strata: 큰 MoE를 개인 PC에서 돌리는 추론 엔진

심화 레슨(추론 트랙): roofline과 지표 · attention kernel · KV cache 관리 · 배칭과 스케줄링 · 양자화 · speculative decoding · 병렬화와 MoE · 긴 문맥 서빙 · RL을 위한 추론

1. 목록의 성격

  • AI kernel 회사 Wafer가 관리하는 MIT 라이선스 목록이다. 범위는 inference만이고, 학습 자료는 같은 원리가 inference에도 쓰일 때만 넣는다.
  • 구성 순서는 요청 하나 → GPU 하나 → kernel → 엔진 → 분산이다.
  • 원칙: 원 논문·공식 문서·구현 repo·재현 가능한 구현기만 넣는다. 성능 수치는 하드웨어·워크로드·정밀도·기준·정합성 확인 방법이 함께 없으면 뺀다.

2. 먼저 읽을 것 (이 순서로)

# 자료 얻는 것
1 How to Scale Your Model: Inference (JAX scaling book) 요청 하나가 prefill → decode로 가는 흐름, batching·KV 메모리·병렬화
2 Attention Is All You Need 최적화 대상이 되는 계산
3 CUDA C++ basics (NVIDIA) CUDA 실행 모델의 최단 입문
4 Programming Massively Parallel Processors (교재) GPU 프로그래밍·메모리·kernel 설계
5 Roofline (CACM 2008) compute·대역폭·arithmetic intensity 모델
6 Transformer Inference Arithmetic (kipply) FLOPs·파라미터 bytes·KV bytes·통신량 계산
7 Efficiently Scaling Transformer Inference (MLSys 23) 큰 모델 inference의 latency·메모리·병렬화 비용
8 Etalon TTFT·TPOT·goodput·latency SLO 지표

실습 짝으로는 GPU Mode lectures가 좋다.

3. 전체 구성

장 다루는 것 대표 자료
1. GPU 기초 CUDA 모델, Hopper·Blackwell tuning guide, PTX·SASS CUDA Programming Guide, Blackwell Tuning Guide
2. Kernel 최적화 transpose·reduction·scan·online softmax, matmul, tensor core·저정밀, attention, sampling, megakernel siboehm CUDA matmul, tcgen05 for dummies, FlashAttention 2 3 4, FlashInfer, DeepGEMM
3. 프로그래밍 모델·프로파일링 Triton, CUTLASS/CuTe/CUDA Tile, ThunderKittens·Helion, AMD·TPU, Nsight, 정합성 검증 Triton tutorials, CuTe GEMM tutorial, Nsight Compute
4. Inference 엔진 continuous batching, KV cache(GQA·MLA·KV 양자화), 양자화(GPTQ·AWQ·NVFP4), speculative decoding(Medusa·EAGLE-3), structured decoding, long context Orca, vLLM (PagedAttention), Sarathi-Serve, SGLang
5. 분산 inference TP·NCCL, MoE serving(DeepEP·EPLB), prefill/decode 분리(DistServe·Mooncake·Dynamo), 운영 시스템, 서빙 벤치 DeepSeek-V3, DistServe, llm-d
6. 최신 하드웨어 NVIDIA(Hopper·Blackwell·Rubin), AMD CDNA4, TPU Ironwood, Trainium Hopper·Blackwell microbenchmark 논문
Frontier AI가 만든 kernel 평가(KernelBench·SOL-ExecBench·KernelGuard), watchlist 빨리 바뀌는 영역. 원 목록 참고

4. 주제별로 묶어 읽기

목록을 처음부터 끝까지 읽기보다 관심 주제에 맞춰 몇 항목을 묶어 보는 편이 효율적이다.

주제 묶어 읽을 항목 왜 함께 보나
최신 GPU 세대 Blackwell Tuning Guide, tcgen05 for dummies, Blackwell microbenchmark B200 같은 Blackwell 세대의 tensor core 명령과 실측 특성
MoE 서빙 DeepSeek-V3, DeepEP, EPLB, MegaScale-Infer expert parallelism의 all-to-all 통신과 부하 균형
저정밀 서빙 OCP FP8, Transformer Engine, NVFP4 FP8·FP4 형식과 scaling 방식
RL과 수치 결정성 Defeating Nondeterminism in LLM Inference (Thinking Machines) batch 크기에 따라 reduction 순서가 바뀌어 학습 엔진과 rollout 엔진의 확률이 달라지는 문제. RL 안정성 노트 참고
Speculative decoding 4장의 speculative decoding 절, Speculative Decoding: Performance or Illusion? 실제 엔진·batch 크기별 측정으로 속도 이득을 판단하는 근거
긴 요청의 스케줄링 DistServe, Sarathi-Serve, Etalon 긴 prefill이 다른 요청의 decode를 막는 문제와 지표 정의
채점기와 reward hacking Anatomy of a Reward Hack, KernelGuard, Measuring the Checker 채점기가 정합성과 성능을 따로 재면 reward hack이 생긴다. RL verifier 설계와 같은 문제다

5. 메모

  • 4장 KV cache systems에 나오는 “Strata”(OSDI 26, 계층형 context caching 논문)는 Strata 노트에서 다룬 로컬 MoE 추론 엔진과 이름만 같은 별개 프로젝트일 수 있다. 확인하지는 않았다.