Kimi K3 on GB300: the architecture and the roofline

DRAFT (unlisted study), written by an AI. The architecture diagrams, the sheets, the sweeps and all of the prose were generated by Fable (Claude) from the author’s brief and have not had a human edit pass — see the footnote.1

The question: with a fixed global batch, GB300 NVL72 hardware and a fixed mixed-precision recipe, what is the smallest cluster that trains Kimi K3 at (close to) its best tokens/s per GPU? Part 3’s method, run again: count the FLOPs, count the bytes each parallelism moves per link, divide by the link’s rate, and check that compute covers the communication. Everything here is a speed-of-light number: spec peaks, perfect overlap, no kernel inefficiency. The sheets are live, as in part 3: the formula column is the program, blue values are knobs, and every sheet’s header downloads the whole page as one workbook.

Assumptions carried from the brief: forced-balanced routing (every EP rank receives exactly S · k tokens per sequence, as MoonEP guarantees; the slots MoonEP reserves for redundant experts are charged to memory, and the traffic of filling them is a knob, ured, 0 by default); cross-stage caching of the attention residual’s block store, so each block reaches a rank once per microbatch; cross-rank activation offload, so the in-flight activations of 1F1B are averaged across pipeline ranks; and two activation-checkpointing policies, A (recompute everything that is not a matmul) and B (recompute everything except SDPA, KDA and the routed experts).

The hardware: GB300 NVL72

Spec-sheet dense peaks first (NVIDIA’s GB300 NVL72 totals divide to exactly 2.5 and 5 PFLOP/s per GPU; the 2.45 and 4.9 one sometimes sees are the same numbers rounded the other way). But “peak GEMM rate” on Blackwell Ultra is not one number: the part is power limited, and how far below the architectural peak a perfectly efficient kernel settles depends on how much its operands make the datapath switch. Public B300 evidence (SXM6, 1,100 W, 148 SMs): cuBLASLt BF16 at 8192³ on low-switching small-integer operands reaches 2,110 TFLOP/s, 94 % of B300’s 2.25 PFLOP/s dense peak, and the raw tensor-core datapath 93 % in isolation, so the kernel side can essentially saturate; CuTe FP8 at the same shape reaches 3,125 TFLOP/s (69 % of 4.5), and a sustained tcgen05 GEMM at 32768² reports the SM clock falling from 2,032 to 1,522 MHz under the power cap. Random operands cost more power than small integers or all-ones (the H100 “predictable data” effect), so the regime that matters for training, large random-data GEMMs run back to back, lands well under the low-switching numbers: on the order of two thirds of peak on B300, and somewhat better on GB300 with its 1.4 kW envelope. The sheet therefore carries the spec peak and a sustained random-data rate separately, and uses the latter everywhere: 1.8 PFLOP/s BF16 as the practical target, and 2× that for MXFP8 (the spec ratio; a power-capped part may well do worse than 2×, since FP8 operands switch about as much per byte and move twice the elements). Both are knobs. Sources: the gb300-microbench repository (B300 SXM6 measurements), the mKernel B300 tcgen05 GEMM PR (sustained clock), and thonking.ai’s “predictable data” note (H100).

cellquantityvalue (exact)scientific SIformula
πbf16GB300 BF16 dense peak, spec (FLOP/s)2,500,000,000,000,0002.50 × 10152.50 PFLOP/s(hardware spec, dense)
πfp8GB300 FP8 dense peak, spec (FLOP/s)5,000,000,000,000,0005.00 × 10155 PFLOP/s(hardware spec, dense)
πfp4GB300 FP4 dense peak, spec (FLOP/s)15,000,000,000,000,0001.50 × 101615 PFLOP/s(hardware spec, dense; this recipe does not use it)
πsolbf16BF16 GEMM, sustained on random data (FLOP/s)1,800,000,000,000,0001.80 × 10151.80 PFLOP/s(model input: the practical target for a large random-operand GEMM at the 1.4 kW GB300 envelope — see the text)
ηbf16share of the spec peak0.727.20 × 10−172 %πsolbf16 / πbf16
πsolfp8MXFP8 GEMM, sustained on random data (FLOP/s)3,600,000,000,000,0003.60 × 10153.60 PFLOP/s(model input: 2× the BF16 figure, the spec ratio; under a power cap FP8 operands switch about as much per byte, so this is if anything generous)
ηfp8share of the spec peak0.727.20 × 10−172 %πsolfp8 / πfp8
βNVNVLink per GPU, per direction (B/s)900,000,000,0009.00 × 1011900 GB/s(hardware spec: 1.8 TB/s bidirectional)
βIBscale-out per GPU (B/s)100,000,000,0001.00 × 1011100 GB/s(hardware spec: ConnectX-8, 800 Gb/s)
NVLGPUs per NVLink domain72(hardware spec)
MGPUdevice memory per GPU (B)297,020,948,4802.97 × 1011297 GB(as PyTorch reports it: 276.6 GiB; the spec sheet says 288 GB)

A common variant uses 64 of the 72 GPUs in a domain (set NVL to 64, with EP and CP to match, and the sweeps below re-run on 64-GPU domains). Per GPU almost nothing changes: weights, gradients and activations per GPU depend on PP · EP and the cluster size, not on the domain, and the EP traffic per token moves by under 1 %. What changes is the grain, and which CP degrees are available. With FP32 gradients and states the no-offload minimum is still four domains, now 256 GPUs instead of 288. But each GPU carries 12.5 % more MXFP8 weights and gradients, and CP 3 no longer divides the domain. Policy A then needs CP 8 under interleaved zero-bubble and runs at about 4,680 tokens/s per GPU instead of 4,950, because KCP’s state exchange grows with CP. The one real advantage of 64 is not in this sheet: 896 experts divide by 64 (14 per rank) and not by 72, so MoonEP’s redundant-expert slots are needed for balance at 72 and not at 64.

The model: Kimi K3

The architecture from the released config and modeling code (the shapes that are only in the code: the KDA decay bottleneck and the gated norm). Ninety-three layers in a 3 : 1 KDA : gated-MLA hybrid, the first layer dense, every other layer a Stable LatentMoE with 896 routed experts of which 16 are active, read and written through a 3,584-wide latent; two shared experts in the hidden dim. The attention residual (AttnRes) adds a handful of norms and pseudo-query projections per layer.

Reading the diagram, which gives K3 the same infra-oriented treatment as part 1’s DeepSeek-V3 diagram (the kernels you actually run, with their shapes):

cellquantityvalue (exact)scientific SIformula
dhidden dim7,168(architecture)
Vvocabulary163,840(architecture)
Llayers93(architecture)
LkdaKDA layers69(architecture: 3 of every 4)
Lmlagated-MLA layers24(architecture: every 4th, plus the last)
Ldnsdense-FFN layers1(architecture: layer 1, a KDA layer)
LmoeMoE layers92L − Ldns
nhattention heads96(architecture)
dhhead dim · KDA q/k/v, MLA qk nope, v128(architecture)
dRhhead dim · MLA qk "rope" (never rotated: NoPE)64(architecture)
Pprojection width12,288nh · dh
rqq latent rank1,536(architecture)
rkvkv latent rank512(architecture)
kcvKDA short-conv kernel4(architecture)
rαKDA decay bottleneck rank128(modeling_kimi_linear.py: = head dim)
Erouted experts896(architecture)
kexperts per token16(architecture)
Iexpert inter dim3,072(architecture)
ℓexpert latent width3,584(architecture: routed experts read and write the latent)
nshshared experts2(architecture: one fused MLP of 2× width, in the hidden dim)
Idnsdense-FFN inter dim33,792(architecture)

The parameter tally reproduces the advertised 2.78T total and 104.2B active exactly (the test pins both to the digit). Sparsity is 27× (total over active), against DeepSeek-V3’s 18×: more parameters to hold per activated FLOP.

cellquantityvalue (exact)scientific SIformula
NkdaKDA attention params, one layer443,740,3844.44 × 108444 M3 · d · P + 3 · P · kcv + d · rα + rα · P + P + nh + d · nh + d · P + dh + P · d (q/k/v projections, three depthwise convs, decay fa·fb + dt bias + A_log, β, full-rank output gate, gated-norm weight, out-proj)
Nmlagated-MLA attention params, one layer232,196,0962.32 × 108232 Md · rq + rq + rq · nh · (dh + dRh) + d · (rkv + dRh) + rkv + rkv · nh · (dh + dh) + d · P + P · d (q down · norm · up, kv down · norm · up, full-rank gate, out-proj)
Nrtrouter params, one layer6,423,4246.42 × 1066.42 ME · d + E (weight + correction bias)
Neparams, one routed expert33,030,1443.30 × 10733.0 M3 · ℓ · I (gate, up, down in the latent)
Nlatlatent projections, one layer51,383,8085.14 × 10751.4 Md · ℓ + ℓ + ℓ · d (down · norm · up)
Nshshared-expert params, one layer132,120,5761.32 × 108132 M3 · d · I · nsh
NmoeMoE FFN params, one layer29,784,936,8322.98 × 101029.8 GNrt + E · Ne + Nsh + Nlat
NactmoeMoE FFN params a token activates, one layer718,410,1127.18 × 108718 MNrt + k · Ne + Nsh + Nlat
Ndnsdense FFN params726,663,1687.27 × 108727 M3 · d · Idns
Nmiscnorms + attention-residual params, one layer43,0084.30 × 10443.0 K6 · d (two block RMSNorms; two AttnRes norms and two pseudo-query projections)
Nembembedding (= LM head) params1,174,405,1201.17 × 1091.17 GV · d
Nfinfinal norm + attention-residual params21,5042.15 × 10421.5 K3 · d
Ntottotal params2,779,484,476,0002.78 × 10122.78 T2 · Nemb + (Nkda + Ndns + Nmisc) + (Lkda − Ldns) · (Nkda + Nmoe + Nmisc) + Lmla · (Nmla + Nmoe + Nmisc) + Nfin (text model; the 401M vision tower and the (unreleased) MTP layer are out)
Nactivated params104,189,612,6401.04 × 1011104 GNemb + (Nkda + Ndns + Nmisc) + (Lkda − Ldns) · (Nkda + Nactmoe + Nmisc) + Lmla · (Nmla + Nactmoe + Nmisc) + Nfin (DeepSeek’s convention: the embedding lookup is not counted, the head is)
Nexprouted-expert params2,722,740,830,2082.72 × 10122.72 TLmoe · E · Ne
Nnenon-expert params56,743,645,7925.67 × 101056.7 GNtot − Nexp

