LLM Inference Simulators — Presentation 10

Further Learning

A curated reading list for simulator engineers: textbooks on discrete-event simulation and computer architecture, university courses, the key LLM-serving and simulator papers, and the open-source tools worth reading the source of.

Books Courses Papers Tutorials Open source
Foundations → Architecture → LLM serving → Tools
00

Topics We'll Cover

Concepts used here, and where they are explained. Each links to its series glossary entry: a short explanation, then links to the slides that explain it in depth, in this series, the Local LLM Hosting and Key Publications decks, or the FHE Accelerator Simulators series.

01

A Four-Week Learning Path

One evening a day for four weeks, assuming solid Python and computer architecture already. Each week ends with something built.

WeekReadBuild
1. Simulation craftSimPy docs; Harchol-Balter ch. 1–6 (queueing basics); Lazowska QSP ch. 3 (operational laws); deck 02The 30-line kernel; M/M/1 against theory; the deck 02 exercises
2. LLM inferenceRoofline paper; Pope et al.; PagedAttention; Orca; Sarathi-Serve; How to Scale Your Model inference chaptersReproduce deck 03's tables from first principles in a notebook
3. Serving simulators and powerSplitwise, DistServe, Vidur papers; the Vidur and splitwise-sim source; Horowitz on energy; POLCAExtend Disaggregated_Inference_Sim with layer-wise KV streaming or chunked prefill; validate with tests
4. Hardware and frameworksLLMCompass; ASTRA-sim 2.0; PyTorch export, compile-backend and PrivateUse1 docs; the MLIR Toy tutorial; HEIR docsA TorchDispatchMode tracer that feeds a real model's operator trace into the simulator
02

Books: Simulation and Performance Analysis

03

Books: Computer and Accelerator Architecture

04

Courses and Lecture Series

05

Papers: LLM Serving and Disaggregation

06

Papers: Simulators and Simulation Methodology

07

Hands-On Tutorials and Documentation

08

Source Code Worth Reading

Reading a mature simulator's source teaches more about structure than any book. Start with the smaller ones.

RepositoryRead it for
Mutinifni/splitwise-simA compact Python DES of phase-split clusters: the closest relative of this series' simulator
microsoft/vidurProfiling pipeline, runtime predictors, scheduler zoo, configuration search
PrincetonUniversity/LLMCompassHardware description, operator mapping, area and cost models
hahnyuan/LLM-ViewerA small analytical roofline tool for many models
astra-sim/astra-sim and mlcommons/chakraA layered C++ simulator; execution-trace formats
ARM-software/SCALE-Sim and NVlabs/timeloopSystolic-array simulation; loop-nest mapping search
gem5 and SSTEvent queues and ports at industrial scale; Python-configured C++
vLLM, ai-dynamo/dynamo, ai-dynamo/nixl, kvcache-ai/MooncakeThe real schedulers and KV-transfer engines that serving simulators model
google/heir, OpenFHE, zama-ai/tfhe-rsAn MLIR FHE compiler; the reference C++ FHE library; a Rust FHE library
Disaggregated_Inference_SimThis series' simulator: about 1,150 lines of SimPy plus tests, written to be read
09

FHE and Photonic Computing

Fully homomorphic encryption

Photonic and optical computing

10

Related Decks on This GitHub

11

Power and Energy