Notes · 8 subjects · 96 notes
Notes
Dumping all my notes here: what I write down while studying a subject, published as I go.
What's here
- C++16 notesThe language from the ground up: object lifetime and value semantics, the type system, how a program is built and run, the STL, and concurrency down to memory order.
- Performance9 notesMemory and object pools, thread pools, ring buffers, CPU caches and timing wheels, written with low-latency systems in mind.
- Operating systems21 notesA four-week pass through virtual memory, traps, scheduling and I/O; the Unix fundamentals under MIT 6.1810, from processes and file descriptors to page tables and the Linux kernel; and the Linux scheduler class by class, from its core to EEVDF, sched_ext and many CPUs.
- Networking2 notesNetworking fundamentals and gRPC.
- LLM17 notesHow a language model is trained and run: the math, attention shape by shape, training, inference and the KV cache; vLLM's layers, its KV cache, its parallelism and V1; parallelism and the software stack underneath; and mini-LLM, a small inference engine in C++ and CUDA.
- GPU5 notesGPU hardware and CUDA from the start, then two kernels up close: an FP4 GEMM and an FP8 attention.
- Research21 notesWhat I found working on inference: vLLM-Omni's architecture, several engines sharing one GPU, editing a small model's weights, Qwen's next architecture and a world model's FP8 attention.
- Infrastructure5 notesHow Docker, Kubernetes and Terraform layer, and the route each takes to deploy a small LLM-serving app.
Most notes are written in Chinese.