The batch and the cluster

K3’s report does not state its pre-training batch; Kimi K2 trained at 67M tokens per step, which this sheet adopts as 8,192 sequences of 8,192 tokens (K3 pre-trains at 8k context before extension). The cluster size is the knob the whole page is about; its default is the answer the last section reaches.

cellquantityvalue (exact)scientific SIformula
Bsequences per step8,192(model input: 67M tokens per step, Kimi K2’s pre-training batch; K3’s is not published)
Stokens per sequence8,192(model input: K3 pre-trains at 8k before extending)
Dtokens per step67,108,8646.71 × 10767.1 MB · S
GPUsGPUs in the cluster288(model input: four NVL72 domains, the smallest cluster where policy A fits with EP spanning a whole domain, FP32 gradients and states and no host offload (with CP 3) — see the tables at the end)
DGPUtokens per GPU per step2.33 × 105233 KD / GPUs

Compute

The compute time per step is a sum of GEMM terms, one sheet each. The recipe, as briefed: MXFP8 for the attention projections, the dense FFN and shared experts, the routed experts and their latent projections, and the LM head; the routers run BF16 with FP32 logits out; both attention cores in BF16. The routers come first, since the MXFP8 term is 6ND less theirs. Set h8 to 0 to run the LM head in BF16 instead: its GEMMs move to the BF16 term, the pipeline split reprices the last chunk, and the head’s rank keeps a BF16 weight.

cellquantityvalue (exact)scientific SIformula
h8LM head in MXFP81(model input: 1 = MXFP8 (the briefed recipe), 0 = BF16)
Nbf16params in BF16 GEMMs590,872,5765.91 × 108591 MLmoe · E · d + (1 − h8) · Nemb (the routers (BF16 forward, FP32 logits out), and the LM head when h8 = 0; every other linear runs MXFP8)
Cbf16BF16 GEMM FLOPs inside 6ND237,916,724,064,681,9842.38 × 1017238 PFLOP6 · Nbf16 · D
Tbf16BF16 GEMM time, routers (and a BF16 head) (s)4.59 × 10−1459 msCbf16 / (GPUs · πsolbf16)

Routed experts could run their weights in MXFP4, K3’s post-training QAT format, but this sheet keeps them in MXFP8; πfp4 is listed for the reader who wants to try it.

cellquantityvalue (exact)scientific SIformula
CFLOPs per step, 6ND41,952,279,269,222,645,7604.20 × 101942.0 EFLOP6 · N · D
Cfp8FP8 GEMM FLOPs inside 6ND41,714,362,545,157,963,7764.17 × 101941.7 EFLOPC − Cbf16
Tfp8FP8 GEMM time (s)4.02 × 10140.2 sCfp8 / (GPUs · πsolfp8)

Softmax attention runs on the 24 gated-MLA layers, BF16, quadratic in S and outside 6ND.

cellquantityvalue (exact)scientific SIformula
cqkQKᵀ-shaped FLOPs · one MLA layer, one sequence1,236,950,581,2481.24 × 10121.24 TFLOP2 · nh · (dh + dRh) · S · S / 2 (causal keeps half the pairs)
cpvPV-shaped FLOPs · one MLA layer, one sequence824,633,720,8328.25 × 1011825 GFLOP2 · nh · dh · S · S / 2
Csdpasoftmax-attention FLOPs per step1,459,166,279,268,040,7041.46 × 10181.46 EFLOPLmla · B · (4 · cqk + 3 · cpv) (FlashAttention: QKᵀ-shaped ×4 (fwd, bwd replay, dQ, dK), PV-shaped ×3 (fwd, dV, dP))
Tsdpasoftmax-attention time, BF16 (s)2.81 × 1002.81 sCsdpa / (GPUs · πsolbf16)

The KDA core is priced per token from its chunkwise form: three dh×dh state matmuls per head plus the intra-chunk terms; it is small, and this is the roughest line on the page.

cellquantityvalue (exact)scientific SIformula
CchKDA chunk size64(chunkwise form: recurrent across chunks, parallel within)
ckdaKDA FLOPs per token, one layer, fwd17,301,5041.73 × 10717.3 MFLOPnh · (6 · dh · dh + 10 · Cch · dh) (per head: read, correct and update the dh×dh state (3 matmuls), plus the intra-chunk KKᵀ, UT transform (W, U) and QKᵀ·U terms; the C×C inverse is dropped)
CkdaKDA FLOPs per step240,344,445,738,811,3922.40 × 1017240 PFLOP3 · Lkda · D · ckda (fwd + 2× for bwd; the kernel’s own state recompute is not counted)
TkdaKDA time, BF16 (s)4.64 × 10−1464 msCkda / (GPUs · πsolbf16)

Policy A recomputes only vector work, which 6ND never counted, so it adds no time here; policy B replays every non-expert, non-core matmul once in backward, a 2ND term on the replayed parameters.

cellquantityvalue (exact)scientific SIformula
Nrpparams replayed under policy B54,394,835,5525.44 × 101054.4 GN − Nemb − Lmoe · k · Ne (everything a token activates except the head and the routed experts: attention projections, latent, shared experts, routers, the dense FFN)
Crprecompute FLOPs per step, policy B7,300,751,242,723,065,8567.30 × 10187.30 EFLOP2 · Nrp · D (one forward replay)
Trpreplay time, policy B (s)7.04 × 1007.04 sCrp / (GPUs · πsolfp8)
cArp8replayed MXFP8-GEMM FLOPs per token, all layers, policy A00.00 × 1000 FLOP(from the recompute figure: the matmuls its marks replay, one forward each (K3’s policy replays none; vector work stays unpriced))
cArpbfreplayed BF16 FLOPs per token, all layers, policy A00.00 × 1000 FLOP(from the recompute figure: the router and the attention kernels it replays (attention at S = 8,192))
TArpreplay time, policy A (s)00.00 × 1000 msD · (cArp8 / πsolfp8 + cArpbf / πsolbf16) / GPUs

Muon adds one more GEMM term: five Newton–Schulz iterations per weight matrix per step, BF16. K3 orthogonalizes q, k and v one head block at a time (Per-Head Muon, its §2.5), which makes the attention projections cheap; the 3 · 896 routed-expert matrices per layer are almost all of it. Each matrix is orthogonalized once, by the rank that owns it, after the pipeline drains: 472 ms per step against 44.0 s of compute, a share that holds at any cluster size, since a fixed batch spreads both over the same GPUs.

cellquantityvalue (exact)scientific SIformula
nNSNewton–Schulz iterations per step5(Muon’s quintic iteration, as Kimi K2 and Moonlight run it)
cNSkdaNewton–Schulz FLOPs, one KDA layer’s attention33,310,521,098,2403.33 × 101333.3 TFLOPnNS · (3 · nh · (4 · dh · dh · d + 2 · dh · dh · dh) + 4 · rα · rα · d + 2 · rα · rα · rα + 4 · rα · rα · P + 2 · rα · rα · rα + 4 · nh · nh · d + 2 · nh · nh · nh + 2 · (4 · d · d · P + 2 · d · d · d)) (per m×n matrix (m ≤ n) and iteration: XXᵀ 2m²n, bA + cA² 2m³, BX 2m²n. Per-Head Muon (K3 §2.5) splits q, k and v into nh blocks of dh×d; then fa, fb, the β projection, the output gate and o whole; conv taps, decay and biases are vectors (AdamW))
cNSmlaNewton–Schulz FLOPs, one gated-MLA layer’s attention33,195,968,430,0803.32 × 101333.2 TFLOPnNS · (4 · rq · rq · d + 2 · rq · rq · rq + nh · (4 · (dh + dRh) · (dh + dRh) · rq + 2 · (dh + dRh) · (dh + dRh) · (dh + dRh)) + 4 · (rkv + dRh) · (rkv + dRh) · d + 2 · (rkv + dRh) · (rkv + dRh) · (rkv + dRh) + 2 · nh · (4 · dh · dh · rkv + 2 · dh · dh · dh) + 2 · (4 · d · d · P + 2 · d · d · d)) (the q and kv down-projections whole; the q up-projection per head, (dh + dRh)×rq; the kv up-projection per head for K and for V, dh×rkv each; the output gate and o whole)
cNSmoeNewton–Schulz FLOPs, one MoE layer2,625,514,997,022,7202.63 × 10152.63 PFLOPnNS · (4 · E · E · d + 2 · E · E · E + 3 · E · (4 · I · I · ℓ + 2 · I · I · I) + 2 · (4 · ℓ · ℓ · d + 2 · ℓ · ℓ · ℓ) + 3 · (4 · nsh · I · nsh · I · d + 2 · nsh · I · nsh · I · nsh · I)) (the router (K3 runs Muon on every matrix parameter; it is 0.05 % of the total either way), each routed expert’s three I×ℓ matrices, the latent down and up projections, the fused shared expert’s three)
cNSdnsNewton–Schulz FLOPs, the dense FFN115,223,235,133,4401.15 × 1014115 TFLOPnNS · 3 · (4 · d · d · Idns + 2 · d · d · d)
CNSNewton–Schulz FLOPs per step244,757,732,159,324,1602.45 × 1017245 PFLOPLkda · cNSkda + Lmla · cNSmla + Lmoe · cNSmoe + Ldns · cNSdns (every matrix once per step; the embedding and the head are AdamW)
TNSNewton–Schulz time per step, BF16 (s)4.72 × 10−1472 msCNS / (GPUs · πsolbf16) (each matrix orthogonalized once, by its owner, the work spread evenly over every GPU; after the pipeline drains, so outside λ and the bubble (none of it hidden in the drain))

The totals. Newton–Schulz stays out of Tc, which the pipeline schedules stretch, and is added once per step.

