feed/tags/gpu
GPU
2 explainers you can run, 10 glossary terms, and 3 readings ordered as a path, each with one line on why it earns your time.
- intermediateEvery layer stops to agree, twice
Split a model across 1 to 8 GPUs and watch the decode step: each shard reads less, and 160 all-reduces a token cost the same whether the batch is 1 or 256.
- intermediateCut every matrix, or cut the stack
The same model, the same eight GPUs, the same requests in flight, cut three ways. Rows are GPUs on one clock: who is busy, who is waiting, and how often a request gets a token.
- Tensor cores
The GPU units that do small dense matrix multiplies in one instruction, at far higher rate than the general-purpose cores.
- GEMM
General matrix multiply, the operation the projections and feed-forward layers of a transformer reduce to.
- CUDA graphs
Recording a sequence of kernel launches once and replaying the whole sequence with a single call.
- Kernel fusion
Combining several operations into one kernel so intermediate results stay in registers or on-chip memory instead of making a round trip to HBM.
- Kernel launch overhead
The fixed cost of asking the GPU to run a kernel: the driver call, the scheduling, the queue.
- Megakernel
A single GPU kernel that runs an entire decode step, with every operation expressed as tasks that the streaming multiprocessors pull from a queue and fine-grained counters standing in for kernel boundaries.
- All-reduce
The collective that tensor parallelism runs twice per transformer layer: once after the attention output projection and once after the MLP down projection, so that each GPU's partial product of its weight shard becomes the full activation on every GPU.
- Triton
A Python-embedded language and compiler for writing GPU kernels at the level of blocks of data rather than individual threads.
- CUTLASS
NVIDIA's C++ template library for building GEMM and related kernels that hit tensor core peak, and CuTe, its layer for describing the layouts and tilings that make that possible.
- Nsight
NVIDIA's profilers.
The mental models the rest of the field takes for granted.
- toolAI performance engineering: a primary-source reading list
About 130 links from CUDA basics to disaggregated serving, and every one is the paper, the spec, the repo or a worklog with measurements. Sections cap at five links, so adding one means arguing which to drop. The eight-item start-here path is the shortest route to the vocabulary the rest of this feed assumes.
#gpu#kernels#roofline#fundamentals - interactiveInteractive H100 architecture glossary
Rotate the die and hover the parts. Memory bandwidth stops being a number you quote and starts being a place on the chip.
Kyle Jeong, with definitions from Modal's GPU Glossary#gpu#hardware#hbm
Current work, at the depth practitioners actually argue about.