Model
1Number of layers PREFILLDECODEEvery token passes through all 36 in order. Split across GPUs, each layer adds a sync over the interconnect.
2Attention heads, GQA PREFILLDECODEMEMORY64 query heads share 8 KV heads, so the KV cache is 8× smaller than with one KV head per query head.
3Experts and top-k routing PREFILLDECODEEach token uses 4 of 128 experts: 5.1B of 117B weights. Decode reads only those. A big prefill batch touches nearly all of them.
4Vocabulary size DECODEThe output projection over about 201k tokens is read for every token generated.
5KV cache per slot DECODEMEMORYGrows with context and is read every decode step. About 36 KB per token for this model.
–Total parameters MEMORY117B decides whether the model fits (about 65 GB), not how fast it runs.
–Weight precision PREFILLDECODEMEMORYMXFP4 experts are about 4.25 bits each. Fewer bytes per token speeds decode; chips without native FP4 spend compute converting.
–Context length PREFILLDECODEMEMORYAttention work in prefill grows faster than linearly. Half of gpt-oss's layers use a 128-token sliding window, which caps their cost.
–Reasoning and output length DECODEEvery hidden reasoning token is one more decode step.
Serving runtime
–Parallel slots DECODEMEMORYMore slots raise total throughput and reserve more KV memory. Each user's speed falls as the batch grows.
–Micro-batch size (num_batch) PREFILLLarger batches reuse each weight read across more tokens. Matters most for MoE models.
–Chunked prefill PREFILLDECODESplits long prompts so other users' decode steps are not stalled behind them.
–Continuous batching DECODEA finished slot is refilled at once instead of waiting for the whole batch to end.
–Prefix cache PREFILLStored KV for an identical prompt prefix lets prefill skip it.
–KV cache precision DECODEMEMORYAn 8-bit KV cache halves its memory and the bytes read per step.
–Attention kernels PREFILLFlash attention avoids writing the full attention matrix to memory.
–Speculative decoding DECODEA small draft model proposes tokens; the big model checks several per weight read.
–Scheduler queue FIRST TOKENWhen every slot is busy, new requests wait.
Hardware
6Compute throughput PREFILLMatrix units and native low-precision formats (FP8, FP4) set prefill speed.
7Memory bandwidth DECODEDecode ceiling ≈ bandwidth ÷ bytes read per token. HBM3 gives 3.35 TB/s per H100, HBM4 19.2 TB/s per Rubin GPU; a compact unified-memory box gives about 256 GB/s.
8Interconnect (NVLink, PCIe) PREFILLDECODESplitting a model across GPUs adds a sync every layer. NVLink keeps it short; PCIe or networking makes it long. One chip avoids it.
9Host CPU FIRST TOKENDECODETokenising, scheduling, sampling and kernel launches run on the CPU. At small batch they show up on every token.
10Weight streaming DECODEThe beams: weights move from memory to compute on every forward pass.
–Memory capacity MEMORYWeights plus KV for all slots must fit, or layers spill to slower memory.
–On-chip cache PREFILLDECODELarge L2 or Infinity Cache keeps frequently used data next to compute.
–Power and thermal limits PREFILLPrefill is the first thing to slow under a lower power limit.
–Unified vs separate memory DECODEMEMORYUnified memory fits large models cheaply, but the CPU shares the same bus.