cellquantityvalue (exact)scientific SIformula
TAccompute time per step, policy A (s)4.40 × 10144.0 sTfp8 + Tbf16 + Tsdpa + Tkda + TArp (plus whatever the figure’s marks replay; non-matmul replays are unpriced, as 6ND never counted them)
TBccompute time per step, policy B (s)5.10 × 10151.0 sTfp8 + Tbf16 + Tsdpa + Tkda + Trp
ρ∞tokens/s per GPU, compute only, policy A5.24 × 1035.24 KDGPU / (TAc + TNS) (the ceiling: no bubble, no exposed comms)

The layout

EP lives inside one NVLink domain; PP stacks domains, and whatever is left is data parallel. The non-expert parameters are replicated across the EP ranks of a domain, which matters for both memory and the optimizer sharding below. In this sheet a narrower EP never costs rate and always costs memory (more experts per GPU), so left to itself a sweep picks the narrowest EP that fits; but a narrow EP concentrates routing imbalance, and a wide one dilutes it. MoonEP evens out the compute with redundant experts, and its bound of E/EP slots per GPU does grow as EP narrows (priced under NVLink traffic), but at the default ured of 0 that bound costs a narrow EP only the slots’ memory. The sweeps at the end therefore peg EP to the whole domain (72, or 64 if NVL is set so); the knob here is free. CP splits each 8k sequence over CP GPUs of a stage. The GPUs of a CP group hold the same weights (they are replicas of the non-expert slice and members of the domain’s EP group), and each keeps only its own slice’s activations. CP must divide the domain and, for Ulysses, the 96 heads; the sweeps try every such degree (see Context parallelism).

cellquantityvalue (exact)scientific SIformula
PPpipeline ranks4(model input)
EPexpert parallelism72(model input: the whole NVLink domain)
CPcontext parallelism at the pre-training S3(model input: each sequence split over CP GPUs of a stage, Ulysses on the MLA layers and KCP on the KDA layers (see Context parallelism); CP divides every microbatch’s activations and multiplies the microbatches per pipeline. It must divide NVL and the nh heads)
DPreplicas of an expert slice1GPUs / (PP · EP)
DPnereplicas of a non-expert slice72GPUs / PP (every EP rank holds the same non-expert slice)
Vppvirtual stages per rank (interleaved schedules)2(model input; the V-shaped schedules always use 2)

NVLink traffic

Four kinds of traffic share the domain’s NVLink, one sheet each, then their sum. Dispatch and combine stay on NVLink. Per token and MoE layer the latent goes out MXFP8 (with one scale byte per 32) and comes back BF16, to k · (1 − 1/EP) remote ranks without dedup; K3 saves only the dispatch input and re-dispatches in backward, so the forward dispatch is paid three times per step rather than twice.

cellquantityvalue (exact)scientific SIformula
MNVremote ranks per token1.58 × 101k · (1 − 1 / EP) (no dedup: with experts sharing a rank the expectation is EP · (1 − (1 − 1/EP)k) − 1 ≈ 14.2 at EP 72)
Vdispdispatch bytes/token·layer5.83 × 10458.3 KBMNV · ℓ · (1 + 1 / 32) (MXFP8 latent + one E8M0 scale per 32)
Vcombcombine bytes/token·layer1.13 × 105113 KBMNV · ℓ · 2 (BF16)
δdispdispatch replayed in backward1(from the recompute figure, 0/1: K3 saves only the dispatch input and re-dispatches (policy B does too))
δcombcombine replayed in backward0(from the recompute figure, 0/1)
VtokEP NVLink bytes per token3.69 × 10736.9 MB((2 + δdisp) · Vdisp + (2 + δcomb) · Vcomb) · Lmoe (fwd + bwd, plus the replayed all-to-alls)
VEPEP NVLink bytes per GPU·step8.60 × 10128.60 TBVtok · DGPU
TEPEP time per step (s)9.55 × 1009.55 sVEP / βNV

Balance itself has a price. MoonEP makes every rank receive exactly S · k tokens by copying overloaded experts to underloaded ranks, planned per layer and microbatch from the router’s output: the copies’ weights are fetched before the expert GEMMs, and their gradients are reduced back to the home rank afterwards (K3 §5.2.1). K3 proves that ⌈E/EP⌉ = 13 redundant experts per GPU always suffice and reserves that many slots, but it does not say how many a typical step uses, so ured is that share, 0 by default (the brief’s forced balance at no cost). At the bound, the copies would put 22.7 s per step on NVLink, 2.4 times the dispatch and combine (9.55 s). Under the self-overlap default, anything past about 41 % of the bound is exposed: beyond that point the EP traffic and the copies no longer fit under the expert GEMMs (the next sheet). The slots themselves are charged to memory whatever ured is (Mred, under Memory).

cellquantityvalue (exact)scientific SIformula
uredredundant experts in use, share of MoonEP’s bound0(model input: 0 = the brief’s forced balance at no cost, 1 = every GPU fills every slot on every layer and microbatch (the worst case). K3 publishes only the bound)
nmaxredredundant-expert slots per GPU, MoonEP’s bound13⌈E / EP⌉ (K3 §5.2.1 and §E: a balanced plan always exists in which each GPU’s remote tokens come from one other GPU, so it needs at most that GPU’s experts (E/EP, rounded up when EP does not divide E), and some routings need nearly all of them)
Vmaxredredundant-expert bytes per GPU·step, at the bound20,436,763,017,2162.04 × 101320.4 TBnmaxred · Ne · (2 · b8 + gB) · Lmoe · DGPU · CP / S (planned per MoE layer and microbatch (a GPU sees S / CP tokens of each): each slot’s MXFP8 weights fetched for the forward, fetched again in the other orientation for dgrad (the routed experts are never replayed, and holding the slots across the microbatches in flight would cost far more memory), and its gradient reduced back to the home GPU at gB)
Tmaxredredundant-expert time per step, at the bound (s)2.27 × 10122.7 sVmaxred / βNV
Tredredundant-expert time per step (s)00.00 × 1000 msured · Tmaxred

Whether that traffic is hidden depends on the overlap strategy. Forward–backward overlap (DualPipe-style) lets any compute cover it, so the only question is fNV (the last sheet of this section) under 100 %. The default here is the other strategy: a megakernel-style MoE layer that pipelines its own dispatch against fc1/fc3 and its combine against fc2, needing no second microbatch in flight; then only the routed-expert GEMMs are available as cover, and EP time is 50.6 % of them. Under 100 % it is still hidden at speed of light; the exposed remainder, when there is one, is added to the step.

cellquantityvalue (exact)scientific SIformula
ovloverlap strategy1(model input: 0 = forward–backward overlap (DualPipe-style: another microbatch’s compute covers the EP traffic, anything under Tc is hidden); 1 = self-overlap (megakernel-style: dispatch pipelined against fc1/fc3 and combine against fc2, so only the routed-expert GEMMs cover it))
Cexprouted-expert GEMM FLOPs per step19,577,147,580,179,546,1121.96 × 101919.6 EFLOP6 · Lmoe · k · Ne · D (the work the EP traffic can pipeline against; neither policy replays it)
Texprouted-expert GEMM time per step (s)1.89 × 10118.9 sCexp / (GPUs · πsolfp8)
fselfEPEP and redundant-expert time, share of the expert GEMMs5.06 × 10−150.6 %(TEP + Tred) / Texp (over 100 %: under self-overlap the excess is exposed. The redundant experts’ weights must land before the expert GEMMs, in the dispatch’s window; their gradients go back under the backward’s)
TxEPexposed EP time per step (s)00.00 × 1000 msovl · max(0, TEP + Tred − Texp) (zero under forward–backward overlap; the pipeline’s fill and drain per layer are not counted)

The EP ranks also hold identical non-expert slices, whose gradients reduce and whose updated weights gather over the same NVLink.

cellquantityvalue (exact)scientific SIformula
Xe1F1Brouted-expert params on the fullest rank, 1F1B710,280,216,5767.10 × 1011710 G(from the pipeline model: the split’s layers on the rank with the most parameter bytes plus block store (activations are balanced across ranks by K3’s remote offload, parameters are not))
Xn1F1Bnon-expert params on the fullest rank, 1F1B13,939,803,0721.39 × 101013.9 G(its layers’ attention, norms, router, latents and shared experts; the embedding goes with the first chunk, the head with the last)
Xh1F1BLM-head params on the fullest rank, 1F1B00.00 × 1000 (from the pipeline model: Nemb if the head’s chunk is on that rank, else 0 (part of the line above))
XeILVrouted-expert params on the fullest rank, interleaved710,280,216,5767.10 × 1011710 G(from the pipeline model: the split’s layers on the rank with the most parameter bytes plus block store (activations are balanced across ranks by K3’s remote offload, parameters are not))
XnILVnon-expert params on the fullest rank, interleaved14,151,347,3601.42 × 101014.2 G(its layers’ attention, norms, router, latents and shared experts; the embedding goes with the first chunk, the head with the last)
XhILVLM-head params on the fullest rank, interleaved00.00 × 1000 (from the pipeline model: Nemb if the head’s chunk is on that rank, else 0 (part of the line above))
XeVrouted-expert params on the fullest rank, V shape710,280,216,5767.10 × 1011710 G(from the pipeline model: the split’s layers on the rank with the most parameter bytes plus block store (activations are balanced across ranks by K3’s remote offload, parameters are not); the V shape puts the embedding and the head on rank 0)
XnVnon-expert params on the fullest rank, V shape14,151,347,3601.42 × 101014.2 G(its layers’ attention, norms, router, latents and shared experts; the embedding goes with the first chunk, the head with the last)
XhVLM-head params on the fullest rank, V shape00.00 × 1000 (from the pipeline model: Nemb if the head’s chunk is on that rank, else 0 (part of the line above))
Qexprouted-expert params on this GPU, the fullest 1F1B rank9,865,003,0089.87 × 1099.87 GXe1F1B / EP (the rank’s experts, sharded over EP)
Qnenon-expert params on this GPU, the fullest 1F1B rank13,939,803,0721.39 × 101013.9 GXn1F1B
VNVnenon-expert grad reduce + weight gather over NVLink, bytes/GPU82,477,168,1768.25 × 101082.5 GBQne · (1 − 1 / EP) · (gB + 2) (the EP ranks are replicas of the non-expert slice: gradient reduce-scatter, BF16 all-gather, ring volume)
TNVnenon-expert sync over NVLink (s)9.16 × 10−291.6 msVNVne / βNV

Context parallelism’s collectives run inside the domain too: Ulysses’ all-to-alls on the MLA layers and KCP’s state gather on the KDA layers (see Context parallelism, below, for both).

cellquantityvalue (exact)scientific SIformula
VCPcontext-parallel bytes per GPU·step over NVLink1.21 × 10121.21 TB(2 · (CP − 1) / CP · vuly · Lmla + 4 · nh · dh · dh · 4 · (CP − 1) · CP / S · Lkda) · DGPU (Ulysses on the MLA layers, KCP’s state all-gather on the KDA layers (both priced in Context parallelism); zero at CP 1)
TCPcontext-parallel time per step (s)1.35 × 1001.35 sVCP / βNV
TxCPexposed context-parallel time per step (s)1.35 × 1001.35 sovl · TCP (under self-overlap no second microbatch is in flight, and Ulysses’ all-to-alls and KCP’s state gather sit between one microbatch’s kernels: all of it exposed (pessimistic for KCP, whose intra-chunk work could run under the gather); under forward–backward overlap it hides like the EP traffic)

At speed of light NVLink is busy for 25.0 % of the compute time: fine, but not negligible, and the share is independent of cluster size (both sides scale with tokens per GPU).

cellquantityvalue (exact)scientific SIformula
TNVNVLink time per step (s)1.10 × 10111.0 sTEP + Tred + TNVne + TCP
fNVNVLink time, share of compute (policy A)2.50 × 10−125.0 %TNV / TAc

ZeRO-1 over the scale-out network

Optimizer states are sharded over every replica of a slice. The per-step cost is a reduce-scatter of the gradients (at gB) and a BF16 all-gather of the updated weights of each GPU’s IB share, plus Muon’s Newton–Schulz gather (each rank fetches the remote shards of the matrices it owns). When a slice has exactly one replica the term is zero: that is the situation at the default cluster size, and it is why the smallest cluster is also the one with no scale-out optimizer traffic at all.

cellquantityvalue (exact)scientific SIformula
Ψparams/GPU over IB9.65 × 1099.65 G(Nne + Nexp) / (PP · EP) (the expert slice whole; the non-expert slice split among the domain’s EP ranks, who gather the rest over NVLink)
VNSNewton–Schulz gather, bytes/GPU00.00 × 1000 BΨ / DP · (1 − 1 / DP) · 4 (Muon: each rank fetches the remote shards of the matrices it owns, FP32)
VsyncZeRO-1 bytes/GPU per step00.00 × 1000 BΨ · (1 − 1 / DP) · (gB + 2) + VNS (gradient reduce-scatter at gB, BF16 all-gather; zero when the slice has one replica)
TsyncZeRO-1 time per step (s)00.00 × 1000 msVsync / βIB

Pipeline parallelism

A pipeline boundary carries more than one residual. Every attention-residual mix reads the block store (the embedding and one sum per finished 12-layer block) as well as the running partial sum, so a transition must carry the blocks the next rank does not hold yet, plus the partial sum; the widths grow down the pipe, from 2 to 9 hidden vectors per token. Each rank keeps every block it has seen for the microbatch (the AttnRes paper’s cross-stage caching), which saves traffic only when a rank sees the same microbatch a second time, as in interleaved and V-shaped schedules; there it cuts the return trip, but each rank also has twice the transitions. The figure counts it exactly for each layout; the sheet charges the busiest rank, both directions. It is charged to the scale-out link even when the whole pipeline fits inside a domain.

The bubble is plain 1F1B without virtual stages; with 100+ microbatches per pipeline at the default size it is a few percent, and virtual stages would cut it further at larger clusters.

cellquantityvalue (exact)scientific SIformula
rreshidden vectors the busiest rank sends per token, forward + backward17(from the pipeline model at this PP (the figure above): each transition carries the AttnRes blocks the receiving rank lacks plus the partial sum, backward returns the same as gradients; the widest of 1F1B, interleaved and V)
DPPtokens per pipeline per step9.32 × 105932 KD · PP / GPUs
Vresboundary bytes per token, busiest rank243,7122.44 × 105244 KBrres · d · 2 (BF16)
VPPPP bytes per GPU·step2.27 × 1011227 GBVres · DPP (the busiest rank, both directions; charged to the scale-out link)
TPPPP time per step (s)2.27 × 1002.27 sVPP / βIB
mmicrobatches per pipeline per stepDPP · CP / S (one sequence each, split over CP GPUs of a stage: a GPU sees S / CP tokens of it)
bPP1F1B bubble, share of compute8.79 × 10−30.879 %(PP − 1) / m (no virtual stages)
cmax8,1F1Bslowest rank’s FP8-GEMM FLOPs per token, 1F1B158,815,555,2001.59 × 1011159 GFLOP(from the pipeline model at this PP: chunks cut to balance roofline time per rank, the LM head on the last chunk (K3 publishes no split))
cmaxbf,1F1Bslowest rank’s BF16 FLOPs per token, 1F1B7,294,943,2327.29 × 1097.29 GFLOP(the router and the attention kernels on that rank)
λ1F1Bstage imbalance, 1F1B: slowest rank over the meanPP · (cmax8,1F1B / πsolfp8 + cmaxbf,1F1B / πsolbf16) · D / (Cfp8 / πsolfp8 + (Cbf16 + Csdpa + Ckda) / πsolbf16) (whole layers per rank: the slowest stage sets the pipeline’s pace, bubble included)
cmax8,ILVslowest rank’s FP8-GEMM FLOPs per token, interleaved158,815,555,2001.59 × 1011159 GFLOP(from the pipeline model at this PP: chunks cut to balance roofline time per rank, the LM head on the last chunk (K3 publishes no split))
cmaxbf,ILVslowest rank’s BF16 FLOPs per token, interleaved7,294,943,2327.29 × 1097.29 GFLOP(the router and the attention kernels on that rank)
λILVstage imbalance, interleaved: slowest rank over the meanPP · (cmax8,ILV / πsolfp8 + cmaxbf,ILV / πsolbf16) · D / (Cfp8 / πsolfp8 + (Cbf16 + Csdpa + Ckda) / πsolbf16) (whole layers per rank: the slowest stage sets the pipeline’s pace, bubble included)
cmax8,Vslowest rank’s FP8-GEMM FLOPs per token, V shape158,815,555,2001.59 × 1011159 GFLOP(from the pipeline model at this PP: chunks cut to balance roofline time per rank, the LM head on the last chunk (K3 publishes no split))
cmaxbf,Vslowest rank’s BF16 FLOPs per token, V shape7,294,943,2327.29 × 1097.29 GFLOP(the router and the attention kernels on that rank)
λVstage imbalance, V shape: slowest rank over the meanPP · (cmax8,V / πsolfp8 + cmaxbf,V / πsolbf16) · D / (Cfp8 / πsolfp8 + (Cbf16 + Csdpa + Ckda) / πsolbf16) (whole layers per rank: the slowest stage sets the pipeline’s pace, bubble included)
TAbubbubble time per step, policy A (s)3.95 × 10−1395 msTAc · λ1F1B · bPP (bubbles are slots of the slowest stage)
TBbubbubble time per step, policy B (s)4.58 × 10−1458 msTBc · λ1F1B · bPP

Memory

Weights unsharded in MXFP8 (gathered in BF16, kept in both scaling orientations: 2 · (1 + 1/32) B per parameter); gradients unsharded at gB bytes (4 for the all-FP32 policy, 2 for BF16 grads with FP32 accumulation in the epilogue; K3’s pipeline ZeRO-2 with CPU-offloaded shards would remove most of this line, left in as the device-resident case); optimizer state oB bytes per parameter (FP32 master + one Muon momentum, FP32 or BF16) sharded across all replicas. Both are knobs; the second table at the end sweeps all four combinations. The per-token stash is tallied per layer kind under each policy: MXFP8 for anything a GEMM consumes or a replayed vector op needs, BF16 for the kernels’ inputs and outputs. Under policy A the routed experts’ fc1 outputs dominate (k · 2 · I bytes per token per layer); policy B keeps those and little else.

Not every rank holds the same bytes. Activations can move: K3 offloads them to other pipeline ranks until every rank holds the same share, so the activation rows below are averages. Parameters cannot, and the split under Pipeline parallelism balances time, not bytes: the rank with the head gets fewer layers, and the embedding, which costs nothing to run, puts 1.2B parameters of weights and gradients on the first chunk’s rank. The V shape puts both on rank 0. The memory rows therefore test the fullest rank of each schedule family (1F1B, interleaved, V): its layers’ experts and non-expert parameters, the embedding or head if it has them, and its AttnRes block store, which is never offloaded (blocks held × microbatches in flight on that rank). With FLOP-balanced cuts the fullest rank carries 2 to 6 % more parameter bytes than the average at PP 3 to 8, where the minimum clusters sit, and up to 15 % at PP 24, where the embedding’s rank has as many layers as any other; a split that balanced bytes instead would trade that back against the stage imbalance λ.

cellquantityvalue (exact)scientific SIformula
μreserved for temporaries, share of device memory0.11.00 × 10−110 %(model input: workspace, communication buffers, fragmentation, the allocator’s slack — none of it is in the tally; the last table sweeps this)
Museusable memory per GPU (B)267,318,853,6322.67 × 1011267 GBMGPU · (1 − μ)
b8bytes per MXFP8 element1.031251 + 1 / 32 (one E8M0 scale per 32)
gBbytes per unsharded gradient element4(model input: 4 = FP32 grads, accumulation and reduce-scatter; 2 = BF16 grads and reduce-scatter with FP32 accumulation in the epilogue)
oBoptimizer bytes per sharded param8(model input: FP32 master weights + one Muon momentum: 8 = FP32 states, 6 = BF16 states)
Wweights on this GPU, MXFP8 (B)49,097,412,5404.91 × 101049.1 GB2 · b8 · (Qexp + Qne) − (1 − h8) · (2 · b8 − 2) · Xh1F1B (unsharded, resident in both scaling orientations (forward and dgrad), as Transformer Engine keeps them; a BF16 head keeps its gathered BF16 copy, 2 B per param)
Ggradients on this GPU (B)95,219,224,3209.52 × 101095.2 GBgB · (Qexp + Qne) (unsharded; K3’s pipeline ZeRO-2 + CPU offload would cut this)
Ooptimizer state on this GPU (B)80,468,891,0728.05 × 101080.5 GBoB · (Qexp / DP + Qne / DPne) (sharded across every replica of the slice)
Mredredundant-expert slots on this GPU (B)2,160,377,8562.16 × 1092.16 GBnmaxred · Ne · (b8 + gB) (MoonEP reserves the bound whatever ured, so planning never fails: one MoE layer’s slots at a time, MXFP8 weights in one orientation and the gradient staging buffer at gB)
WILVweights + gradients on the fullest rank, interleaved (B)145,599,124,1061.46 × 1011146 GB(2 · b8 + gB) · (XeILV / EP + XnILV) − (1 − h8) · (2 · b8 − 2) · XhILV
OILVoptimizer state on the fullest rank, interleaved (B)8.05 × 101080.5 GBoB · (XeILV / (EP · DP) + XnILV / DPne)
WVweights + gradients on the fullest rank, V shape (B)145,599,124,1061.46 × 1011146 GB(2 · b8 + gB) · (XeV / EP + XnV) − (1 − h8) · (2 · b8 − 2) · XhV
OVoptimizer state on the fullest rank, V shape (B)8.05 × 101080.5 GBoB · (XeV / (EP · DP) + XnV / DPne)

What each layer stashes for backward depends on which ops replay. The figure below is the block as an op graph: click an op to flip it between saved (↓) and recomputed (↻, teal); a recomputed op’s inputs must then be stashed or recomputed in turn, so a flip can move bytes elsewhere. The presets are no recompute, K3’s policy (element-wise operators and the attention-residual mixes recompute, the routed experts’ input comes back by re-dispatching, GEMM outputs stay in block-wise FP8) and recompute all (replay the layer from its input, both all-to-alls included). Stash formats stay at K3’s recipe throughout, so only the recompute choice moves. The figure drives the sheet’s policy A: its stash rows below are Σ κ · rate with one kept? input κ per tensor, set from the figure’s marks; a replayed all-to-all adds to the EP traffic, a replayed matmul or attention kernel to policy A’s compute time, and every table further down re-runs. The K3 preset is the published policy A.

cellquantityvalue (exact)scientific SIformula
σresresidual stash per token, one layer28,6722.87 × 10428.7 KBd · 2 + κmix1 · d · 2 + κx1 · d · 2 + κmix2 · d · 2 (x0, the checkpoint anchor, always; the rest as the figure stashes them, BF16; the AttnRes store is σstore)
σAkdaKDA stash per token, policy A88,2918.83 × 10488.3 KBκn1 · d · b8 + κrstd1 · 4 + κqkv · 3 · P · b8 + κconv · 3 · P · 2 + κα · P · b8 + κfa · 2 · rα + κβ · nh · b8 + κg · P · b8 + κscan · P · 2 + κgo · P · b8 + κrstdg · 4 · nh + κout · d · 2 (κ = 1 where the recompute figure stashes the tensor (its kept? row below); the formats are K3’s recipe)
σAmlagated-MLA stash per token, policy A138,1141.38 × 105138 KBκn1 · d · b8 + κrstd1 · 4 + κcq · rq · b8 + κckv · (rkv + dRh) · b8 + κncq · rq · b8 + κrstdq · 4 + κnckv · rkv · b8 + κrstdkv · 4 + κq · nh · (dh + dRh) · 2 + κkv · nh · (2 · dh + dRh) · 2 + κattn · nh · dh · 2 + κlse · 4 · nh + κg · P · b8 + κgo · P · b8 + κout · d · 2 (κ = 1 where the recompute figure stashes the tensor (its kept? row below); the formats are K3’s recipe)
σAmoeMoE stash per token, policy A125,0881.25 × 105125 KBκn2 · d · (2 + b8) + κrstd2 · 4 + κrt · (E + k) · 4 + κz · ℓ · b8 + κdisp · k · ℓ · b8 + κfc1 · k · 2 · I · b8 + κact · k · I · b8 + κfc2 · k · ℓ · 2 + κcomb · ℓ · b8 + κnz · ℓ · b8 + κrstdz · 4 + κup · d · 2 + κfc1s · 2 · I · nsh · b8 + κacts · I · nsh · b8 + κfc2s · d · 2 + κadd · d · 2 (κ = 1 where the recompute figure stashes the tensor (its kept? row below); the formats are K3’s recipe)
σAdnsdense-FFN stash per token, policy A69,6966.97 × 10469.7 KBκn2 · d · b8 + κrstd2 · 4 + κfc1d · 2 · Idns · b8 + κactd · Idns · b8 + κfc2d · d · 2 (κ = 1 where the recompute figure stashes the tensor (its kept? row below); the formats are K3’s recipe)
σstoreone AttnRes block, per token14,3361.43 × 10414.3 KBd · 2 (BF16; a rank holds the blocks it has seen for every microbatch in flight, from the forward until that microbatch’s backward ends, and the cross-rank offload does not move them)
σAstash per token, all layers, policy A24,634,1432.46 × 10724.6 MBL · σres + Lkda · σAkda + Lmla · σAmla + Lmoe · σAmoe + Ldns · σAdns + 6 · V (+ the head’s BF16 logits and FP32 loss gradient)
cellquantityvalue (exact)scientific SIformula
κmix1attn mix out kept?0(from the recompute figure, 0/1)
κx1x1 (partial sum) kept?1(from the recompute figure, 0/1)
κmix2ffn mix out kept?0(from the recompute figure, 0/1)
κn1norm1 out kept?0(from the recompute figure, 0/1)
κrstd1norm1 out: its rstd kept?0(from the recompute figure, 0/1)
κqkvq, k, v (pre-conv) kept?1(from the recompute figure, 0/1)
κconvq, k, v kept?0(from the recompute figure, 0/1)
καα (decay) kept?1(from the recompute figure, 0/1)
κfaα (decay): its f_a output kept?1(from the recompute figure, 0/1)
κββ kept?1(from the recompute figure, 0/1)
κggate kept?1(from the recompute figure, 0/1)
κscanscan out kept?1(from the recompute figure, 0/1)
κgogated out kept?0(from the recompute figure, 0/1)
κrstdggated out: its rstd kept?0(from the recompute figure, 0/1)
κoutattn proj out kept?0(from the recompute figure, 0/1)
κcqq latent kept?1(from the recompute figure, 0/1)
κckvkv latent kept?1(from the recompute figure, 0/1)
κncqnorm(q latent) kept?0(from the recompute figure, 0/1)
κrstdqnorm(q latent): its rstd kept?0(from the recompute figure, 0/1)
κnckvnorm(kv latent) kept?0(from the recompute figure, 0/1)
κrstdkvnorm(kv latent): its rstd kept?0(from the recompute figure, 0/1)
κqq kept?1(from the recompute figure, 0/1)
κkvk, v kept?1(from the recompute figure, 0/1)
κattnattn out kept?1(from the recompute figure, 0/1)
κlseattn out: its lse kept?1(from the recompute figure, 0/1)
κn2norm2 out kept?0(from the recompute figure, 0/1)
κrstd2norm2 out: its rstd kept?0(from the recompute figure, 0/1)
κrtrouter state (logits, k probs) kept?1(from the recompute figure, 0/1)
κzz (latent) kept?1(from the recompute figure, 0/1)
κdispdispatched tokens kept?0(from the recompute figure, 0/1)
κfc1gate, up (routed) kept?1(from the recompute figure, 0/1)
κactact out (routed) kept?0(from the recompute figure, 0/1)
κfc2expert outputs kept?0(from the recompute figure, 0/1)
κcombcombined latent kept?1(from the recompute figure, 0/1)
κnznorm(latent) kept?0(from the recompute figure, 0/1)
κrstdznorm(latent): its rstd kept?0(from the recompute figure, 0/1)
κupmoe out kept?0(from the recompute figure, 0/1)
κfc1sgate, up (shared) kept?1(from the recompute figure, 0/1)
κactsact out (shared) kept?0(from the recompute figure, 0/1)
κfc2sshared out kept?0(from the recompute figure, 0/1)
κaddffn out kept?0(from the recompute figure, 0/1)
κfc1dgate, up kept?1(from the recompute figure, 0/1)
κactdact out kept?0(from the recompute figure, 0/1)
κfc2dffn out kept?0(from the recompute figure, 0/1)
cellquantityvalue (exact)scientific SIformula
σBkdaKDA stash per token, policy B24,5762.46 × 10424.6 KB2 · P (the kernel output only; its inputs come back with the replay)
σBmlagated-MLA stash per token, policy B24,9602.50 × 10425.0 KB2 · P + 4 · nh (o and the LSE)
σBmoeMoE stash per token, policy B105,1361.05 × 105105 KBk · 2 · I · b8 + ℓ · b8 + 4 · k (the experts’ fc1 outputs, the combined latent, k probs; dispatch input, router, latent and shared experts come back with the replay)
σBstash per token, all layers, policy B14,283,5841.43 × 10714.3 MBL · 2 · d + Lkda · σBkda + Lmla · σBmla + Lmoe · σBmoe + 6 · V (block inputs BF16 + the kept kernels’ stashes + the head)

Activations in flight: one sequence per microbatch, (PP + 1)/2 microbatches resident on average once cross-rank offload balances 1F1B’s skew, and this rank’s 1/PP of the layers.

cellquantityvalue (exact)scientific SIformula
nfltmicrobatches in flight, 1F1B, averaged over ranks2.5(PP + 1) / 2 (1F1B holds PP − r on rank r; cross-rank offload balances them)
AAsaved activations per GPU, policy A, 1F1B (B)42,042,270,7204.20 × 101042.0 GBσA · S / CP · nflt / PP (S / CP tokens of one sequence per microbatch, balanced across ranks by the remote offload)
ABsaved activations per GPU, policy B, 1F1B (B)2.44 × 101024.4 GBσB · S / CP · nflt / PP
H1F1BAttnRes blocks × microbatches in flight on the fullest rank, 1F1B121.20 × 101(from the pipeline model: blocks held × (PP − r) microbatches)
Ast1F1Bblock store on the fullest rank, 1F1B (B)469,762,0484.70 × 108470 MBH1F1B · σstore · S / CP
HILVAttnRes blocks × microbatches in flight on the fullest rank, interleaved272.70 × 101(from the pipeline model: blocks held × chunks in flight / V)
AstILVblock store on the fullest rank, interleaved (B)1,056,964,6081.06 × 1091.06 GBHILV · σstore · S / CP
HVAttnRes blocks held on the fullest rank per microbatch, V shape6(from the pipeline model; every rank holds the same number of microbatches in a V, so each schedule multiplies by its own n)
MAmemory per GPU, policy A, 1F1B (B)269,457,938,5562.69 × 1011269 GBW + G + O + Mred + AA + Ast1F1B (the fullest rank)
MBmemory per GPU, policy B, 1F1B (B)2.52 × 1011252 GBW + G + O + Mred + AB + Ast1F1B
fAmemof usable memory, policy A1.01 × 100101 %MA / Muse (over 100 %: does not fit)
fBmemof usable memory, policy B9.42 × 10−194.2 %MB / Muse

Other schedules

The rows above are plain 1F1B. Each schedule changes two cells: the microbatches in flight (memory) and the bubble (time). Interleaving with V virtual stages divides the bubble by V but roughly doubles the in-flight count; splitting the weight gradient off the backward (zero-bubble, ZB-H1) fills a further two thirds of the bubble at the same memory. The V-shaped schedules of “Pipeline Parallelism with Controllable Memory” (arXiv 2405.15362) put two chunks per rank in a V and trade bubble for memory: V-Min at a third of 1F1B’s peak, V-Half at half, V-ZB at 1F1B’s peak with no bubble at all. Bubble shares use the paper’s unit-time (F = B = W) counts; memory is the paper’s exact per-rank peak for the V schedules and the rank-averaged count for the interleaved ones. The sweep tables at the end consider every schedule.

cellquantityvalue (exact)scientific SIformula
nILVfltmicrobatches in flight, interleaved 1F1B3.5PP − 1 + 1 / Vpp (rank r warms up with 2 · (PP − r − 1) + (V − 1) · PP + 1 chunks of 1/V; averaged over ranks, balanced by cross-rank offload)
bILVbubble, interleaved 1F1B, share of compute4.39 × 10−30.439 %(PP − 1) / (Vpp · m)
MAILVmemory per GPU, policy A, interleaved 1F1B (B)2.88 × 1011288 GBWILV + OILV + Mred + σA · S / CP · nILVflt / PP + AstILV (the fullest rank)
MBILVmemory per GPU, policy B, interleaved 1F1B (B)2.63 × 1011263 GBWILV + OILV + Mred + σB · S / CP · nILVflt / PP + AstILV (the fullest rank)
ρAILVtokens/s per GPU, policy A, interleaved 1F1B4.97 × 1034.97 KDGPU / (TAc · λILV · (1 + bILV) + TNS + TxEP + TxCP)
ρBILVtokens/s per GPU, policy B, interleaved 1F1B4.30 × 1034.30 KDGPU / (TBc · λILV · (1 + bILV) + TNS + TxEP + TxCP)
cellquantityvalue (exact)scientific SIformula
nIZBfltmicrobatches in flight, interleaved zero-bubble (ZB-H1 split)3.5PP − 1 + 1 / Vpp (as interleaved 1F1B)
bIZBbubble, interleaved zero-bubble (ZB-H1 split), share of compute1.46 × 10−30.146 %(PP − 1) / (3 · Vpp · m) (F + B − W over F + B + W at F = B = W)
MAIZBmemory per GPU, policy A, interleaved zero-bubble (ZB-H1 split) (B)2.88 × 1011288 GBWILV + OILV + Mred + σA · S / CP · nIZBflt / PP + AstILV (the fullest rank)
MBIZBmemory per GPU, policy B, interleaved zero-bubble (ZB-H1 split) (B)2.63 × 1011263 GBWILV + OILV + Mred + σB · S / CP · nIZBflt / PP + AstILV (the fullest rank)
ρAIZBtokens/s per GPU, policy A, interleaved zero-bubble (ZB-H1 split)4.98 × 1034.98 KDGPU / (TAc · λILV · (1 + bIZB) + TNS + TxEP + TxCP)
ρBIZBtokens/s per GPU, policy B, interleaved zero-bubble (ZB-H1 split)4.32 × 1034.32 KDGPU / (TBc · λILV · (1 + bIZB) + TNS + TxEP + TxCP)
cellquantityvalue (exact)scientific SIformula
nVminfltmicrobatches in flight, ZB-V-Min2⌈(PP + 2) / 3⌉ (exact, every rank alike)
bVminbubble, ZB-V-Min, share of compute0.00781257.81 × 10−30.781 %2 · PP / (3 · m) (≈ 4 · PP pass-units per step over 6 · m; small constants dropped)
MAVminmemory per GPU, policy A, ZB-V-Min (B)2.62 × 1011262 GBWV + OV + Mred + (σA / PP + HV · σstore) · S / CP · nVminflt (the fullest rank)
MBVminmemory per GPU, policy B, ZB-V-Min (B)2.48 × 1011248 GBWV + OV + Mred + (σB / PP + HV · σstore) · S / CP · nVminflt (the fullest rank)
ρAVmintokens/s per GPU, policy A, ZB-V-Min4.95 × 1034.95 KDGPU / (TAc · λV · (1 + bVmin) + TNS + TxEP + TxCP)
ρBVmintokens/s per GPU, policy B, ZB-V-Min4.29 × 1034.29 KDGPU / (TBc · λV · (1 + bVmin) + TNS + TxEP + TxCP)
cellquantityvalue (exact)scientific SIformula
nVhalffltmicrobatches in flight, ZB-V-Half3⌈(PP + 1) / 2⌉ (exact, every rank alike)
bVhalfbubble, ZB-V-Half, share of compute0.0058593755.86 × 10−30.586 %PP / (2 · m) (≈ 3 · PP pass-units over 6 · m)
MAVhalfmemory per GPU, policy A, ZB-V-Half (B)2.79 × 1011279 GBWV + OV + Mred + (σA / PP + HV · σstore) · S / CP · nVhalfflt (the fullest rank)
MBVhalfmemory per GPU, policy B, ZB-V-Half (B)2.58 × 1011258 GBWV + OV + Mred + (σB / PP + HV · σstore) · S / CP · nVhalfflt (the fullest rank)
ρAVhalftokens/s per GPU, policy A, ZB-V-Half4.96 × 1034.96 KDGPU / (TAc · λV · (1 + bVhalf) + TNS + TxEP + TxCP)
ρBVhalftokens/s per GPU, policy B, ZB-V-Half4.30 × 1034.30 KDGPU / (TBc · λV · (1 + bVhalf) + TNS + TxEP + TxCP)
cellquantityvalue (exact)scientific SIformula
nVZBfltmicrobatches in flight, ZB-V (zero bubble)4PP (the no-bubble lower bound: one full microbatch)
bVZBbubble, ZB-V (zero bubble), share of compute00.00 × 1000 %0
MAVZBmemory per GPU, policy A, ZB-V (zero bubble) (B)2.96 × 1011296 GBWV + OV + Mred + (σA / PP + HV · σstore) · S / CP · nVZBflt (the fullest rank)
MBVZBmemory per GPU, policy B, ZB-V (zero bubble) (B)2.68 × 1011268 GBWV + OV + Mred + (σB / PP + HV · σstore) · S / CP · nVZBflt (the fullest rank)
ρAVZBtokens/s per GPU, policy A, ZB-V (zero bubble)4.99 × 1034.99 KDGPU / (TAc · λV · (1 + bVZB) + TNS + TxEP + TxCP)
ρBVZBtokens/s per GPU, policy B, ZB-V (zero bubble)4.32 × 1034.32 KDGPU / (TBc · λV · (1 + bVZB) + TNS + TxEP + TxCP)

Offloading to the host

Is offloading activations always good? At speed of light it is a bandwidth question: every stashed byte crosses to Grace memory and back, and that traffic must hide inside the compute. φ is the share of the stash the host link can carry per step; over 100 % the whole stash can live on the host and only two microbatches of this rank’s layers stay resident. At the default layout φ is under 100 % for policy A — its MXFP8 stash is bigger than the host link can move inside the compute — and about even for policy B, so offload is a partial relief for A and a full one for B. The optimizer state is a separate question: offload it after the step and prefetch it during the last microbatch’s backward; βpf is the bandwidth that window demands. The sweep’s offload rows use these cells: resident activations = A − min(φ, 1) · (A − Amin), states resident only at the step’s end, both the mid-step and end-of-step peaks checked, host capacity checked.

cellquantityvalue (exact)scientific SIformula
βhosthost memory bandwidth per GPU (B/s)256,000,000,0002.56 × 1011256 GB/s(Grace LPDDR5X, 512 GB/s per superchip shared by two GPUs; the NVLink-C2C link (450 GB/s per direction) is not the limit)
Mhosthost memory per GPU (B)240,000,000,0002.40 × 1011240 GB(480 GB per Grace, two GPUs)
VAoffactivation bytes through host memory per step, policy A11,480,342,724,6081.15 × 101311.5 TB2 · σA · DGPU (every stashed byte written out and read back)
VBoffactivation bytes through host memory per step, policy B6.66 × 10126.66 TB2 · σB · DGPU
TAofftime to offload every activation, policy A (s)44.8450887684.48 × 10144.8 sVAoff / βhost
TBofftime to offload every activation, policy B (s)2.60 × 10126.0 sVBoff / βhost
φAshare of the stash the host link can carry inside compute, policy A9.81 × 10−198.1 %TAc / TAoff (over 100 %: everything can go; under: only this fraction, the rest must stay resident)
φBshare of the stash the host link can carry inside compute, policy B1.96 × 100196 %TBc / TBoff
AAminresident activations with full offload, policy A (B)33,633,816,5763.36 × 101033.6 GB2 · σA · S / CP / PP (the microbatch in forward and the one prefetched for backward, this rank’s layers)
ABminresident activations with full offload, policy B (B)1.95 × 101019.5 GB2 · σB · S / CP / PP
Tpfprefetch window for the optimizer state (s)8.59 × 10−285.9 msTAc · 2 / (3 · m) (the last microbatch’s backward on this rank: B + W of one microbatch, policy A compute)
βpfbandwidth to prefetch the optimizer state in that window (B/s)9.37 × 1011937 GB/sO / Tpf
fpfof host bandwidth3.66 × 100366 %βpf / βhost (over 100 %: the prefetch spills past the last microbatch)
mpfmicrobatches of backward the prefetch must span4⌈fpf⌉ (start it this many microbatches before the end; their activations then share the GPU with the arriving states)
Mendmemory per GPU at the optimizer step (B)226,945,905,7882.27 × 1011227 GBW + G + O + Mred (states back on the GPU, activations gone)
MAoffmemory per GPU mid-step with states and activations offloaded, policy A, 1F1B (B)180,580,593,3401.81 × 1011181 GBW + G + Mred + AAmin + Ast1F1B (valid when φA ≥ 100 %; the peak is the larger of this and Mend)
MBoffmemory per GPU mid-step with states and activations offloaded, policy B, 1F1B (B)1.66 × 1011166 GBW + G + Mred + ABmin + Ast1F1B
fhosthost memory used, policy A, 1F1B5.10 × 10−151.0 %(O + AA) / Mhost

Putting it together

At the default layout (288 GPUs: PP 4 × EP 72, each sequence split over CP 3 GPUs, a single replica, so no ZeRO-1 traffic at all) plain 1F1B lands policy A at 101 % of usable memory (device memory less the μ reserve) and policy B at 94.2 %. ZB-V-Min holds 2 microbatches in flight instead of 2.5, brings policy A down to 262 GB and runs at 4.95 K tokens/s per GPU against a compute-only ceiling of 5.24 K; the loss is its 0.781 % bubble, CP’s traffic (1.35 s per step, exposed under the self-overlap default) and the stage imbalance λV = 1.021: whole layers per rank leave the slowest rank that much above the mean, and the pipeline runs at the slowest rank’s pace. Policy B pays its replay and lands at 4.32 K under interleaved zero-bubble. V-ZB would be slightly faster, but it holds a full PP of microbatches, and even with CP dividing each of them by 3 it misses usable memory by 0.8 GiB, less than the 2.0 GiB MoonEP reserves for redundant experts (Mred). EP traffic is 50.6 % of the expert GEMMs it pipelines against, so nothing is exposed under the self-overlap default. Host offload: the link can carry 98.1 % of policy A’s stash inside the compute and 196 % of policy B’s, so offloading everything is only possible for B; prefetching the optimizer state in one microbatch’s backward would need 366 % of the host bandwidth, so it has to start 4 microbatches early. The first table below sweeps cluster sizes and picks, per policy, the fitting layout with the best tokens/s per GPU; the second finds the smallest fitting cluster for each gradient × optimizer-state policy, with and without host offload; the third repeats that at the current gradient and optimizer knobs for a range of memory margins, since a tally that lands within a few percent of device memory is not a fit (workspace, communication buffers and fragmentation are not in it). All three try every schedule and every CP that divides the domain and the heads, with EP pegged to the domain, and name the winner; the first two use the margin knob μ. Rows marked † are communication bound at speed of light (comms exceed compute on some link), so their step time is understated.

cellquantityvalue (exact)scientific SIformula
TIBscale-out time per step (s)2.27 × 1002.27 sTsync + TPP
fIBscale-out time, share of compute (policy A)5.17 × 10−25.17 %TIB / TAc (under 100 % with fNV: compute bound, comms overlapped)
TAstepstep time, policy A (s)4.71 × 10147.1 sTAc · λ1F1B + TAbub + TNS + TxEP + TxCP (the slowest stage’s compute, the bubble, Newton–Schulz, exposed EP and CP traffic)
TBstepstep time, policy B (s)5.44 × 10154.4 sTBc · λ1F1B + TBbub + TNS + TxEP + TxCP
ρAtokens/s per GPU, policy A4.95 × 1034.95 KDGPU / TAstep
ρBtokens/s per GPU, policy B4.29 × 1034.29 KDGPU / TBstep
εAof the compute-only ceiling, policy A9.43 × 10−194.3 %ρA / ρ∞
εBof the compute-only ceiling, policy B8.18 × 10−181.8 %ρB / ρ∞
GPUsdomainspolicy A · recompute non-matmulpolicy B · recompute all but SDPA, KDA, experts
layout · schedulememorytok/s/GPUlayout · schedulememorytok/s/GPU
gradientsoptimizer stateshost offloadpolicy Apolicy B
min GPUs · layouttok/s/GPUmin GPUs · layouttok/s/GPU
marginno offloadhost offload
policy Apolicy Bpolicy Apolicy B

Reading the tables: once a zero-bubble schedule fits, tokens/s per GPU sits near the compute-only ceiling divided by the stage imbalance λ. What separates the layouts that fit is λ (2 to 4 %, depending on how the 93 layers and the head divide among the ranks), the bubble of the memory-lean schedules, and CP’s exposed traffic. CP is the memory lever: it divides each microbatch’s activations and block store by CP, and costs its all-to-alls and state gathers. It also shrinks the bubble (more, shorter microbatches), which is why V-ZB, the schedule with the most microbatches in flight, often wins once CP makes room for it. The sweeps keep the best rate over every CP, and CP shows up only where a layout needs it to fit. So “the minimum number of GB300s that maximizes tokens/s per GPU” is the smallest cluster at which the preferred policy fits. With EP spanning the domain, a 10 % memory reserve, FP32 gradients and states and nothing offloaded, that is four domains (288 GPUs) for either policy: A under CP 3 and ZB-V-Min at 4.95 K tokens/s per GPU, B under CP 3 and interleaved ZB at 4.32 K. Six domains buy 1.4 % more (CP 2 and V-ZB), what CP 3 and V-Min cost at four. BF16 gradients take both to three domains, with or without host offload; offload alone reaches four with everything FP32, without CP (the ‡ reminds that the optimizer prefetch must start several microbatches early). Three domains is the floor for any of this: at PP 3 each rank holds 31 layers, and below that the MXFP8 weights and gradients alone overflow. The margin table is the honest version of “fits”: this roofline holds no communication buffers, no fragmentation, no vision tower, and the minimum cluster holds at four domains up to a 20 % reserve and moves to six at 25 %. Not modeled: virtual pipeline stages, the vision tower, MTP, activation offload bandwidth, and any kernel efficiency below the spec peak (set η).

Context parallelism

K3 trains at 8k only at first: pre-training grows the window from 8k to 64k, and the cooldown from 256k to 1M (§3.4). Its pre-training stack lists context parallelism alongside PP, EP and ZeRO-1, citing DeepSpeed-Ulysses (§5.2), and gives the KDA layers their own scheme, KDA Context Parallelism (§5.1.2). On this page CP does two jobs. At 8k it is a memory lever: splitting each sequence over CP GPUs divides every microbatch’s activations by CP, which is what lets policy A fit on four domains instead of six (the layout knob CP, priced in the NVLink and memory rows above). In the long-context phases it is a necessity. The second half of the sheet below prices those phases at the default cluster with the batch’s tokens held fixed. Each GPU still processes the same tokens per step, so the projections, the experts and their traffic don’t change; the softmax attention grows with S, and CP adds its own traffic.

The 69 KDA layers carry their context in a fixed-size state, so KCP passes states, not tokens: each GPU all-gathers its slice’s cumulative transition and zero-start state, one dh×dh pair per head. That is cheap only when slices are long. A state is 96 · 128 · 128 FP32 values, 6.3 MB, about a hundred tokens’ worth of up-projected K and V. The 24 MLA layers have three options:

cellquantityvalue (exact)scientific SIformula
Sxsequence length of the long-context phase65,536(model input: 64k ends pre-training; the cooldown runs 256k to 1M (K3 §3.4))
CPxcontext-parallel degree24(model input: 24 keeps a GPU’s slice of a 64k sequence at the S / CP tokens the memory rows above hold)
Dslicetokens per GPU per sequence slice2.73 × 1032.73 KSx / CPx
axper-microbatch activations per GPU, relative to the pre-training layout11.00 × 1001 ×Dslice · CP / S (the stash and the block store scale with a GPU’s tokens per microbatch: Sx / CPx against S / CP)
Txcpolicy A compute per step at Sx (s)6.37 × 10163.7 sTAc + Tsdpa · (Sx / S − 1) (the batch’s tokens held fixed (K3 publishes no long-phase batch either): only the softmax attention grows; KDA is linear in S)
Nukvkv up-projection params, one MLA layer12,582,9121.26 × 10712.6 Mrkv · nh · 2 · dh
vulyQ, K, V and O bytes per token·MLA layer122,8801.23 × 105123 KBnh · (2 · (dh + dRh) + 2 · dh) · 2 (BF16, what Ulysses moves)
vlatlatent bytes per token·MLA layer1,1521.15 × 1031.15 KB(rkv + dRh) · 2 (BF16: cKV and the shared, never-rotated dRh key)
vkvup-projected K and V bytes per token·MLA layer61,4406.14 × 10461.4 KBnh · (dh + dRh + dh) · 2 (BF16, the shared key broadcast to every head as the kernel sees it)
xa2ashare of a GPU’s all-to-all bytes that leave the NVLink domain00.00 × 1000 %max(0, CPx − NVL) / CPx (CP groups packed into domains)
xagshare of an all-gather’s peers beyond the NVLink domain00.00 × 1000 %max(0, CPx − NVL) / (CPx − 1)
Vulyhead-parallel (Ulysses): bytes per GPU·step1.32 × 10121.32 TB2 · (CPx − 1) / CPx · vuly · Lmla · DGPU (all-to-all Q, K, V from a sequence split to a head split and O back; the backward mirrors it. CP must divide the nh heads)
Tulyhead-parallel (Ulysses): link time per step (s)1.46 × 1001.46 sVuly · ((1 − xa2a) / βNV + xa2a / βIB) (no FLOPs added)
Vlatlatent all-gather: bytes per GPU·step444,529,115,1364.45 × 1011445 GB3 · (CPx − 1) · vlat · Lmla · DGPU (gather forward, gather again and reduce-scatter its gradient backward)
Tlatlatent all-gather: link time per step (s)4.94 × 10−1494 msVlat · ((1 − xag) / βNV + xag / βIB)
Clatrplatent all-gather: replayed up-projection FLOPs per GPU·step12,947,848,928,690,1761.29 × 101612.9 PFLOP8 · (CPx − 1) · Nukv · Lmla · DGPU (every GPU up-projects the CP − 1 gathered slices too: forward, recompute, dgrad, wgrad)
Tlatrplatent all-gather: replay time per step, MXFP8 (s)3.60 × 1003.60 sClatrp / πsolfp8 (compute: no overlap hides it)
Vkvup-projected K/V all-gather: bytes per GPU·step23,708,219,473,9202.37 × 101323.7 TB3 · (CPx − 1) · vkv · Lmla · DGPU (Llama 3’s scheme (ring attention moves the same): every slice’s K and V forward, again backward, plus the dK and dV partials)
Tkvup-projected K/V all-gather: link time per step (s)2.63 × 10126.3 sVkv · ((1 − xag) / βNV + xag / βIB)
Mkvone layer’s gathered K and V, whole sequence (B)4,026,531,8404.03 × 1094.03 GBSx · vkv (resident while the layer’s attention runs)
VkcpKDA context parallelism (KCP): bytes per GPU·step3,408,056,549,3763.41 × 10123.41 TB4 · nh · dh · dh · 4 · (CPx − 1) · Lkda · DGPU · CPx / Sx (K3 §5.1.2: each slice all-gathers its cumulative transition M and zero-start state S̃, dh×dh per head, FP32; the backward re-gathers M with the state gradient’s fragment: four state-sized matrices per slice and layer. KCP’s own FLOPs are not priced)
TkcpKCP: link time per step (s)3.79 × 1003.79 sVkcp · ((1 − xag) / βNV + xag / βIB) (the same for every MLA scheme)
ΔulUlysses minus the latent all-gather, nothing overlapped (s)-2.63 × 100-2.63 sTuly − Tlat − Tlatrp (negative: Ulysses is cheaper. With every transfer hidden, Ulysses costs nothing and the latent all-gather still costs Tlatrp)
fΔthe same, share of compute at Sx-4.13 × 10−2-4.13 %Δul / Txc
CPtieCP at which the two tie with nothing overlapped, inside a domain8.59 × 1008.59 2 · vuly / βNV / (3 · vlat / βNV + 8 · Nukv / πsolfp8) (per token and layer: Ulysses (CP − 1)/CP · 2 · vuly of NVLink, the latent (CP − 1) · (3 · vlat of NVLink + 8 · Nukv FLOPs))
CPbyCP below which the latent all-gather moves fewer bytes7.11 × 10171.1 2 · vuly / (3 · vlat)

At 8k on CP 3, Ulysses and KCP put 1.35 s per step on NVLink, all of it exposed under the self-overlap default, against 44.0 s of compute (rows VCP to TxCP above). A GPU’s slice is only 2,731 tokens, and at a fixed S KCP’s bytes grow with CP · (CP − 1), so CP is a lever to pull only as far as memory requires.

At 64k on CP 24 (a GPU’s slice is the same 2,731 tokens, so the memory above still holds), Ulysses puts 1.46 s of traffic per step on NVLink. The latent all-gather moves only 494 ms but replays 3.60 s of up-projections, against 63.7 s of compute. Whether the transfers hide decides which is cheaper. If they overlap, Ulysses costs nothing (NVLink is busy for 25.0 % of the 8k step’s compute, and a smaller share at 64k) and the latent’s replay remains, because compute can’t hide behind compute. If nothing overlaps, the two tie at CP 8.59 and the latent wins only below that. It moves fewer bytes up to CP 71.1 or so, but on NVLink bytes are not where the cost is. The up-projected K/V all-gather needs 26.3 s of NVLink at 64k, which hides only with overlap, and 4.03 GB resident per layer, which grows with S. KCP adds 3.79 s whichever scheme the MLA layers use. The table sweeps CP at the current Sx, over the degrees that divide a pipeline stage.

CPtokens/GPU per sliceUlysseslatent: linklatent: replayK/V all-gatherKCPUlysses − latent

Per GPU and step, each MLA scheme’s seconds depend only on CP, not on S, because the tokens per GPU are fixed; only compute and KCP move with Sx. So the ranking is the same in every phase, and the same seconds become a smaller share of compute as S grows. The difference is small either way, because only 24 of the 93 layers are MLA: below CP ≈ 9 a fully exposed latent all-gather saves at most 0.6 s per step, about 1 % of compute at 64k; above it Ulysses wins, by 2.6 s (4 %) at CP 24; and with any overlap Ulysses wins everywhere. K3’s choice of Ulysses is what this roofline would pick.

The limit is Ulysses’ divisibility, not its cost. A CP group has to fit inside a pipeline stage, which at the default cluster is one 72-GPU domain, and Ulysses also needs CP to divide 96 heads. So it stops at CP 24 here. At 1M that leaves 43,691 tokens per GPU per slice, 16 times the slice the memory section fits at 8k on CP 3. The latent all-gather can use all 72 GPUs of the stage (14,564 tokens, 5.3 times). Neither fits at this cluster without more recompute, more offload or more GPUs per stage, which is why the 1M cooldown is a different layout problem from the one this page solves. KCP is the opposite case: at 8k on CP 8 its slices are only 1,024 tokens, and the state exchange then costs more than either MLA scheme. Splitting 8k sequences to save memory is therefore a KDA cost first, which is why it pays only up to CP 3 or so.

Conclusion

Recommendation. Train Kimi K3 on four NVL72 domains, 288 GB300s, laid out as PP 4 × EP 72 with a single data-parallel replica, each 8k sequence split three ways by context parallelism (Ulysses on the MLA layers, KCP on the KDA layers), under a memory-lean zero-bubble pipeline schedule (ZB-V-Min) and the activation policy that recomputes only non-matmul work. Expect about 4.95 K tokens/s per GPU at speed of light, which is 94.3 % or more of what the GPUs can do at all on this model. Adding GPUs beyond that buys little tokens/s per GPU (six domains drop to CP 2 under V-ZB for 1.4 %); it mostly raises tokens/s. Taking GPUs away forces a trade: three domains (216) work only with BF16 gradients.

Why the floor is where it is. The model is 2.78T parameters, of which 2.72T are routed experts. With EP spanning a 72-GPU domain and PP ranks stacking domains, each GPU holds 1/(PP · 72) of the experts and 1/PP of everything else, in MXFP8 with gradients at 4 bytes and optimizer state at 8 bytes per parameter. At four domains that is 49.1 GB of weights, 95.2 GB of gradients and 80.5 GB of optimizer state per GPU, before any activation. One 8k-token microbatch stashes 24.6 MB per token across the whole model under policy A; a pipeline keeps several microbatches in flight, and the share that lands on one GPU is what decides whether the configuration fits in 267 GB of usable memory. Context parallelism cuts that share: on CP 3 each GPU keeps a third of every sequence’s activations. The schedule matters as much as the policy here: plain 1F1B lands at 101 %, V-Min at 262 GB, because it holds 2 microbatches in flight instead of 2.5.

Why tokens/s per GPU does not improve with more GPUs. Everything in the step either scales with tokens per GPU (compute, EP traffic, pipeline traffic) or is a per-step fixed cost (the optimizer sync, the bubble). With one replica the optimizer sync is zero, and with a zero-bubble or near-zero-bubble schedule the bubble is a few percent. So the rate at the smallest fitting cluster is already within a few percent of the compute-only ceiling, 5.24 K, and larger clusters win back only the last few percent: the bubble and CP traffic they can afford to drop, and a PP that divides the layers more evenly. The one thing that would move the ceiling is the GEMM rate itself: this page prices the GPUs at 3.60 PFLOP/s MXFP8 and 1.80 PFLOP/s BF16, a power-limited sustained estimate rather than the 5 PFLOP/s and 2.50 PFLOP/s spec peaks, and that single assumption is worth more than every parallelism choice on the page combined.

Why communication is not the constraint. Three links carry traffic. NVLink carries the expert dispatch and combine, 36.9 MB per token after the dispatch replay, and the context-parallel traffic: together 25.0 % of the compute time at speed of light, and 50.6 % of the expert GEMM time it can pipeline against even without a second microbatch in flight. The scale-out link carries the pipeline boundary (the partial sum plus the attention-residual blocks the next rank lacks) and, with more than one replica, the optimizer sync; at the recommended size that is 5.17 % of compute. The Grace link decides whether offload is free: it can carry 98.1 % of policy A’s stash inside the compute and 196 % of policy B’s, so offloading everything is only possible for B, and the optimizer prefetch must begin 4 microbatches before the end of the step rather than one.

What would change the recommendation. A larger memory reserve: at 25 % the no-offload minimum for policy A moves to six domains. Cheaper state: BF16 gradients bring both policies to three domains without offload. The overlap: CP’s traffic is charged exposed here; hidden, larger CP degrees would cost nothing, and the bubble they remove would favor them. A different batch: tokens per GPU scale everything proportional, so halving the global batch halves the compute per step but leaves the per-step state alone, and the amortization argument weakens. Imbalance: the sheet assumes forced-balanced routing, and prices MoonEP’s redundant experts only as a knob (ured, 0 by default). Full slots on every layer and microbatch would expose 13.4 s per step under self-overlap and take policy A’s V-Min rate from 4,951 to about 3,850 tokens/s per GPU; a narrow EP would save memory on paper and is excluded because it concentrates imbalance, and with it the copies MoonEP must make. And the GEMM rate, as above.

What this page is not. A speed-of-light tally: spec and estimated-sustained rates, perfect overlap wherever the arithmetic allows it, no kernel inefficiency, no straggler, no fill and drain inside the megakernel, no vision tower, no MTP, no virtual stages, the long-context phases only as a side calculation, unit-time bubble counts for the zero-bubble schedules, and a memory tally that holds no communication buffers or fragmentation beyond the μ reserve. The margin table at the end is the honest way to read the fits.

1 Disclosure: this draft study — prose, architecture diagrams, sheet structure and model — was generated by Fable (Claude) from the Kimi K3 config and technical report, part 3’s roofline sheets and the author’s stated assumptions, and has not yet had a human edit pass. It is not part of the published series. ↩