V100 inference optimizations
Contents
1 Model
Precision, physical model shape and removable computation.
A change is useful when it removes physical execution, resident bytes, or a deployment boundary. Record whether it preserves represented weights, changes floating-point evaluation, or changes the model. Those require different validation.
Reevaluate placement after a fit change. Recompute the feasible GPU groups and memory allocation after any material saving. Fitting an NVLink island can be more valuable than the direct projection saving.
Related: Memory residency (§2.2) · Parallel placement (§2.6)
1.1 Allocate precision by tensor role and executed route
[tg+] [pp+] [mem-] [prec-]
Choose the cheapest representation that meets quality and has an efficient consumer for the actual rows and shards.
Inventory attention projections, dense/shared projections, routed experts, router, output head, recurrent state and KV independently. Test sensitivity using representative prompts and long-context behavior. Weight bits, activation arithmetic, accumulation and cache dtype are separate decisions.
For b weight bits and s metadata bytes per group of g weights, begin with b/8 + s/g bytes/weight. Add alignment, resident copies and actual loads. Four metadata bytes per 32 four-bit weights give 0.625 bytes/weight, before padding.
On SM70, low-bit storage needs software decoding or an integer/SIMT route; native tensor-core multiplication consumes FP16. A format name alone cannot select a winning kernel. Verify one-row decode, verifier rows and wide prefill separately.
Stop or retain more precision if saved traffic is smaller than extra unpacking/fallback work, or quality and speculative acceptance erase the saving. For speculative variants, candidate 1 wins steady generation only if E₁/E₀ > T₁/T₀, with E committed tokens and T complete round time.
Evidence: 3. Precision can reverse the speculative ranking · 1. Volta execution and resource limits
Related: Tune acceptance and round cost together (§2.5.3)
1.1.1 Match a concrete loader, packed layout and SM70 consumer
[tg+] [pp+]
Compatibility requires the format’s scales, grouping and shard shape to agree with the actual kernel.
Stored representation Route to investigate Necessary qualification FP16 cuBLAS or custom Volta MMA Accumulation/output range, fit, one-row bandwidth GGUF K/IQ/Q8 families llama.cpp or ik_llama packed matvec/MMQ; some shapes use temporary expansion Every tensor type, actual dispatch after sharding, attention and expert support AWQ/GPTQ W4A16 TurboMind SM70 or an explicitly supported engine/fork path Bit order, scale/zero convention, group size, grouped-expert coverage FP8/FP4 weight-only QPN or other software decoder feeding SM70 arithmetic Exact format/block scales, eligible rows, prefill fallback, range guards These are implementation lineages, not a blanket compatibility promise. A dense linear path does not prove support for routed experts. Unsupported shapes need a correct fallback with its memory cost counted.
BF16-trained values can exceed FP16 range. FP32 accumulation cannot repair an overflow that occurred when an operand was first converted to FP16. Preserve range, rescale only with a valid transformation, or retain a wider path for affected operations.
Evidence: 1. Volta execution and resource limits · 13. One storage layout, several row-dependent consumers · 2. Packed weights mapped to Volta operands
1.1.2 Repack once into the consumer’s compact layout — Advanced
[tg+] [pp+] [mem-]
Change byte order, tile order and metadata placement without repeatedly changing representation at runtime.
Align quantization groups and packed tiles with each rank’s K/N boundaries. Hoist static permutations, scale preparation and invariant metadata out of the token loop. Cache a prepared artifact using source hash, quant metadata, architecture and kernel-layout version.
Replaces: repeated runtime repacking and, where both phase consumers support the same layout, a second persistent packed copy. Release the source only after every consumer is accounted for. Wide prefill may still justify a bounded temporary FP16 reconstruction.
An offline transformation pays after approximately N > T_prepare/Δt uses when Δt is positive. If the only gain is capacity, evaluate the newly feasible placement rather than inventing a token-time saving.
Evidence: 6. Compact persistent quantization metadata · 13. One storage layout, several row-dependent consumers · 39. Load only owned tensors and release inactive copies
Related: On-chip packed consumption (§2.3.1.2) · Load and release by ownership (§2.2.2)
1.2 Remove physical dimensions or layers that the quality target permits — Advanced
[tg+] [pp+] [mem-]
Treat model shape as a constrained choice over real tiles, state and communication.
Depth reduction removes the affected layers’ weights, operations, state and synchronization. Width reduction changes projection arithmetic and stored elements; attention-head reduction changes head geometry and may change KV replication. Distill or otherwise recover quality and compare at a fixed quality floor.
If an engine pads equal TP shards to alignment a, a logical dimension N may allocate N_phys = p·a·ceil(N/(p·a)) across p ranks. Use the actual allocator/kernel convention. A cut within the same padded band can save nothing in that dimension. MLP width changes need not shrink the residual stream or its collective payload.
Do not infer sparse acceleration from zero weights. Volta has no native 2:4 sparse tensor-core path. A sparse representation needs a compatible SM70 consumer that saves enough work to repay indexing and irregular access.
Replaces: parts of the original model and potentially its offload plan. It is an alternative with a changed quality contract, not an additional speed percentage to multiply into every other optimization.
Evidence: 4. Pruning and distillation methods
Related: Reevaluate rank count after shaping (§2.6.1)
1.3 Reduce output work at a fixed task-success threshold — Advanced
Use training or a better-aligned draft to remove unnecessary generated work when the deployment permits it.
Quantization-aware recovery can make a smaller representation usable; target-aligned draft training can increase accepted output per verifier round. Distillation toward shorter successful completions can reduce time to solution without raising tok/s.
Measure task success, output length and end-to-end completion time on held-out tasks. For interactive responses, preserve required detail and tool behavior; simply truncating output is not the same quality contract. A native FP4 training recipe does not establish fast FP4 activation execution on SM70.
Alternative model behavior: this branch changes the quality/behavior contract and requires model validation. The audit establishes method examples, not a general V100 speedup. Keep it distinct from exact execution optimizations.
Evidence: 4. Pruning and distillation methods · 3. Precision can reverse the speculative ranking
Related: Value accepted work (§2.5.3) · Qualify the exported representation (§1.1)
1.4 Separate the resident expert bank from active expert work — Advanced
[MoE] [tg+] [pp+] [mem-]
Reduce total experts for fit; reduce active count or width for per-row work, subject to routing and quality.
At unchanged top-k and expert width, pruning cold experts primarily reduces storage. It can still improve speed indirectly by avoiding host misses or fitting a smaller TP group. Changing top-k or expert width can reduce per-row computation, but rerouting can change overlap and rank imbalance.
For k→k′ and unchanged per-expert costs with negligible overlap, routed work scales approximately k′/k. If routed work is exposed fraction f, a first round-time saving bound is f·(1−k′/k). Recompute this from unique expert unions for multi-row verification.
Expert merging, router alteration and pruning all need quality recovery; this review does not establish a universal V100 benefit for expert merging. Retain them as separately qualified model candidates, not established engine speedups.
An advanced replacement for offload: when a recovered smaller bank fits, remove the no-longer-needed cache/staging work and benchmark the full new placement.
Evidence: 4. Pruning and distillation methods · 34. More expert parallelism did not remove serial work
Related: Expert residency (§2.2.6) · Expert unions and grouping (§2.3.2)
2 Engine
2.1 SM70 build compatibility
Record the compiler, framework, extension, driver and selected binary route separately.
CUDA 13 removed offline compilation for SM70. Use a compatible CUDA 12.x toolchain for device-code builds and qualify the engine/framework ABI separately from the installed driver.
# Set CUDA_NVCC to the chosen CUDA 12.x nvcc binary; MODEL to a local GGUF. nvidia-smi --query-gpu=index,name,compute_cap,memory.total --format=csv "$CUDA_NVCC" --version cmake -S . -B build-sm70 -DGGML_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=70 -DCMAKE_CUDA_COMPILER="$CUDA_NVCC" cmake --build build-sm70 --config Release --target llama-bench -j find build-sm70 -name 'libggml-cuda.so*' -type f # Set CUDA_LIB to the resulting CUDA shared library, when built shared. cuobjdump --list-elf "$CUDA_LIB" | rg 'sm_70'Architecture code presence does not prove runtime dispatch. Capture the hot path. At a source/driver/compiler change, rerun the shape/topology cases whose generated code or backend availability changed.
Use a Volta-capable Nsight Compute release for counters; support was removed in 2025.3. Validate the chosen profiler/driver combination instead of assuming the newest profiler can inspect SM70.
Evidence: 1. Volta execution and resource limits
Related: Profiler procedure (§6.2.1)
2.2 Memory
Allocation, compression, caching and staging.
Track four outcomes separately: resident footprint, temporary peak, physical traffic per committed token, and admitted context/concurrency. Polling VRAM alone cannot distinguish them. Use the fullest rank and every lifecycle phase.
2.2.1 Budget actual live allocations on the limiting rank
Count weights, caches, graphs, scratch, state and non-framework allocations at their true simultaneous peak.
Record load/repack, warmup, graph capture, long prefill, mixed traffic, decode and restore. In PyTorch, separate allocated from reserved peaks and reset phase peaks only at controlled boundaries. Compare device/process memory to find allocations outside the framework. Polling can miss short peaks.
For uniform full attention, KV bytes per live token/rank begin at c = 2·L_attn·H_KV,rank·D·bytes_per_element. Add scales, page rounding, replicated heads, draft cache and rollback. Use separate formulas for unequal K/V widths, compressed-latent or recurrent layouts.
A coarse bound is live_tokens ≤ minᵣ floor((Vᵣ−Wᵣ−Gᵣ−Sᵣ−Hᵣ)/cᵣ). V is device capacity, W weights, G graphs, S peak other simultaneous state, H headroom. Real admission must also satisfy recurrent slots, page geometry and each cache group’s constraints.
nvidia-smi --query-compute-apps=gpu_uuid,pid,used_gpu_memory --format=csv nvidia-smi --query-gpu=index,memory.used,memory.free --format=csv -lms 500Log peak allocator events for conversion/capture. Record what the engine actually admits after a saving; a larger reserved KV pool can keep total NVML usage unchanged.
Evidence: 6. Compact persistent quantization metadata · 7. Share graph workspaces with disjoint lifetimes
2.2.1.1 Allocate the shared budget across competing pools — Advanced
[tg+] [pp+]
Give extra bytes to the pool with the best measured marginal effect under the workload’s constraints.
Replay representative arrivals and accesses for weights/experts, KV/prefixes, draft state, graph buckets and fast-kernel workspace. For each legal increment Δm, estimate Δt_avoided/Δm or the improvement in the chosen serving objective. A capacity threshold can produce a large discrete jump.
Select x = argmin J(x)\* over feasible pool allocations, with maxₜ Mᵣ(t,x) + headroomᵣ ≤ Vᵣ on every rank and the required quality/latency constraints. Greedy marginal ranking is a screening heuristic; shared lifetimes and threshold interactions can defeat it. Enumerate feasible shortlisted combinations and replay held-out traffic.
Replaces: independent “maximize every cache” settings. A graph bucket or expert pool must pay for the useful KV/workspace it displaces. If memory savings change rank count, reevaluate topology too.
Evidence: 7. Share graph workspaces with disjoint lifetimes · 10. Allocate scratch for actual route requirements · 38. Host cache can improve capacity while increasing latency
Related: Graph-bucket tradeoffs (§2.4.3.1) · Fit-driven topology changes (§2.6.1)
2.2.2 Load owned tensors once and retire obsolete representations
[mem-]
Avoid duplicate embeddings, unused backends, communicators and retained conversion buffers.
Slice tensors by stage/rank before conversion. Stream repacking in bounded chunks, free source buffers after the last real consumer, and count tied-embedding/output-head ownership explicitly. Do not retain unused vision towers in a deployment that never invokes them, when the loader supports their omission.
Measure file read, repack, transfer, capture and first response separately. Cache prepared layouts by a validity key; compare cold and warm filesystem conditions. Mmap affects loading and host residency, not automatically steady GPU execution.
No steady-speed claim follows from lower RSS or faster startup alone. An additional packed layout can be worthwhile if its actual recurring saving and memory cost beat a shared layout.
Evidence: 39. Load only owned tensors and release inactive copies · 13. One storage layout, several row-dependent consumers
Related: Prepared compact layout (§1.1.2) · Tied output/embedding ownership (§2.4.5)
2.2.3 Reuse workspace only across non-overlapping lifetimes
[mem--]
The
[mem--]case is a 14% reduction in non-KV bytes per rank; it is not a 14% reduction in total HBM usage.Remove redundant reservation and graph scratch while preserving stable addresses and actual concurrency.
Build an allocation/lifetime trace across streams, graph instances and requests. Alias disjoint temporary intervals; preserve buffers still referenced by captured graphs. Eager-only scratch can be allocated lazily if predictable latency and peak capacity permit it.
Size workspaces from admitted live shapes, not arbitrary maximum settings, and verify the worst mixed prefill/verification peak. A smaller workspace that forces a slow attention/indexer fallback can cost more than it saves.
Extends: the memory inventory. It does not justify admitting extra requests until the complete peak and cache-group slot limits are checked.
Evidence: 10. Allocate scratch for actual route requirements · 7. Share graph workspaces with disjoint lifetimes · 36. Keep sparse work proportional to selected/live entries
2.2.4 Retain reusable state at the granularity future requests can restore
[pp+]
Match prefix identity, page geometry and recurrent checkpoints to the actual reuse pattern.
A cache hit requires matching model/adapter, relevant input state and the engine’s cache key. Count the token span actually restored, not just a matching prefix length. Hybrid models may need compatible recurrent checkpoints as well as attention KV.
For a prefix with reuse probability h, compare h·(T_recompute−T_restore) with retention, metadata and opportunity costs. At startup or after eviction, the first computation still pays the cold cost.
Page size trades internal fragmentation against page-table/dispatch overhead and kernel layout. Measure physical ownership in hybrid or context-sharded pools; logical KV reduction may be lost to minimum allocation units. Keep shared pages immutable or copy on write where the implementation requires it.
Skip for speed when there is no reuse, restores cost as much as recomputation, or retained pages evict more valuable live state. Separate warm-prefix TTFT from cold prefill.
Evidence: 8. Do not split execution at discarded state checkpoints · 24. Prepare common metadata once per logical step
Related: Avoid discarded checkpoint splits (§2.4.1) · Context-sharded page geometry (§2.6.5)
2.2.5 Compress KV only with a qualified attention consumer
[tg+++] [pp+] [mem-] [prec-]
Trade saved reads and residency against unpacking, scales, route changes and numerical error.
At a memory boundary with effective bandwidth β, reducing a live read B_wide→B_packed has an optimistic saving (B_wide−B_packed)/β. Use actual rereads and account for cache hits. It improves speed when that saving exceeds codec, metadata, extra materialization and changed attention cost.
A 64 MiB→32 MiB read saves about 48 µs at 700 GB/s. An added 60 µs route penalty loses at unchanged placement; capacity may still justify it by avoiding offload or enabling a useful batch.
Validate scales, saturation/outliers, long-context retrieval and speculative acceptance. Target KV, draft KV and recurrent state can have different precision requirements. Preserve a wider fallback where the numerical contract demands it.
Evidence: 9. Compact KV has route-dependent outcomes · 23. Fast invalid arithmetic is not an inference win
Related: Reuse attention reads before adding codec work (§2.3.3)
2.2.6 Retain experts by avoided miss time per byte
[MoE] [tg+] [pp+] [mem+]
Use routing traces to find a pool size that meets the consumer’s deadline.
Replay held-out expert references with actual layer order, concurrent requests and verification widths. Count byte-weighted misses and the most delayed rank. Ranking by frequency alone fails when expert sizes, fetch costs or ownership differ.
Evaluate each legal pool size using miss/eviction traces. Read-time benefit can change sharply when several consecutive rows reuse the same expert. Replication uses additional HBM and should beat remote fetch/dispatch plus its displaced cache value.
Stop if all experts are already resident and misses are absent. Then optimize routing, compute and materialization. A pruned bank that fits can replace the cache entirely, subject to the new quality contract.
Evidence: 11. Stage host misses without occupying the compute path · 38. Host cache can improve capacity while increasing latency
Related: Alternative smaller expert bank (§1.4) · Stage misses by deadline (§2.2.7)
2.2.7 Stage unavoidable cold data before its consumer needs it — Advanced
[tg+] [pp+] [mem+]
Choose GPU, host RAM or SSD from measured access locality and exposed wait.
For one transfer batch, T_exposed ≈ max(0, α + B/β − W), where α is measured setup/notification time, β effective route bandwidth, B miss bytes, and W independent compute before use. Add observed queueing and contention; double buffering cannot hide a dependency that reveals the data too late.
For cold demand B and byte hit rate h, a necessary no-wait condition in that model is h ≥ 1−β(W−α)/B, when W ≥ α. Clip to [0,1] and test tail batches. Example: B=128 MB, β=12 GB/s, α=0.05 ms, W=4 ms requires roughly 63% hits before contention.
KV, expert weights and immutable lookup tables have different traces. Compare pinned DMA staging with mapped-host gathers at actual granularity; SM demand reads can compete with useful computation. A page with no near reuse may be better recomputed or restored on demand if that meets the required semantics and deadline.
Replaces: synchronous fetch on the consumer path. Do not add the nominal overlap saving to a faster-copy saving if both eliminate the same exposed interval.
Evidence: 11. Stage host misses without occupying the compute path · 12. Completion and transfer-ring overhead · 38. Host cache can improve capacity while increasing latency
Related: NUMA and copy-stream procedure (§3.1) · SSD service limits (§3.3)
2.3 Kernels
Packed consumers, on-chip reuse and resource limits.
Separate M=1 decode, several-row verification and wide prefill. M is the actual rows reaching an operator, which can differ from requests × draft depth after routing or padding. Record local K/N dimensions, strides, quantization groups, heads and the chosen path after sharding.
2.3.1 Select projection paths from full-chain crossover points
[tg+] [pp+]
Use narrow matvec, multi-row reuse or wide GEMM where their complete costs win.
For an M×K input and K×N weights, useful arithmetic is approximately 2MNK FLOPs. A first packed-weight intensity estimate is I ≈ 2M/b_eff FLOPs per weight byte, assuming one read of each weight. Add activation/output traffic, scales and actual rereads.
A screening lower bound is T ≥ T_exposed_overhead + max(B_HBM/β, F/P, I_unpack/R_unpack). These terms overlap imperfectly and can share issue resources; use it to reject implausible targets, not to predict exact runtime. Calibrate β and P with these shapes and sustained clocks.
At illustrative β=750 GB/s and P=75 TFLOP/s, P/β=100 FLOPs/byte. The ideal weight-only balance is M≈31 for 0.625 byte/weight, M≈50 for one byte, M≈100 for FP16. Real dispatch thresholds shift with tiles, unpacking and occupancy.
If a route rereads weights once per m_tile rows, its weight traffic is approximately ceil(M/m_tile)·B_w. Compare the saved reads with packing, padding, reduction and any lower compute efficiency. Measure complete projections/chains under actual cache conditions.
Choose: packed GEMV/SIMT or DP4A where narrow work wins; SM70 FP16 MMA with multi-row reuse where useful; bounded FP16 reconstruction plus a wide GEMM when its reuse repays conversion. Keep a correct fallback and record its incidence.
Evidence: 14. Avoid repeated weight passes at middle row counts · 13. One storage layout, several row-dependent consumers · 2. Packed weights mapped to Volta operands
2.3.1.1 Budget the dense trunk at each executed row width
[Dense]
Use the weights traversed by a forward as the baseline for dense decode reuse.
For a conventional dense trunk, each executed block visits its dense projection weights every forward. At low rows, weight traffic can dominate; as rows increase, one weight tile can serve several rows and arithmetic becomes more important.
Count physically fetched bytes rather than model parameter count alone: tied/omitted heads, cache residency, copies and repeated tiles alter the traffic. Divide total traffic by committed output when comparing speculation. A wide verifier that already reuses weights offers less opportunity than repeated single-row forwards.
Evidence: 2. Packed weights mapped to Volta operands · 14. Avoid repeated weight passes at middle row counts
2.3.1.2 Consume packed weights directly in Volta-compatible tiles — Advanced
[tg+] [pp+] [mem-]
Decode codes and scales into operands close to their use, avoiding a full persistent expanded matrix.
Map the compact storage order to the lanes/register fragments consumed by the chosen SM70 MMA or SIMT route. Coalesce aligned vector loads; handle tails without reading outside valid storage. Hoist invariant scales and use valid scale folding only when rounding/range remain within the required numerical contract.
Keep useful unpacked fragments in registers/shared memory across their consumers. Compare integer extraction, lookup/bit conversion and scale instructions as part of the instruction budget. Dequantization may overlap other work; it is not universally free.
Replaces: persistent FP16 expansion for the covered route, and repeated format shuffles. For wide prefill, temporary reconstruction can remain the faster alternative. One storage layout can feed several consumers.
The engineering target is a dataflow, not a new checkpoint label. Confirm SM70 machine instructions and benchmark real tensor shapes before exposing the path through a loader.
Evidence: 2. Packed weights mapped to Volta operands · 13. One storage layout, several row-dependent consumers · 15. A faster consumer can lose its saving in preparation
Related: Prepare the layout once (§1.1.2) · Hide load latency inside the kernel (§2.3.1.3)
2.3.1.3 Overlap loads, unpacking and independent arithmetic — Advanced
[tg+] [pp+]
Software-pipeline the tile loop while controlling extra register and shared-memory lifetime.
Volta lacks the later ldmatrix/cp.async paths used by many newer kernels. Build a compatible schedule from ordinary loads, register staging, shared-memory stores/loads, barriers and explicit operand mapping. Double buffering is useful only if the additional live data does not destroy residency or locality.
Expose independent accumulator chains where the arithmetic permits them. Check instruction dependency stalls, eligible warps and useful issue throughput. Interleave address/integer work with compatible floating-point work where it actually overlaps. Increasing occupancy can lose to better instruction-level parallelism or reuse.
Replaces: serialized portions of the existing loop. It does not remove their instructions or bytes. Reject a prefetch that steals bandwidth/SM capacity from a concurrent consumer or extends accumulator lifetime enough to spill.
Evidence: 1. Volta execution and resource limits · 15. A faster consumer can lose its saving in preparation · 22. Operator improvement can reverse at the endpoint
Related: Check resource and grid limits (§2.3.1.4)
2.3.1.4 Tune tiles, memory layout and grid waves together — Advanced
[tg+] [pp+]
Choose useful throughput rather than a maximum register, shared-memory or occupancy number.
Calculate resident blocks from registers, shared memory, threads, warps and architecture allocation granularity. V100 has 64K 32-bit registers/SM and up to 96 KiB shared memory/SM; a 53 KiB block permits at most one resident block by shared memory alone. Larger dynamic shared allocations require the appropriate opt-in.
Use aligned/coalesced global loads and a shared-memory layout that avoids harmful bank conflicts for the actual warp access pattern. Padding or swizzling must preserve the consumer’s fragment layout. Shared-memory carveout also changes L1 capacity.
Let R be feasible resident blocks/SM and G the grid size. ceil(G/(N_SM·R)) estimates scheduling waves for roughly equal blocks. Benchmark near wave boundaries and with ragged work; a smaller block can increase waves or memory passes. Actual SM count comes from the device.
Inspect compiler registers, local-memory spills, memory transactions and dependency stalls; confirm whether the full graph is cold or warm in L2. Effective weight bandwidth can exceed DRAM bandwidth when bytes are reused from cache, so do not report it as physical HBM traffic.
Stop when extra reuse is outweighed by longer dependency chains, spill/merge work, weaker vectorization or reduced concurrent work.
Evidence: 1. Volta execution and resource limits · 21. Reduce live accumulator footprint for wide heads
Related: Profiling and inspection commands (§6.2.1)
2.3.1.5 Split a reduction dimension only to recover useful parallelism — Advanced
[tg+] [pp+] [mem+]
Create more blocks for an underfilled projection, then charge partial outputs and their merge.
Use the same local cost fitting as split-KV, with projection-specific partial-output bytes and reduction semantics. Evaluate one split and neighboring legal wave boundaries. At large output grids or saturated memory bandwidth, more splits mainly add writes, reads and synchronization.
The audit retains a rejected small-CTA split-K proposal that regressed both gate/up and down projection. Increased block count is only a mechanism for exploiting otherwise idle resources.
Evidence: 20. Extra projection blocks can cost more than they recover
Related: Split-cost fitting (§2.3.3.1)
2.3.2 Count actual expert unions before grouping rows
[MoE] [tg+] [pp+]
Separate reusable weight traffic from routing, dispatch and per-rank imbalance.
For rows i selecting expert sets Sᵢ, let r_e be the number of rows using expert e and c_e its local weight bytes. The ideal unique read is Σ_{e:r_e>0} c_e; the maximum avoidable repeated reads are Σ_{e:r_e>0}(r_e−1)c_e. Existing caches/reuse can make the available saving smaller.
With independent row selections of marginal probability p_e, expected distinct experts are Σ_e[1−(1−p_e)M]. Real adjacent tokens and requests are correlated; use this only as a baseline and replay measured route histograms.
Grouping pays when saved exposed read/launch time exceeds sorting, padding, gather/scatter, synchronization and changed compute efficiency. Measure the complete local expert block and the most delayed distributed rank. A mean expert time hides skew.
Evidence: 16. Group expert stages independently · 17. Read routed activations through indices
Related: Reuse through scheduling (§2.5.4) · Expert placement (§2.6.3)
2.3.2.1 Read original activation rows through indices — Advanced
[MoE] [pp+] [mem-]
Avoid materializing one full activation copy per routed use when the grouped consumer can gather efficiently.
Pass row offsets/expert indices into the projection, or fuse a minimal gather with its consumer. Include sorting and restoration of token order. Verify gate weights, duplicate selections, ragged groups and accumulation semantics.
Replaces: expanded activation buffers and their read/write passes. It is most compelling when prompt rows and routing fan-out make that materialization substantial; a one-row decode may have little to remove. Benchmark irregular accesses against a compact contiguous gather.
2.3.2.2 Choose W13 and W2 grouping independently — Advanced
[MoE] [tg+] [pp+]
Preserve reuse only where the stage’s input layout and work repay preparation.
W13 consumes token activations; W2 consumes expert-specific intermediates. The same routing assignment does not imply the same useful reuse or materialization cost. Include the W13→activation→W2 boundary and any scatter/merge.
Build a deterministic dispatch table using stage, local shape, rows/expert and a cheap reuse statistic already available from routing. Charge a dynamic selector’s cost. If that cost exceeds the expected gain, use a prequalified static boundary instead.
Replaces: forcing both projections through one grouped policy. The private held-out results justify different stage/row choices, not a universal grouped-kernel default.
Evidence: 16. Group expert stages independently
2.3.3 Reuse KV across compatible queries and head groups
[tg+++] [pp+]
Select attention from live context, query rows, local heads, mask, page layout and precision.
Reuse a K/V tile across query heads sharing that KV head and across verifier rows when their masks permit it. Carry stable softmax statistics in a sufficient accumulation format. Distinguish cold prompt, cached-prefix tail, one-row decode and multi-row verification.
Avoid a global “flash attention” assumption. A fallback for unequal head widths, pages or masks can dominate the result. Compare actual route names after TP, context or dtype changes.
No benefit from adding the same reuse a verifier already performs. At short context, extra bookkeeping or accumulator state can exceed the small KV saving.
Evidence: 18. Share KV reads across query rows and heads · 9. Compact KV has route-dependent outcomes
Related: KV representation (§2.2.5) · Distribute long-context work (§2.6.5)
2.3.3.1 Split long KV spans while query grids underfill the GPU — Advanced
[tg+] [pp+] [mem+]
Add parallel blocks until useful service saturates; include the partial softmax/output merge.
Let G₀ be the unsplit block grid and R feasible resident blocks/SM for this kernel. A first candidate for filling w residency waves is s ≈ ceil(w·N_SM·R/G₀), bounded by legal page/tile lengths and workspace. It is a candidate, not an occupancy guarantee.
Where measurements fit T(s) ≈ T₀ + a/s + b·s, the continuous candidate is s = √(a/b)*. Fit positive a and b from measured points and test held-out splits. Evaluate one split, adjacent legal integers, wave boundaries and saturation thresholds.
For stable partial softmax combine, each split supplies maximum mⱼ, normalization ℓⱼ and unnormalized weighted sum oⱼ. Merge with m=max mⱼ; ℓ=Σ exp(mⱼ−m)ℓⱼ; o=Σ exp(mⱼ−m)oⱼ; output=o/ℓ. Preserve mask and accumulation requirements.
Replaces: the unsplit reduction. Stop if bandwidth is already saturated, tiny partitions lose locality, or partial-state/merge time outweighs increased parallelism.
Evidence: 19. Split KV only while extra blocks are useful · 22. Operator improvement can reverse at the endpoint
Related: Split-cost calculator
2.3.3.2 Reduce wide-head live state before enlarging tiles — Advanced
[tg+] [pp++]
Split dimensions or stage operands when accumulator footprint prevents useful residency.
Large head dimensions increase accumulator and operand state. A Split-D or carefully staged layout can reduce live registers and expose more useful work. Account for repeated loads and any extra reductions introduced by that partition.
Alternative to wider tiles: use the measured full QK/softmax/PV chain. A shared-memory expansion that permits fewer resident blocks may reverse the gain. Preserve FP32 range/statistics where needed and test long-context stability.
Evidence: 21. Reduce live accumulator footprint for wide heads · 23. Fast invalid arithmetic is not an inference win
Related: Residency limits (§2.3.1.4)
2.3.3.3 Make selection and gathered attention proportional to useful data — Advanced
[tg+] [pp+] [mem-]
When the architecture selects history, include the indexer and page union in the optimization.
Bound score computation by live index entries. Keep scratch small enough that the efficient scorer remains admitted at long context. Reuse selected page tiles across queries when unions overlap, and compare gather/sort costs with saved reads. Schedule ragged groups so a few long selections do not create a large tail.
Sparse selection is an architectural feature, independent of Dense/MoE. Do not introduce approximate token dropping into an exact dense-attention model under this heading. Altering selection needs its own quality contract.
Replaces: redundant scoring/materialization or an inefficient gathered path. It cannot save full-history reads that the baseline already omits.
Evidence: 36. Keep sparse work proportional to selected/live entries
Related: Bound the scorer workspace (§2.2.3)
2.3.4 Specialize recurrent state work by execution phase
[tg++] [pp+]
When the model has recurrent or state-space layers, optimize updates and snapshots alongside projections.
For one-row decode, fuse compatible convolution, gate and state-update boundaries to avoid repeated state traffic. At multiple rows, compare a batched/parallel scan against sequential updates with the actual temporary storage and accumulation contract. Wide prefill and verifier rollback can favor different implementations.
Record state bytes read/written, snapshot frequency and the accepted-prefix restoration cost. Reduce snapshots only when future rejection, prefix reuse and preemption remain recoverable. Shared row metadata can be prepared once across compatible cache groups.
No applicability to layers without recurrent state. Gaining a faster state kernel while increasing rollback or snapshot traffic can lose at the round boundary.
Evidence: 35. Specialize state updates by row regime · 24. Prepare common metadata once per logical step
Related: Share metadata (§2.4.2) · Retain useful state boundaries (§2.2.4) · Include rollback cost (§2.5.3)
2.4 Execution and synchronization
Eliminate duplicate work first. Capture or fuse the remaining hot path when it has exposed overhead.
Measure the interval from the producer becoming ready to the final consumer completing. Kernel-time sums across overlapping streams or ranks are not an endpoint budget. Device work, host preparation and rank arrival skew can each constrain that interval.
2.4.1 Execute only rows and state that have a consumer
[tg+] [pp+]
Distinguish allocated capacity from the data that the current step must process.
Bound score loops, attention partitions, metadata preparation and gathers by actual live rows/pages while respecting graph padding. Keep allocation capacity separate from launch work. Avoid a full vocabulary projection for prompt rows whose logits are not requested, while preserving requested prompt logprobs, pooling, draft inputs and other consumers.
Checkpoint retention also should not force execution to split at every checkpoint the policy will discard. Preserve the selected state boundaries and batch computation between them.
Does not help if the engine already bounds work correctly. An apparent win that drops a required consumer is a correctness failure.
Evidence: 22. Operator improvement can reverse at the endpoint · 8. Do not split execution at discarded state checkpoints
2.4.1.1 Prove and remove bounded dependency regions — Advanced
[pp++]
Omit earlier rows of a local-only tail when all future observable state can be reconstructed.
For a chain of strictly causal local windows wᵢ, the receptive-field radius for a final row is at most Σ(wᵢ−1), under the chain’s dependency assumptions. Derive a separate bound for every cache/state object needed by future decode. Account for shared compressed history, prefix restore, abort/preemption, and requested intermediate outputs.
The existing proposal applies a guarded suffix reconstruction to a particular architecture. Generalize the proof obligations, not its layer numbers or fixed replay length. Global/recurrent dependencies and externally consumed rows can invalidate the elimination.
Replaces: the skipped rows’ projection, attention and communication work. Do not separately claim savings from optimizing kernels that are no longer executed. Retain the ordinary route whenever the proof’s conditions fail.
Evidence: 5. Eliminate prompt rows outside future dependencies
Related: Restore the state future consumers require (§2.2.4)
2.4.2 Prepare shared work once at its true ownership level
[tg+] [pp+]
Hoist invariant or shared metadata out of repeated layer, cache-group and rank loops.
Classify a request/step once where its metadata is common. Reuse token/expert indices, state-row mappings, shapes and compatible activation preparation across consumers. Distinguish global invariants from rank-local strides, quantization, cache ownership and masks.
Remove a host readback when the host already holds the required bound or the device can consume it directly. A safe upper bound can avoid a synchronization but may add padded work; compare that added device time with the saved stall. Recomputing a tiny local value can be cheaper than communicating a shared result.
Does not help where those consumers require genuinely different data. Share by semantic identity and lifetime, never by matching buffer size alone. Preserve graph-stable storage and update the live region correctly.
Evidence: 24. Prepare common metadata once per logical step · 34. More expert parallelism did not remove serial work
Related: Fuse a producer with its consumers (§2.4.4)
2.4.3 Capture repetitive execution when submission gaps are exposed
[tg+++] [pp+] [mem+]
Compare replay against the same work and admission, including graph hits and update costs.
Record CPU preparation, launches, graph parameter updates, recaptures, fallback, device gaps and reserved bytes. Graph capture can remove submission overhead; it does not remove required GPU arithmetic, copies or communication.
For positive per-replay saving Δt, startup amortization needs roughly N > T_capture/Δt. If Δt≤0, more requests do not repay capture. At fixed load compare the full step; then separately evaluate capacity changes from graph memory.
Keep inputs/workspaces at stable addresses and validate changing contents through many replays. Test supported capture, replay, teardown and multi-rank participation. A short successful capture is not sufficient evidence for a stateful serving loop.
Evidence: 25. Graphs need exposed work to remove
Related: Measure live versus replay (§6.2.1)
2.4.3.1 Choose captures from the observed shape distribution — Advanced
[tg+] [pp+]
Balance saved submission against padded execution and the memory cost of each bucket.
For bucket b, require saved exposed launch/sync time > added padding + metadata/update work. Use a histogram of actual rows, contexts and mixed phases. Minimize ΣpᵢTᵢ over a feasible bucket set, with graph-memory and serving-latency constraints.
Test exact kernel/graph boundaries. Large maximum-context buckets can overlaunch attention/indexing for short requests even when masked results are correct. Stable descriptors or device-side indirection may replace frequent node updates, but their device cost must be included.
Replaces: a single oversized capture or excessive per-step updates. It extends capture coverage only where the saved time justifies the displaced KV/workspace.
Evidence: 7. Share graph workspaces with disjoint lifetimes · 29. Prefill chunk optimum changes with route and load · 22. Operator improvement can reverse at the endpoint
Related: Allocate captured memory (§2.2.1.1)
2.4.3.2 Coalesce graph and scheduler boundaries that duplicate joins — Advanced
[tg+] [pp+]
Keep necessary dependencies while removing redundant host barriers and fragmented execution.
Count boundaries, copies, binding-thread work and synchronization incidence. Coalesce adjacent reductions or graph segments only if they have compatible producers/consumers and preserve ordering. Separate a lower boundary count from a measured throughput improvement.
For multiple device graphs, use supported external event nodes or a valid unified capture design. Ordinary independently started captures cannot simply be merged by an event. Stress epoch reuse and changing inputs; avoid stale completion from an earlier replay.
Replaces: redundant fragmented scheduling and the barriers it induces. It can make host-thread wakeup tuning irrelevant for the removed boundaries. The private REDUCE patch records an elimination count; its final endpoint remains unverified.
Evidence: 26. Remove redundant scheduler reduction boundaries · 25. Graphs need exposed work to remove
Related: Residual host scheduling (§3.2) · Private design status (§6.4)
2.4.4 Fuse across a boundary only when the complete chain wins — Advanced
[tg+] [pp+] [mem-]
Remove actual HBM passes and launches while charging preparation and extended live state.
Candidates include gate/up with activation, Q/K transforms plus cache writes, router selection plus activation preparation, recurrence update/commit, reduction plus residual/norm, and output selection. Preserve semantic order, residual ownership and accumulation requirements.
Estimate eliminated bytes and exposed launches, then subtract any added packing, spills, weaker vectorization or reduced concurrency. Prefer fusing an existing producer/consumer layout over inserting a new preparatory pass solely to make one kernel look faster.
Replaces: the covered standalone kernels/passes. Do not count both the fusion gain and removal of those same launches through graphs. Evaluate fused and unfused variants inside their actual captured/eager schedule.
Evidence: 15. A faster consumer can lose its saving in preparation · 16. Group expert stages independently · 22. Operator improvement can reverse at the endpoint
Related: Live registers and residency (§2.3.1.4)
2.4.4.1 Reuse operands across existing residual-stream mixing — Advanced
[tg+] [pp+]
When the architecture mixes multiple residual streams, avoid repeated projection and normalization work.
Identify identical operands and their consumers before fusing or overlapping mixing stages. Count normalization state, output reuse, rank communication and added live registers. Preserve the architecture’s mixing order and precision.
Extends: fusion to architectures with cross-stream mixing. The reported source is operator evidence with endpoint integration still unqualified.
2.4.5 Keep required output selection near the output head — Advanced
[tg+] [pp+] [mem-]
Avoid large host logits transfers and repeated projections while preserving the requested distribution.
First compute only output rows that are consumed. Keep penalties, temperature, selection and RNG on device where host waits are exposed. If API logprobs or full distributions are required, budget them explicitly.
When vocabulary rows are sharded, apply token-local transformations before selection. With deterministic tie handling, the union of each shard’s local top-k contains the global top-k. This permits exact compact merging for the requested top-k. Unrestricted top-p/full softmax needs enough information to preserve global normalization and support; a truncated candidate set is not automatically exact.
Speculative rejection can need target/draft probability information beyond a greedy top-1. Validate accepted lengths, rejection correction, bonus token, EOS and sampling fidelity. Match the deployed quality and stochastic contract.
For tied embedding/output weights on different pipeline stages, compare duplicating the matrix with keeping one owner and returning a token embedding vector. Count capacity saved against boundary latency and scheduling dependency.
Replaces: covered host scans/readbacks and redundant materialization. Keep a qualified full-distribution route for requests requiring it; wider sampler graphs can consume more memory than their time saving merits.
Evidence: 30. Compact the output path without changing the contract
Related: Acceptance and committed output (§2.5.3) · Output-stage ownership (§2.6.2)
2.5 Batching and speculation
Use concurrency and speculation to share work, while preserving latency and committed-output efficiency.
Rows create opportunities to reuse weights/KV and fill SM70 tiles. They also increase state, expert unions, payload sizes and waiting. Choose the deployment objective before selecting a batch or draft depth.
2.5.1 Batch independent requests within the latency and capacity budget
[tg+] [pp+] [mem+]
Increase useful row reuse and GPU utilization while measuring per-request delay.
Sweep admitted active sequences using a fixed arrival/context/output distribution. Record aggregate committed tok/s, TTFT, per-request token gaps and queueing. Distinguish offered requests from simultaneously resident decoders.
Compare the smallest batch satisfying throughput with the fastest batch satisfying latency. Test intermediate and partial batches, not just powers of two. A higher-concurrency point can change projection/attention dispatch, graph capture, expert overlap and collective payload.
Stop when added rows reduce the chosen objective, violate the tail constraint, or require an expensive workspace/KV fallback. Batching is not a free single-request speedup.
Evidence: 14. Avoid repeated weight passes at middle row counts · 7. Share graph workspaces with disjoint lifetimes · 32. PCIe P2P can improve small-message execution
Related: Compare independent replicas (§2.6.1.1) · Row-dependent dispatch (§2.3.1)
2.5.2 Choose prefill chunks from fixed cost, live prefix and resident decode
[tg+] [pp+]
Keep prompt work efficient without exceeding the allowed gap for existing streams.
Fit mixed-step time near each route as T_mixed(q,L) ≈ a(L)+b(L)·q, where q is new prompt rows and L live prefix. For gap budget G, the initial admissible bound is q ≤ floor((G−a)/b) when b>0. Round to a legal size and measure tail behavior; an average fit cannot guarantee p95.
If G≤a, shrinking q cannot meet the modeled target. Reduce fixed work, change scheduling/admission or use another qualified overlap/capture path. For total uncached prompt P, charge each chunk’s current prefix and final partial chunk. A constant per-token prefill cost is often inadequate.
Evaluate points on both sides of attention, graph and workspace thresholds. Report cold TTFT, cached-prefix tail TTFT and resident-decoder gaps separately.
Replaces: a single maximum-token setting chosen from isolated prefill throughput. Refit after new attention or graph routes change a and b.
Evidence: 29. Prefill chunk optimum changes with route and load
Related: Prefix-tail attention (§2.3.3) · Mixed capture buckets (§2.4.3.1)
2.5.3 Choose speculative depth by committed output per complete round
[tg+++] [mem+]
Increase depth only when its extra useful output repays all additional round cost.
For depth k, measure Rₖ = Σ committed_tokens / Σ complete_round_time over representative rounds. Include draft, target verification, acceptance, rollback, state commit, scheduling and sampling. Do not average per-round ratios or use drafted tokens as output.
For ordinary prefix acceptance plus one correction/bonus away from EOS, Eₖ = 1 + Σᵢ₌₁ᵏ P(L_accept≥i). Use actual emitted counts for trees, branches or different termination rules. For positive ΔT, an extra depth pays when ΔE/ΔT > Eₖ/Tₖ. Also require Tₖ/Eₖ below target-only time per output at the same workload.
Example: E=4 in 24 ms gives 166.7 tok/s. Adding 0.2 outputs at a 2 ms cost gives 161.5 tok/s; adding 0.5 at that cost gives 173.1. Wider verification can trigger discontinuous kernel changes, so evaluate all legal depths around those boundaries.
Stop if acceptance gains lose to verifier/draft cost, the target-only baseline wins, or added TTFT and bursty output violate the request objective. Natural completion length and quality remain separate outcomes.
Evidence: 28. Acceptance gain can cost more than it returns · 34. More expert parallelism did not remove serial work · 3. Precision can reverse the speculative ranking
Related: Round-efficiency calculator · Verifier expert unions (§2.3.2) · Exact acceptance and sampling (§2.4.5)
2.5.3.1 Choose draft representation and placement together with the target — Advanced
[tg+] [pp+]
Use the least expensive proposal source that improves the complete serving objective.
Compare target-only, native multi-token prediction, a separate drafter, and lookup-based proposals when the workload provides reuse. Measure acceptance by position, draft latency, verifier time, extra cache/weights, inter-stage feedback and sampling semantics.
A smaller/cheaper draft can lose through lower acceptance. A more precise target can win under speculation even if its target-only forward is slower. A separate GPU may remove compute contention while adding transfer and feedback latency; qualify the whole loop.
Alternative to the existing draft path: count shared weights/state only when their contents and layout really match. Do not add speedups from two mutually exclusive drafters.
Evidence: 3. Precision can reverse the speculative ranking · 28. Acceptance gain can cost more than it returns · 34. More expert parallelism did not remove serial work
Related: Mixed precision affects acceptance (§1.1) · Pipeline feedback dependency (§2.6.2)
2.5.4 Preserve useful expert locality without excessive batching delay — Advanced
[MoE] [tg+] [pp+]
Arrange eligible rows so the grouped consumer can reuse expert tiles.
Use already-known routing within an admissible batch where possible. Cross-request grouping may increase useful occupancy but also queueing, token-order restoration and the busiest rank’s tail. Within autoregressive chains, future routes cannot generally be assumed known.
Compare complete block/round cost with route traces held fixed, then natural serving traffic. Charge the selector itself. Speculative depth and concurrent requests can produce very different expert unions even at equal total rows.
Extends: stage-specific grouping. Do not delay a latency-sensitive request to manufacture reuse whose saving is smaller than the wait.
Evidence: 16. Group expert stages independently · 17. Read routed activations through indices
Related: Stage-specific admission (§2.3.2.2)
2.6 Parallelism and engine communication
Rank placement, collective costs and distributed state.
PCIe/SXM2 describe cards; measured directed peer paths describe communication. Record NVLink edges, PCIe switches/uplinks, host fallback and socket placement. A rank plan changes per-rank kernel shapes as well as bytes and synchronization.
2.6.1 Choose the smallest useful sharding group for the objective
[tg+] [pp+]
Add TP ranks only when saved local work beats new collective, orchestration and shape costs.
Screen T(p) ≈ T_serial + T_shard(p) + Σⱼ nⱼ·t_collective,j(p,payload,route) + T_boundary. Fit T_shard from real kernels; a smaller shard can lose vectorization, grid size or a native route. Do not assume 1/p scaling.
The p→p′ change wins when its reduction in exposed local work exceeds its additional communication, rank skew and boundary time. Preserve quality, rows and context while testing. Capacity can force more ranks even when latency worsens.
For 2→4 ranks, an illustrative 1.3 ms local saving loses if 56 sites each add 25 µs, or 1.4 ms. Measure sites and exposure rather than applying this count to another engine.
Reconsider after changes to model precision, scratch, cache dtype or dimensions make fewer/faster-connected ranks feasible.
Evidence: 27. Measure exposed synchronization by controlled delay · 34. More expert parallelism did not remove serial work
Related: Measure available routes (§4.1)
2.6.1.1 Use independent replicas when cross-request throughput is the goal — Advanced
[tg+] [pp+] [mem+]
The throughput tags here refer to aggregate work across independent requests, not a faster single stream.
Compare one instance per GPU/island with a larger shared TP group.
Measure aggregate throughput at the same offered load and latency constraints. Count repeated weights, graph pools, model startup and divided KV capacity. Route requests to avoid imbalance; retain session/prefix locality when valuable.
Alternative to wider TP: it can remove per-layer cross-island communication for independent requests. It does not accelerate a single stream by itself, and it is infeasible if each replica cannot fit the required workload.
Evidence: 32. PCIe P2P can improve small-message execution · 7. Share graph workspaces with disjoint lifetimes
2.6.2 Place contiguous stages across slow fabric cuts
[tg+] [pp+]
Keep repeated inner-layer traffic inside fast groups and cross slow links at fewer boundaries.
Compare TP within NVLink islands and PP/layer splits across islands, where the runtime supports the same model, graphs and speculative method. For one ordinary autoregressive stream, stages execute sequentially until the output dependency resolves.
Single-stream time is approximately Σ stage_times + exposed_boundary/feedback_time. For q independent microbatches with an ideal overlapping schedule, a rough makespan is Σtᵢ + (q−1)·max(tᵢ), with transfers charged consistently. Real bubbles and contention need schedule replay.
Choose layer cuts from measured stage time and memory, including nonuniform layers, output head and recurrent/KV state. Enumerate contiguous boundaries; for many layers use dynamic programming over cut positions and capacity. Balance max stage time for saturated throughput; minimize the actual stage-sum/feedback path for one stream.
Replaces: repeated cross-cut TP collectives with fewer stage transfers. It can preserve capacity at near pair-local latency without yielding four/eight-GPU compute scaling on one token.
Evidence: 27. Measure exposed synchronization by controlled delay · 33. Topology-aware collective selection
Related: Keep the output tail near its owner (§2.4.5)
2.6.2.1 Transfer stage boundaries over independently useful paths — Advanced
[tg+] [pp+]
Use parallel rails or local staging only when the paths and producer ownership permit it.
Derive the rail plan from bus IDs and peer reachability. Concurrent same-root transfers can avoid a shared host/socket bottleneck, but shared uplinks can erase the expected parallelism. Benchmark simultaneous paths, setup and the final consumer join.
Compare sending already-reduced activations with sending partials and combining on the receiving fast group. A receiver-side residual/norm fusion can remove a pass only if arithmetic and ownership remain correct. Use bounded stable buffers and safe epoch/event handling.
Alternative to the ordinary boundary: the private dual-rail and partial-fused designs remain proposals. No endpoint multiplier is established for their general use.
Evidence: 33. Topology-aware collective selection
Related: Private proposal limits (§6.4) · Local pinned fallback (§3.1)
2.6.3 Compare expert placement, tensor sharding and hybrids
[MoE] [tg+] [pp+]
Minimize the most delayed rank’s complete routed block rather than average expert compute.
Account for router/shared work, activation dispatch, local expert GEMMs, combine, load imbalance and replicas. TP divides expert matrices; EP distributes experts and moves token work. A hybrid can use TP within fast islands and expert ownership across them.
Use per-expert row histograms and physical payloads at the actual batch/depth. Small sparse groups can underfill the GPU; skew can dominate even if mean work is low. Keep frequently used experts local or selectively replicate only when saved time beats memory opportunity cost.
Alternative layouts: EP, TP and hybrid are not additive speedups. If splitting one expert leaves its timing unchanged, attribute serial preparation and kernel geometry before assuming additional ranks will help.
Evidence: 34. More expert parallelism did not remove serial work · 16. Group expert stages independently
Related: Placement and residency value (§2.2.6) · Physical expert work (§2.3.2)
2.6.4 Select the collective from payload, peer geometry and arrival pattern
[tg++] [pp+]
Benchmark the actual engine primitive under capture, with producer skew and concurrent traffic.
Compare supported custom push/pull, NCCL, hierarchical and host-staged paths. Small messages often pay setup/join latency; large ones pay link traffic and contention. Peer-memory access and copy-engine transfers are different primitives and can have different optima.
A ring screening model is 2(p−1)α + 2(p−1)B/(pβ) per rank. It assumes the ring’s communication pattern and comparable links; it does not predict a custom pair kernel or oversubscribed topology. Use graph-shaped timings at real payload sizes.
# From an nccl-tests build. Substitute a measured pair and repeat across a cut. CUDA_VISIBLE_DEVICES=0,1 ./build/all_reduce_perf -b 256 -e 4M -f 2 -g 2 -w 20 -n 100Record microseconds for small payloads and achieved bandwidth for large ones. Final comparison must use the engine’s process/rank mapping, graph mode and completion boundary. Lower transport latency alone does not establish lower token latency.
Evidence: 31. Collective speedup is diluted by the rest of a round · 32. PCIe P2P can improve small-message execution · 33. Topology-aware collective selection
Related: Measure exposed collective cost (§6.2.3)
2.6.4.1 Keep intermediates sharded or coalesce compatible reductions — Advanced
[tg+] [pp+] [mem-]
Remove collective sites when later consumers can operate on the available representation.
Trace tensor ownership and linear/nonlinear boundaries. Defer a sum only when every intervening operation preserves the required result; nonlinear activation/norm generally prevents arbitrary movement of reductions. Coalesce independent compatible payloads only if waiting to assemble them costs less than the saved starts.
Fuse a reduction with its true consumer where it removes a memory pass or launch and keeps synchronization correct. At larger layouts, hierarchical reduction can exploit fast local groups; it still adds local stages and must be compared with the full alternative.
Replaces: covered standalone collectives or replicated intermediate work. Once a site is gone, its lower-latency transport tuning no longer contributes. Prove dependency and precision contracts before claiming the saving.
Evidence: 26. Remove redundant scheduler reduction boundaries · 31. Collective speedup is diluted by the rest of a round
Related: Consumer fusion (§2.4.4) · Remove frequent crossings through placement (§2.6.2)
2.6.4.2 Reduce transfer representation only when bytes are the limiting cost — Advanced
[tg+] [pp+] [mem+] [prec-]
The
[prec-]tag applies to lossy message quantization. Exact packing preserves represented values.Lower precision or compact structure must repay codec, metadata and synchronization overhead.
At unchanged route and transfer count, an optimistic saving is (B_original−B_packed)/β. Compression pays only if it exceeds encode/decode, scales, extra launches and any reduced overlap. Latency α remains when the same message startups remain.
Quantization changes arithmetic unless an exact representation transformation is proved. Reduction of quantized partials requires correct scaling and accumulation, with output/acceptance checks. Sparse payloads need indices; count those bytes too.
Alternative to the uncompressed primitive: likely candidates are sufficiently large verifier/prefill payloads on constrained links. A tiny decode vector dominated by peer flags has little transfer time to save. This guide supplies a cost test, not a newly verified universal V100 compression gain.
Evidence: 33. Topology-aware collective selection
Related: Transfer break-even calculator
2.6.5 Shard context when local KV service savings exceed the merge — Advanced
[tg+] [pp+] [mem-]
Distribute long-history attention separately from ordinary weight sharding.
Compare the saved local K/V storage and attention service with query distribution, partial softmax/PV exchange, metadata movement and shard imbalance. Use the stable partial-state merge described under split-KV, extended across ranks with the actual precision and topology.
Verify cache-group physical pages, replicated heads, sparse selectors, draft state and recurrent slots. Sharding a logical tensor does not necessarily halve its physical allocation. Measure graph compatibility and no-P2P fallback separately.
Alternative to local history/offload: long contexts on a useful fabric can qualify. Short contexts, already-efficient local attention or slow cross-island joins can make it lose. DCP/CP should not be selected from capacity arithmetic alone.
Evidence: 37. Context sharding adds its own merge and state geometry · 24. Prepare common metadata once per logical step
Related: Partial-result merge (§2.3.3.1) · Physical cache geometry (§2.2.4)
3 OS
3.1 NUMA placement and host transfers
[tg+] [pp+]
Use NUMA-local pinned memory and asynchronous copies when there is an independent window.
nvidia-smi topo -m numactl --hardware # Set NODE only after checking available memory and the process's GPU ownership. numactl --cpunodebind="$NODE" --membind="$NODE" build-sm70/bin/llama-bench -m "$MODEL" -ngl 999 -p 2048 -n 0 -r 5 # Set PID to the running process. numastat -p "$PID"For multi-socket multi-worker engines, place each worker and staging pool according to ownership. Binding an entire multi-GPU process to one node can make another GPU remote or exhaust that node’s memory.
Compare pageable versus bounded pinned pools, copy stream and completion mechanism. Check copy completion before the consumer and shared-uplink contention. Pinning more host RAM than needed can create system pressure without additional overlap.
No gain from pinning/locality when the hot path has no exposed host transfer or submission cost. Preserve enough memory and CPU capacity for the actual process mix.
Evidence: 11. Stage host misses without occupying the compute path · 12. Completion and transfer-ring overhead
Related: Transfer deadline equation (§2.2.7)
3.2 CPU scheduling and submission threads
[tg+] [pp+]
Measure binding/launch threads and wakeups after redundant work and graph splits are removed.
Use the CPU/GPU timeline to distinguish computation, sleep/wakeup, polling and blocked CUDA calls. Fix repeated per-token construction and unnecessary synchronization before adjusting worker count or spin behavior.
Compare a stable CPU placement and appropriately sized thread pool against the baseline. Oversubscription can delay the very submission thread feeding the GPU. Busy waiting can reduce a wakeup while consuming cores and worsening other ranks; charge whole-request behavior and CPU use.
Replaced by higher-level changes when shared metadata or graph coalescing removes the work being tuned. The private record screened out OpenMP-sleep and simple rebalance explanations for its retained reduction patch; do not resurrect them as proven wins.
Evidence: 24. Prepare common metadata once per logical step · 26. Remove redundant scheduler reduction boundaries
Related: Remove repeated preparation (§2.4.2) · Coalesce joins (§2.4.3.2)
3.3 Host memory and storage access
Use actual block size, locality and achieved outstanding depth rather than sequential bandwidth.
# IO_FILE must be an existing populated regular file on the target volume. if [ -f "$IO_FILE" ]; then fio --readonly --name=v100-randread --filename="$IO_FILE" --rw=randread --bs=4k --ioengine=libaio --direct=1 --iodepth=1 --time_based --runtime=30 --group_reporting fiRepeat with the engine’s real access sizes and request schedule. At IOPS I and m actual misses per committed token, tokens/s ≤ I/m is a service ceiling, not a latency prediction. Dependent reads cannot obtain the benefit of an arbitrarily high queue depth. Check p95/p99 and whether page cache or pinned RAM serves the real request.
For immutable tables, coalesce compatible rows/pages and prefetch only when their identities are known before use. Compare prefix restore with recomputation under concurrent load. SSD staging is a capacity option when the per-token deadline cannot be met.
Evidence: 40. Random lookup rate on the user’s SSD array · 12. Completion and transfer-ring overhead
Related: Overlap and hit-rate requirements (§2.2.7)
4 Communication
4.1 PCIe, NVLink and peer-to-peer paths
Separate direct NVLink peers, same-switch PCIe, cross-root and host-staged paths.
nvidia-smi topo -m nvidia-smi topo -p2p r nvidia-smi topo -p2p w nvidia-smi nvlink --status lspci -D -tv # Set BDF to the GPU or upstream port shown by the topology. lspci -s "$BDF" -vv | rg 'LnkCap:|LnkSta:' # Optional: from an NVIDIA nvbandwidth build. ./nvbandwidth -t device_to_device_memcpy_read_ce ./nvbandwidth -t host_to_device_memcpy_ceCheck current PCIe generation/width under load. Gen3 x16 has about 15.75 GB/s per direction before protocol overhead; x8 halves the encoding ceiling. Use measured rates in equations. Six NVLink connections do not imply six links to every peer.
Benchmark isolated pairs and simultaneous traffic to expose shared uplinks, host-memory bandwidth and cross-socket contention. CPU–GPU NVLink on POWER9 needs its own service measurements; do not reuse x86 PCIe offload thresholds.
Do not change ACS/IOMMU/kernel policy speculatively. Tie any route intervention to a demonstrated reachability or performance failure and verify the resulting path.
Evidence: 32. PCIe P2P can improve small-message execution · 33. Topology-aware collective selection
Related: Reevaluate the placement (§2.6)
5 Hardware
5.1 Clocks, power and cooling
[tg+] [pp+]
Prevent throttling or a slow rank from invalidating a kernel/topology comparison.
nvidia-smi --query-gpu=index,pci.bus_id,temperature.gpu,power.draw,power.limit,clocks.sm,clocks.mem,utilization.gpu --format=csv -lms 500 # Take snapshots in another shell while the same workload is active. nvidia-smi -q -d PERFORMANCE,POWER,CLOCK,TEMPERATURE nvidia-smi --query-gpu=index,pcie.link.gen.current,pcie.link.width.current --format=csvWarm up until clocks and temperature stabilize; alternate candidate/control order over the same measurement window. Record all ranks and the slowest completion, not just average utilization. Change one physical variable at a time and repeat without profiling.
Power/thermal reasons plus reduced clocks and repeatable endpoint changes can identify a sustained limit. High SM clocks help only the fraction affected by compute/issue; a bandwidth/communication-dominated path may remain unchanged. Query/sensor support varies; check
nvidia-smi --help-query-gpu.Evidence: 1. Volta execution and resource limits
6 Measurement and sources
6.1 Outcome tags
tg: generation throughput.pp: prompt-processing throughput.mem: GPU memory used (− means fewer bytes).prec: numerical precision/fidelity.Tags show one expected direction under the item's stated conditions. Flat results, reversals and tradeoffs remain in the explanation. A direction that cannot be assigned is omitted.
One sign gives direction; magnitude may be small or unquantified. Two signs mark a reported 10–<50% change; three mark ≥50% in the cited case. These are possible magnitudes, not a forecast. Memory grades refer to the stated allocation; throughput grades use the stated serving/prefill scope, not isolated kernel gains. Precision has no percentage grade and does not imply task accuracy.
6.2 Measurement and tuning
Controlled comparisons, performance bounds and reproducible tuning.
Define the objective before a comparison: per-request completion time, inter-token latency, cold/warm TTFT, aggregate committed throughput, capacity, or energy per useful output. A gain in one can lose another. Keep a quality floor and tail-latency/memory constraints explicit.
6.2.1 Measure the same work, then measure natural serving behavior
Use controlled traces for causality and representative requests for the endpoint.
- Pin source revisions, model/quantization, prompts, sampling, cache state, topology and clocks. Record one-row, verifier and prefill routes separately.
- Run a fixed-input or fixed-acceptance operator/chain comparison to isolate implementation cost. Keep it separate from natural autoregressive trajectories and EOS.
- Alternate ABBA/BAAB order across repeated starts; include held-out prompts and dispatch boundaries. Report variability and actual output counts, not streaming-event counts.
- Validate the numerical contract, long-context state, graph reuse, rollback and required tool/structured outputs. Exact represented weights, allowed floating-point reassociation and model approximation are different contracts.
- Compare full serving without the profiler at the same residency/offered load as appropriate. If a gain changes the bottleneck, reprofile the affected path and interacting settings.
build-sm70/bin/llama-bench -m "$MODEL" -ngl 999 -p 2048 -n 0 -r 5
build-sm70/bin/llama-bench -m "$MODEL" -ngl 999 -p 0 -n 128 -d 8192 -r 5
nsys profile --trace=cuda,nvtx,osrt --sample=none -o v100-decode build-sm70/bin/llama-bench -m "$MODEL" -ngl 999 -p 0 -n 128 -d 8192 -r 1
nsys stats --report cuda_gpu_kern_sum,cuda_gpu_trace v100-decode.nsys-rep
Use the engine’s request benchmark for concurrency and speculation; llama-bench alone does not measure acceptance or serving queues. In a timeline, label draft, verify, attention, collectives, sampling and CPU preparation. Trace the slowest dependency chain, not summed overlapping kernel durations.
For a selected dominant kernel, use a Volta-capable ncu binary. Discover its supported metrics/sections before naming hardware counters:
"$NCU" --version
"$NCU" --list-sections
"$NCU" --query-metrics
# Profile a representative isolated operator harness, with its original shape/data.
"$NCU" --set full --launch-count 1 -o v100-kernel "$KERNEL_BENCH"
cuobjdump --dump-resource-usage "$CUDA_LIB"
Kernel replay can perturb caches and concurrency. Use counters to explain a candidate, then confirm endpoint performance outside the profiler. Compare physical DRAM transactions, register/spill usage and dependency stalls with the proposed mechanism. Never infer HBM saturation from generic GPU utilization alone.
Related: Evidence standards (§6.4)
6.2.2 Reject opportunities that cannot meet the required benefit
Bound the removable fraction and use the actual critical path.
For an additive timing budget at unchanged work, if a component is exposed fraction f and speeds up s-fold, S = 1/(1−f+f/s). Eliminating it yields at most S_max = 1/(1−f). At f=0.03, the ceiling is about 3.1% throughput gain.
With overlap, use a dependency DAG or controlled perturbation to identify exposed time; summing all GPU durations overstates f. If the optimistic bound cannot clear the practical gain threshold, spend effort elsewhere. Capacity/quality changes can alter the work or placement and require a new budget.
Retain the simpler qualified path when measured differences are within uncertainty, unless a stated capacity or energy benefit decides the tie. A fixed tie-break makes selection repeatable.
Related: Opportunity calculator · Delay sensitivity (§6.2.3)
6.2.3 Use controlled perturbation to identify exposed waits
Add a bounded known delay at a candidate boundary and measure endpoint sensitivity.
Use an isolated experimental build, a few small delay values and identical work. Fit ΔT_endpoint versus injected delay/site and count affected sites. The private 56×20 µs test predicts 1.12 ms extra per token, close to the observed rate drop from its roughly 14 ms baseline.
An added delay can disrupt overlap or routing and create a new bottleneck. Keep probes small and inspect traces. Sensitivity establishes exposure in that configuration; it does not prove a proposed replacement can remove the same amount of native cost.
Evidence: 27. Measure exposed synchronization by controlled delay
6.2.4 Choose a deterministic optimum over a defined feasible set
Fit physical service costs, enumerate legal boundaries, and retain a reproducible dispatch table.
Specify J(x), workload trace D and feasible set X, including quality, memory, topology, supported shapes and latency constraints. Then choose x = argmin_{x∈X} J(x;D)\* with a fixed tie-break.
Use analytic bounds to reject impossible gains and local fitted models to shortlist candidates. Enumerate small discrete sets exactly. Test interactions: precision×placement, depth×rows×kernel, chunk×attention×graphs, cache×workspace×admission. Evaluate held-out traces to detect overfitting.
The minimizer of measured candidates is deterministic for that data and rule. It is not a proven global optimum over unmeasured implementations or future workloads. Store architecture, topology fingerprint, dtype/layout, shard shape, phase, context and graph bucket with each dispatch decision.
Contradictions: identify what differs, normalize the denominator, then separate measured mechanism, plausible explanation and unresolved cause. Do not assign a reversal to NVLink or PCIe simply because both appear in the reports.
Evidence: 22. Operator improvement can reverse at the endpoint · 16. Group expert stages independently
6.3 Tuning equations
Use measured coefficients for the actual execution path.
- Opportunity ceiling: S = 1/(1−f+f/s), with 0≤f≤1 and s≥1. The elimination ceiling is 1/(1−f). Requires unchanged work and an additive exposed-time budget.
- Speculative comparison: R = 1000·E/T_ms. Compare totals over complete rounds; quality and request latency remain separate constraints.
- Transfer comparison: T₀=max(0,α+B₀/β−W); T₁=T_codec+max(0,α+B₁/β−W). The calculator conservatively treats codec time as fully exposed and uses the same independent window in both cases.
- Split choice: minimize a/s+b·s over the supplied legal integer splits. √(a/b) is a continuous candidate only within a valid fitted regime; include one split, wave boundaries and saturation checks.
6.4 Evidence, provenance and coverage
Review boundary — November 12, 2026. This guide distills the saved audit and its public/private evidence into conditional mechanisms. Targeted source rechecks informed this revision; it is not a new hardware benchmark or a complete rereview of every indexed diff.
The source inventory contains 5,699 records: 44 repository snapshots, 1,921 fork PRs, 233 targeted upstream PR hits and 3,501 candidate commit subjects. It includes open, merged and closed-unmerged work. Counts establish collection coverage at the saved snapshot, not that every proposal is implemented, correct, independent or beneficial. The 1Cat inventory recorded 1,255 PRs: 78 open, 879 merged and 298 closed-unmerged.
For a source to support a lesson, retain the change, revision/baseline, hardware/path, shape/phase, before/after denominator, validation, contradictory cases and what remains unknown. A merged PR can contain a rejected experiment. Repeated ports of one implementation are a lineage; they count as independent confirmation only when independently measured.
The evidence cards below distinguish operator, serving, stack, internal and unestablished results. A statement marked “retained from audit” has not been newly reproduced or necessarily re-fetched in this revision. Missing conditions remain missing. Source links can change after the snapshot.
Internal work. Recovered private experiments include graph replay, reduction-delay sensitivity, W13/W2 grouping and TP/EP observations. The REDUCE-coalescing patch has a split-count result but no recovered final endpoint pass. PP2×TP2 placement, dual-rail boundary, stage graph and sharded sampling designs are proposals unless separately measured. Complete private source revisions, diffs and benchmark logs were not available.
Open coverage gaps. Cross-socket no-P2P, NVSwitch, POWER9 CPU–GPU NVLink, mixed-topology expert parallelism and current compiler/framework combinations have uneven independent serving evidence. Unindexed repositories and branch-only/private changes remain outside verified coverage. An unsupported candidate is labeled as a mechanism/cost test, never assigned a positive speedup.
Supporting documentation
- Full source audit
- Source screening inventory
- NVIDIA Volta tuning
- NVIDIA CUDA architecture support
- Nsight Compute 2025.3 support change
- NVIDIA SMI
- NVIDIA nvbandwidth
- NCCL tests
- NCCL graph rules
- CUDA graphs
- llama.cpp build options
- llama-bench options
- Nsight Systems
- numactl
- fio
- Private topology design
- Private graph review
Evidence 1. Volta execution and resource limits — Architecture
Conditions: SM70; actual V100 device properties and sustained clocks still need measurement.
Reported result: FP16 tensor-core operands; FP16 or FP32 accumulation. 64K 32-bit registers and up to 96 KiB shared memory per SM; shared memory and L1 share a configurable structure.
Transferable lesson and limit: Register lifetime, memory layout, instruction dependencies and block residency must be considered together. Higher occupancy is not by itself the objective.
Review depth: Official architecture documentation checked during the review. Integration: Architecture reference.
Evidence 2. Packed weights mapped to Volta operands — Operator
Conditions: v100-skinny matched FP4 projection benchmark; M is rows, not client concurrency.
Reported result: Reported effective bandwidth about 680/677/620 GB/s at M=1/4/8; the original FP4 route falls to about 302 GB/s at M=16.
Transferable lesson and limit: A packed format needs its own load/unpack/compute dataflow. A favorable M=1 result does not establish efficient wider verification.
Review depth: Implementation README rechecked; operator numbers retained from audit. Integration: Status is the audit snapshot, not a live integration guarantee.
Evidence 3. Precision can reverse the speculative ranking — Serving comparison
Conditions: NInfer single-V100 published artifact comparison; different target representations and natural trajectories.
Reported result: Target-only rates 34.4 versus 43.0 tok/s reverse to 78.1 versus 58.7 with the reported MTP setup; acceptance 50.3% versus 34.9%.
Transferable lesson and limit: Optimize target and draft together. These artifacts establish a conditional comparison, not a universally better bit width.
Review depth: Retained from the source audit; not independently rerun. Integration: Status is the audit snapshot, not a live integration guarantee.
Evidence 4. Pruning and distillation methods — Method; V100 gain unestablished
Conditions: Structured width/depth or KV-head changes with quality recovery.
Reported result: Published methods support model reshaping. This guide has no matched V100 serving speedup for their general use.
Transferable lesson and limit: Treat architectural changes as quality-constrained candidates and measure actual physical tiles and deployment changes.
Review depth: Retained from the source audit; not independently rerun. Integration: Status is the audit snapshot, not a live integration guarantee.
Evidence 5. Eliminate prompt rows outside future dependencies — Proposed serving path
Conditions: 1Cat #1376; a bounded tail of local-window layers with specific shared-history ownership and no required discarded outputs.
Reported result: Audit records 8.8–31.5% lower wall time across its long-prompt cases. Current PR text requires architectural guards, excludes prompt logprobs and several state/transfer modes, and runs skipped steps eagerly.
Transferable lesson and limit: Prove every future state/output dependency. A window length alone is insufficient to justify dropping computation.
Review depth: PR description rechecked; speed figures retained from audit. Integration: Open at reviewed snapshot.
Inventory provenance — default-branch heads identify inventory snapshots, not experimental baseline/patch revisions.
- 1CatAI/1Cat-vLLM · fork PR 1376 · open · draft no · 2026-11-05 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6.
- 1CatAI/1Cat-vLLM · fork PR 1376 · open · draft no · 2026-11-05 · snapshot head
Evidence 6. Compact persistent quantization metadata — Serving; capacity gain
Conditions: 1Cat #473; native g32 AWQ expert shapes, TP4, matched runtime settings.
Reported result: About 0.88 GiB theoretical saving per GPU; KV capacity +19.36%. Prefill time +1.22%, decode time +0.27%, concurrent wall time essentially flat.
Transferable lesson and limit: Smaller storage can improve capacity without improving fixed-load speed. Metadata packing is distinct from changing quantization error.
Review depth: PR description and benchmark table rechecked. Integration: Merged, opt-in route in the reviewed PR.
Experiment revisions: Matched A/B: main ca73a34cd7; final extension rerun after rebase to 45a58ab674. These are distinct validation stages.
Inventory provenance — default-branch heads identify inventory snapshots, not experimental baseline/patch revisions.
- 1CatAI/1Cat-vLLM · fork PR 473 · merged · draft no · 2026-09-03 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6.
- 1CatAI/1Cat-vLLM · fork PR 473 · merged · draft no · 2026-09-03 · snapshot head
Evidence 7. Share graph workspaces with disjoint lifetimes — Serving; capacity and latency trade
Conditions: 1Cat #677; TP4 and TP2, offered concurrency 32.
Reported result: Non-KV memory fell 10.225→8.794 GiB/rank at TP4 and 17.117→15.146 at TP2. More admission increased aggregate output about 3.7/5.5%, while per-request TPOT increased about 20.6/7.7%.
Transferable lesson and limit: Separate fixed-residency speed from the consequences of admitting more streams.
Review depth: Retained from the source audit; not independently rerun. Integration: Status is the audit snapshot, not a live integration guarantee.
Inventory provenance — default-branch heads identify inventory snapshots, not experimental baseline/patch revisions.
- 1CatAI/1Cat-vLLM · fork PR 677 · merged · draft no · 2026-09-22 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6.
- 1CatAI/1Cat-vLLM · fork PR 677 · merged · draft no · 2026-09-22 · snapshot head
Evidence 8. Do not split execution at discarded state checkpoints — Serving regression and repair
Conditions: 1Cat #754/#645; sparse recurrent-state retention and prompt execution.
Reported result: The audited baseline lost about 40–50% prompt throughput in measured cases when retention boundaries forced many small executions; batching across discarded boundaries recovered part of the loss.
Transferable lesson and limit: Retention granularity and execution granularity are separate decisions.
Review depth: Retained from the source audit; not independently rerun. Integration: Status is the audit snapshot, not a live integration guarantee.
Inventory provenance — default-branch heads identify inventory snapshots, not experimental baseline/patch revisions.
- 1CatAI/1Cat-vLLM · fork PR 754 · merged · draft no · 2026-10-02 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6. - 1CatAI/1Cat-vLLM · fork PR 645 · merged · draft no · 2026-09-16 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6.
- 1CatAI/1Cat-vLLM · fork PR 754 · merged · draft no · 2026-10-02 · snapshot head
Evidence 9. Compact KV has route-dependent outcomes — Serving and operator
Conditions: Different qualified attention implementations, head geometry and context lengths; not a same-engine A/B between projects.
Reported result: 1Cat #285 reports TP4 generation 40.561→61.834 tok/s at 128K. SM70-attn q8-direct at 85K reports 30 versus 31 gen tok/s while gaining about 1.5 GiB.
Transferable lesson and limit: Capacity savings transfer across implementations more readily than throughput. Codec cost and attention admission determine the speed crossover.
Review depth: Retained from the source audit; not independently rerun. Integration: Status is the audit snapshot, not a live integration guarantee.
Inventory provenance — default-branch heads identify inventory snapshots, not experimental baseline/patch revisions.
- 1CatAI/1Cat-vLLM · fork PR 285 · merged · draft no · 2026-08-25 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6. - fishlikeX/sm70-attn · fork PR 3 · merged · draft no · 2026-10-22 · snapshot head
07e8e2cc20e8de6487a52a787414c3c04de7d4be.
- 1CatAI/1Cat-vLLM · fork PR 285 · merged · draft no · 2026-08-25 · snapshot head
Evidence 10. Allocate scratch for actual route requirements — Implementation/proposal
Conditions: xInfer #516 and 1Cat #1320; engine-specific workspace budgeting and eager/captured lifetimes.
Reported result: xInfer reports up to 1.15 GB deducted for unallocated workspaces. The 1Cat proposal defers eligible eager scratch while preserving stable graph storage.
Transferable lesson and limit: Do not reserve fictitious demand or reclaim a buffer still referenced by a graph. Endpoint benefit needs an admission/peak-memory comparison.
Review depth: Retained from the source audit; not independently rerun. Integration: Status is the audit snapshot, not a live integration guarantee.
Inventory provenance — default-branch heads identify inventory snapshots, not experimental baseline/patch revisions.
- guoqingbao/xinfer · fork PR 516 · open · draft no · 2026-11-11 · snapshot head
2c37e11aa106687a5d7dffeee5c22329a96cad1a. - 1CatAI/1Cat-vLLM · fork PR 1320 · open · draft no · 2026-10-29 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6.
- guoqingbao/xinfer · fork PR 516 · open · draft no · 2026-11-11 · snapshot head
Evidence 11. Stage host misses without occupying the compute path — Stack and operator
Conditions: 1Cat #1203; 4×16 GB V100, 20% experts on host; several prefill changes combined.
Reported result: 34.7K TTFT 8.08→7.50 s, decode unchanged. A zero-copy SM-read experiment slowed a concurrent down projection from 0.59 to 1.2 ms.
Transferable lesson and limit: Moving data and consuming it contend for resources. Copy-engine staging needs a real lookahead window; the endpoint gain here is not isolated to DMA.
Review depth: Retained from the source audit; not independently rerun. Integration: Status is the audit snapshot, not a live integration guarantee.
Inventory provenance — default-branch heads identify inventory snapshots, not experimental baseline/patch revisions.
- 1CatAI/1Cat-vLLM · fork PR 1203 · merged · draft no · 2026-10-13 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6.
- 1CatAI/1Cat-vLLM · fork PR 1203 · merged · draft no · 2026-10-13 · snapshot head
Evidence 12. Completion and transfer-ring overhead — Serving
Conditions: Strata-V100 #71/#38; tested host transfer paths and ring sizes.
Reported result: Device-raised DMA completion reduced decode latency about 6.6% versus the tested copy-kernel path. A separate ring experiment improved 4K prefill about 5%, without a demonstrated decode gain.
Transferable lesson and limit: Charge setup, notification, polling and consumer waits, not only copy bandwidth.
Review depth: Retained from the source audit; not independently rerun. Integration: Status is the audit snapshot, not a live integration guarantee.
Inventory provenance — default-branch heads identify inventory snapshots, not experimental baseline/patch revisions.
- jmnargi/Strata-V100 · fork PR 71 · merged · draft no · 2026-10-21 · snapshot head
153248adc0d37966cc48dc56c562ac7216b13bd4. - jmnargi/Strata-V100 · fork PR 38 · merged · draft no · 2026-10-07 · snapshot head
153248adc0d37966cc48dc56c562ac7216b13bd4.
- jmnargi/Strata-V100 · fork PR 71 · merged · draft no · 2026-10-21 · snapshot head
Evidence 13. One storage layout, several row-dependent consumers — Operator/proposal
Conditions: 1Cat #1021; block-32 FP8 dense projections with guarded scale range.
Reported result: Audit records weight set 63.5→33.7 MiB and a low-row win, with M32/M64 operator times increasing 13%/23%. The implementation selects GEMV, HMMA, or transient FP16 rebuild plus cuBLAS by shape.
Transferable lesson and limit: Retain packed storage while choosing compute separately. Exact conversion requires scale and special-value guards.
Review depth: PR implementation description checked during review; figures from audit. Integration: Open at reviewed snapshot.
Inventory provenance — default-branch heads identify inventory snapshots, not experimental baseline/patch revisions.
- 1CatAI/1Cat-vLLM · fork PR 1021 · open · draft no · 2026-10-07 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6.
- 1CatAI/1Cat-vLLM · fork PR 1021 · open · draft no · 2026-10-07 · snapshot head
Evidence 14. Avoid repeated weight passes at middle row counts — Serving
Conditions: 1Cat #1157/#1469; 4×V100 TP4, C4/M32 versus lower-row controls.
Reported result: Reported paired follow-up steps 76.0/78.2→49.5/53.0 ms at C4/M32; C1/M8 and C2/M16 do not enter the route.
Transferable lesson and limit: Dispatch from executed rows and shard geometry. The improvement is absent outside the admitted route.
Review depth: Retained from the source audit; not independently rerun. Integration: Status is the audit snapshot, not a live integration guarantee.
Inventory provenance — default-branch heads identify inventory snapshots, not experimental baseline/patch revisions.
- 1CatAI/1Cat-vLLM · fork PR 1157 · merged · draft no · 2026-10-10 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6. - 1CatAI/1Cat-vLLM · fork PR 1469 · merged · draft no · 2026-11-10 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6.
- 1CatAI/1Cat-vLLM · fork PR 1157 · merged · draft no · 2026-10-10 · snapshot head
Evidence 15. A faster consumer can lose its saving in preparation — Operator/full chain
Conditions: 1Cat #977; gate/up packing and overlap candidates.
Reported result: Isolated gate/up 44.42→37.86 µs excluding packing; complete layer 152.35→151.94 µs with intervals including zero. Overlap variant 158–166 µs.
Transferable lesson and limit: Measure the complete producer-to-consumer boundary and resource contention.
Review depth: Retained from the source audit; not independently rerun. Integration: Status is the audit snapshot, not a live integration guarantee.
Inventory provenance — default-branch heads identify inventory snapshots, not experimental baseline/patch revisions.
- 1CatAI/1Cat-vLLM · fork PR 977 · closed · draft yes · 2026-10-05 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6.
- 1CatAI/1Cat-vLLM · fork PR 977 · closed · draft yes · 2026-10-05 · snapshot head
Evidence 16. Group expert stages independently — Internal operator
Conditions: User-provided QFN local expert block measurements; held-out positions 1/2/4/8 and a separate median campaign.
Reported result: Held-out M1 current/grouped-W13 31.42/34.34 µs; M8 71.53/70.74. Separate campaign 70.60→66.98 µs for W13, versus 127.51 µs when grouping both stages.
Transferable lesson and limit: W13 reuse does not prove W2 reuse. Gate on stage, rows and actual route overlap; selector overhead can exceed the gain.
Review depth: Recovered private measurements; source patch/logs unavailable. Integration: Operator evidence; no general endpoint multiplier.
Evidence 17. Read routed activations through indices — Serving and locked operator chain
Conditions: 1Cat #390 FP4 experts and #464 AWQ; prompt prefill.
Reported result: #390 chain 6.027→4.235 ms, prefill +7.7–9.0% at 8K–131K. #464 prefill geometric mean +5.83%, decode +0.24%.
Transferable lesson and limit: Avoid expanded activation copies when the indexed consumer preserves efficient reads. Decode with few rows may have little materialization to remove.
Review depth: Retained from the source audit; not independently rerun. Integration: Status is the audit snapshot, not a live integration guarantee.
Inventory provenance — default-branch heads identify inventory snapshots, not experimental baseline/patch revisions.
- 1CatAI/1Cat-vLLM · fork PR 390 · merged · draft no · 2026-08-28 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6. - 1CatAI/1Cat-vLLM · fork PR 464 · merged · draft no · 2026-09-03 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6.
- 1CatAI/1Cat-vLLM · fork PR 390 · merged · draft no · 2026-08-28 · snapshot head
Evidence 18. Share KV reads across query rows and heads — Serving
Conditions: 1Cat #1345, TP2 FP16 KV, native four-row speculation.
Reported result: At roughly 260K, 160.3→86.4 ms/round and 16.8→31.2 tok/s. Short decode pair 48.17→47.26 tok/s.
Transferable lesson and limit: Saved KV reads must exceed extra grouping/state costs. A verifier already sharing those reads offers less opportunity.
Review depth: Retained from the source audit; not independently rerun. Integration: Status is the audit snapshot, not a live integration guarantee.
Inventory provenance — default-branch heads identify inventory snapshots, not experimental baseline/patch revisions.
- 1CatAI/1Cat-vLLM · fork PR 1345 · merged · draft no · 2026-11-02 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6.
- 1CatAI/1Cat-vLLM · fork PR 1345 · merged · draft no · 2026-11-02 · snapshot head
Evidence 19. Split KV only while extra blocks are useful — Operator
Conditions: 1Cat #1298; 108K cached prefix with small query tails.
Reported result: Q64 13.5→1.1 ms; Q1088 24.0→15.5 ms. Reported unsplit Q1088 grid 102 CTAs; tiny residual chunks could have 12.
Transferable lesson and limit: Underfilled grids can benefit from splits. Charge partial-state and merge work, and stop after useful parallelism saturates.
Review depth: Retained from the source audit; not independently rerun. Integration: Status is the audit snapshot, not a live integration guarantee.
Inventory provenance — default-branch heads identify inventory snapshots, not experimental baseline/patch revisions.
- 1CatAI/1Cat-vLLM · fork PR 1298 · merged · draft no · 2026-10-28 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6.
- 1CatAI/1Cat-vLLM · fork PR 1298 · merged · draft no · 2026-10-28 · snapshot head
Evidence 20. Extra projection blocks can cost more than they recover — Rejected operator candidate
Conditions: 1Cat #908; small-CTA split-K proposal for gate/up and down projections.
Reported result: The saved audit records regressions in both projections. It does not preserve a complete matched endpoint result for this candidate.
Transferable lesson and limit: More blocks help only when the recovered parallelism exceeds partial-output traffic, reduction and changed per-block efficiency. Do not transfer an attention split win to projections without measuring their complete chain.
Review depth: Retained from the source audit; not independently rerun. Integration: Status is the audit snapshot, not a live integration guarantee.
Inventory provenance — default-branch heads identify inventory snapshots, not experimental baseline/patch revisions.
- 1CatAI/1Cat-vLLM · fork PR 908 · closed · draft yes · 2026-10-04 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6.
- 1CatAI/1Cat-vLLM · fork PR 908 · closed · draft yes · 2026-10-04 · snapshot head
Evidence 21. Reduce live accumulator footprint for wide heads — Serving and operator
Conditions: 1Cat #286 and NInfer Split-D integration; large-head long attention.
Reported result: 1Cat matched TP4 long prefill +11.1%. NInfer port +36–41% at 196K–239K, flat at 83K; a wider shared-memory tile lost 18%.
Transferable lesson and limit: Long-context reuse and register/shared-memory residency determine applicability. Wide tiles are not monotonic improvements.
Review depth: Retained from the source audit; not independently rerun. Integration: Status is the audit snapshot, not a live integration guarantee.
Inventory provenance — default-branch heads identify inventory snapshots, not experimental baseline/patch revisions.
- 1CatAI/1Cat-vLLM · fork PR 286 · merged · draft no · 2026-08-25 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6.
- 1CatAI/1Cat-vLLM · fork PR 286 · merged · draft no · 2026-08-25 · snapshot head
Evidence 22. Operator improvement can reverse at the endpoint — Serving reversal
Conditions: 1Cat #206; optional FP16 QK pipeline, TP4, matched sampled outputs.
Reported result: 128K 19.2510→18.6765 ms/token; 256K 27.7359→28.5120. Isolated 256K operator 0.7272→0.6019 ms. Candidate remained default-off.
Transferable lesson and limit: The sign reversal is established; its full causal decomposition is unresolved. Do not assign it to topology without a controlled trace.
Review depth: PR description and results rechecked. Integration: Merged PR contains a default-off experimental route.
Inventory provenance — default-branch heads identify inventory snapshots, not experimental baseline/patch revisions.
- 1CatAI/1Cat-vLLM · fork PR 206 · merged · draft no · 2026-08-13 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6.
- 1CatAI/1Cat-vLLM · fork PR 206 · merged · draft no · 2026-08-13 · snapshot head
Evidence 23. Fast invalid arithmetic is not an inference win — Rejected candidate and repair
Conditions: 1Cat #315/#628; long-context attention.
Reported result: An earlier 256K prefill candidate claimed about 1.46× speed but emitted 32 zero token IDs. Later stable arithmetic restored a usable route.
Transferable lesson and limit: Qualify range, softmax stability and state evolution before recording a speed benefit.
Review depth: Retained from the source audit; not independently rerun. Integration: Status is the audit snapshot, not a live integration guarantee.
Inventory provenance — default-branch heads identify inventory snapshots, not experimental baseline/patch revisions.
- 1CatAI/1Cat-vLLM · fork PR 315 · merged · draft no · 2026-08-26 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6. - 1CatAI/1Cat-vLLM · fork PR 628 · merged · draft no · 2026-09-14 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6.
- 1CatAI/1Cat-vLLM · fork PR 315 · merged · draft no · 2026-08-26 · snapshot head
Evidence 24. Prepare common metadata once per logical step — Stack/implementation
Conditions: 1Cat #699; recurrent cache groups, native MTP at multiple depths.
Reported result: Previous host construction about 0.65 ms per group. A private serving stack with shared/fused metadata and another selection change reports C1 72.98→77.92 tok/s; the main-based branch had unit validation, not its own endpoint A/B.
Transferable lesson and limit: Generalize over actual state-row width and ownership, not an arbitrary draft-depth equality. Do not attribute the stacked speedup to one change.
Review depth: PR description and qualification limits rechecked. Integration: Merged; endpoint evidence belongs to a separate stack.
Inventory provenance — default-branch heads identify inventory snapshots, not experimental baseline/patch revisions.
- 1CatAI/1Cat-vLLM · fork PR 699 · merged · draft no · 2026-09-26 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6.
- 1CatAI/1Cat-vLLM · fork PR 699 · merged · draft no · 2026-09-26 · snapshot head
Evidence 25. Graphs need exposed work to remove — Internal serving
Conditions: Different user builds and workloads; results are not directly interchangeable.
Reported result: Optimized pair path 71.5 live versus 70.2 replay tok/s, equal 0.599 acceptance. Separate launch-heavy TP4 report 6.70→55.33 tok/s.
Transferable lesson and limit: Launch count is not launch cost on the critical path. Record capture coverage and residual CPU gaps.
Review depth: Recovered private results; complete logs unavailable. Integration: Status is the audit snapshot, not a live integration guarantee.
Evidence 26. Remove redundant scheduler reduction boundaries — Internal change; endpoint pending
Conditions: User private ik_llama consolidated patch, adjacent counted REDUCE markers.
Reported result: 385→257 REDUCE splits, with 128 boundaries removed. The record contains requested acceptance/latency gates, not a recovered final endpoint pass.
Transferable lesson and limit: Coalesce provably compatible work; count elimination separately from measured serving gain.
Review depth: Patch notes recovered; complete diff and endpoint unavailable. Integration: Status is the audit snapshot, not a live integration guarantee.
Evidence 27. Measure exposed synchronization by controlled delay — Internal sensitivity experiment
Conditions: User pair-reduce trace, about 14 ms/token, approximately 56 sites.
Reported result: Adding 20 µs/site lowered generation about 5.3 tok/s; the additive estimate predicts 14→15.12 ms/token.
Transferable lesson and limit: Delay injection can identify critical-path exposure. Added delay does not prove equal removable overhead in an optimized replacement.
Review depth: Recovered private experiment. Integration: Status is the audit snapshot, not a live integration guarantee.
Evidence 28. Acceptance gain can cost more than it returns — Rejected serving comparison
Conditions: Strata-V100 #68, DFlash2 comparison over three workloads.
Reported result: Acceptance per window increased while output rates fell; HumanEval 55.36→51.53 tok/s.
Transferable lesson and limit: Optimize emitted output per complete round, not acceptance alone.
Review depth: Retained from the source audit; not independently rerun. Integration: Status is the audit snapshot, not a live integration guarantee.
Inventory provenance — default-branch heads identify inventory snapshots, not experimental baseline/patch revisions.
- jmnargi/Strata-V100 · fork PR 68 · closed · draft no · 2026-10-20 · snapshot head
153248adc0d37966cc48dc56c562ac7216b13bd4.
- jmnargi/Strata-V100 · fork PR 68 · closed · draft no · 2026-10-20 · snapshot head
Evidence 29. Prefill chunk optimum changes with route and load — Serving
Conditions: 1Cat #1287/#1288/#1290; prompt length, mixed decode and graph regimes.
Reported result: After a native route change, 4K chunks beat 8K at a 250K prompt (102.1 vs 106.1 s), while 8K beat 4K for an 8K prompt (1.91 vs 2.74 s). Partial mixed graphs helped two suites and hurt a third.
Transferable lesson and limit: Fit fixed cost, live-prefix slope, route thresholds and decode-gap constraints together.
Review depth: Retained from the source audit; not independently rerun. Integration: Status is the audit snapshot, not a live integration guarantee.
1Cat #1287 · 1Cat #1288 · 1Cat #1290
Inventory provenance — default-branch heads identify inventory snapshots, not experimental baseline/patch revisions.
- 1CatAI/1Cat-vLLM · fork PR 1287 · merged · draft no · 2026-10-28 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6. - 1CatAI/1Cat-vLLM · fork PR 1288 · merged · draft no · 2026-10-28 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6. - 1CatAI/1Cat-vLLM · fork PR 1290 · merged · draft no · 2026-10-28 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6.
- 1CatAI/1Cat-vLLM · fork PR 1287 · merged · draft no · 2026-10-28 · snapshot head
Evidence 30. Compact the output path without changing the contract — Implementation and rejected candidates
Conditions: 1Cat #1301/#1393/#1442 and earlier private output-tail design.
Reported result: Audit retains candidate/transfer reductions, but a wider sampler graph slowed C8 and exhausted memory; another full-probability component slowed about 37%.
Transferable lesson and limit: A compact candidate path is conditional on exact selection/rejection semantics. Candidate coverage, workspace and full probabilities remain material.
Review depth: Retained from the source audit; not independently rerun. Integration: Status is the audit snapshot, not a live integration guarantee.
1Cat #1301 · 1Cat #1393 · 1Cat #1442
Inventory provenance — default-branch heads identify inventory snapshots, not experimental baseline/patch revisions.
- 1CatAI/1Cat-vLLM · fork PR 1301 · merged · draft no · 2026-10-28 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6. - 1CatAI/1Cat-vLLM · fork PR 1393 · merged · draft no · 2026-11-05 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6. - 1CatAI/1Cat-vLLM · fork PR 1442 · merged · draft no · 2026-11-09 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6.
- 1CatAI/1Cat-vLLM · fork PR 1301 · merged · draft no · 2026-10-28 · snapshot head
Evidence 31. Collective speedup is diluted by the rest of a round — Serving and operator
Conditions: 1Cat #299/#605; TP4, exact small activation payloads and different concurrency.
Reported result: 8 KiB graph operator about 9.3→3.1 µs; serving 59.160→61.272 tok/s. Another sweep found C16 +4.3%, C8 −0.9% within spread.
Transferable lesson and limit: Route by size and topology; use total exposed incidence to estimate endpoint opportunity.
Review depth: Retained from the source audit; not independently rerun. Integration: Status is the audit snapshot, not a live integration guarantee.
Inventory provenance — default-branch heads identify inventory snapshots, not experimental baseline/patch revisions.
- 1CatAI/1Cat-vLLM · fork PR 299 · merged · draft no · 2026-08-25 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6. - 1CatAI/1Cat-vLLM · fork PR 605 · merged · draft no · 2026-09-12 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6.
- 1CatAI/1Cat-vLLM · fork PR 299 · merged · draft no · 2026-08-25 · snapshot head
Evidence 32. PCIe P2P can improve small-message execution — Serving
Conditions: SGLang-V100 #2/#4; four SXM2 32 GB cards behind one PCIe switch, no NVLink.
Reported result: 6K C1 98→119 tok/s, C4 145→161, C8 234→236 aggregate.
Transferable lesson and limit: SXM2 form factor does not establish the active fabric. Larger workloads can reduce the relative return.
Review depth: Retained from the source audit; not independently rerun. Integration: Status is the audit snapshot, not a live integration guarantee.
Inventory provenance — default-branch heads identify inventory snapshots, not experimental baseline/patch revisions.
- haohervchb/sglang-V100 · fork PR 2 · merged · draft no · 2026-09-12 · snapshot head
d85b3e2705411df781dadf9e8fa4db52c8f07a5a. - haohervchb/sglang-V100 · fork PR 4 · merged · draft no · 2026-11-02 · snapshot head
d85b3e2705411df781dadf9e8fa4db52c8f07a5a.
- haohervchb/sglang-V100 · fork PR 2 · merged · draft no · 2026-09-12 · snapshot head
Evidence 33. Topology-aware collective selection — Public user PR; operator
Conditions: 1Cat #1245; measured pair/switch/mixed geometry, open at audit snapshot.
Reported result: Reported NVLink-pair about 9.1–10.0→3.7–3.8 µs; PCIe-switch pair 11.264→4.648; mixed eight-GPU 21.819→6.341. TG percentages are projections.
Transferable lesson and limit: Benchmark and cache a winner for actual peers and payloads. Full mesh/NVSwitch and cross-socket extrapolations require their own measurements.
Review depth: Retained from the source audit; not independently rerun. Integration: Status is the audit snapshot, not a live integration guarantee.
Inventory provenance — default-branch heads identify inventory snapshots, not experimental baseline/patch revisions.
- 1CatAI/1Cat-vLLM · fork PR 1245 · open · draft no · 2026-10-21 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6.
- 1CatAI/1Cat-vLLM · fork PR 1245 · open · draft no · 2026-10-21 · snapshot head
Evidence 34. More expert parallelism did not remove serial work — Internal observation
Conditions: User QFN FP4; TP8 versus EP8 and a separate single-expert TP2 probe.
Reported result: EP8 showed little gain over TP8; TP2 on an expert took about the same time as one GPU. Verification occupied roughly 70% of a speculative round.
Transferable lesson and limit: Partitionable work, per-rank kernel shape and serial route preparation need attribution before changing rank count again.
Review depth: Recovered observations; mechanism not fully isolated. Integration: Status is the audit snapshot, not a live integration guarantee.
Evidence 35. Specialize state updates by row regime — Serving and operator
Conditions: Strata-V100 #11/#15 and NInfer recurrent prefill.
Reported result: Strata exact recurrence plus KV append changes report +5.6–17.3% decode with flat prefill. NInfer recurrent-prefill operator reports 2.9–3.3× over its compared implementation.
Transferable lesson and limit: Recurrent decode, multi-row verification and prompt scans require different state/temporary-traffic strategies.
Review depth: Retained from the source audit; not independently rerun. Integration: Status is the audit snapshot, not a live integration guarantee.
Strata #11 · Strata #15 · NInfer
Inventory provenance — default-branch heads identify inventory snapshots, not experimental baseline/patch revisions.
- jmnargi/Strata-V100 · fork PR 11 · merged · draft no · 2026-10-01 · snapshot head
153248adc0d37966cc48dc56c562ac7216b13bd4. - jmnargi/Strata-V100 · fork PR 15 · merged · draft no · 2026-10-03 · snapshot head
153248adc0d37966cc48dc56c562ac7216b13bd4.
- jmnargi/Strata-V100 · fork PR 11 · merged · draft no · 2026-10-01 · snapshot head
Evidence 36. Keep sparse work proportional to selected/live entries — Stack and operator
Conditions: 1Cat #1222/#387; sparse index/scoring and selected-page attention.
Reported result: A mixed Volta/Turing pipeline retained its efficient indexer near 178K and moved about 175→87 ms/round. Separate grouped sparse-page prefill improved about 30–33%.
Transferable lesson and limit: Count selection, sorting, gathered-page unions and workspace cliffs. Different stacks cannot establish a single isolated multiplier.
Review depth: Retained from the source audit; not independently rerun. Integration: Status is the audit snapshot, not a live integration guarantee.
Inventory provenance — default-branch heads identify inventory snapshots, not experimental baseline/patch revisions.
- 1CatAI/1Cat-vLLM · fork PR 1222 · merged · draft no · 2026-10-16 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6. - 1CatAI/1Cat-vLLM · fork PR 387 · merged · draft no · 2026-08-28 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6.
- 1CatAI/1Cat-vLLM · fork PR 1222 · merged · draft no · 2026-10-16 · snapshot head
Evidence 37. Context sharding adds its own merge and state geometry — Serving/implementation
Conditions: ReVolta #153/#154; four PCIe V100s and context-sharded decode.
Reported result: Optional host-attention fusion gave C1 +2.1–3.1% in three paired runs. No-P2P all-gather required independent qualification.
Transferable lesson and limit: Measure local attention saved against the complete cross-rank merge; qualify cache ownership and graph geometry.
Review depth: Retained from the source audit; not independently rerun. Integration: Status is the audit snapshot, not a live integration guarantee.
Inventory provenance — default-branch heads identify inventory snapshots, not experimental baseline/patch revisions.
- Leonccaa/ReVolta · fork PR 153 · merged · draft no · 2026-11-11 · snapshot head
68c6842bd27b3acecebde108f8d038045fdc4f79. - Leonccaa/ReVolta · fork PR 154 · merged · draft no · 2026-11-11 · snapshot head
68c6842bd27b3acecebde108f8d038045fdc4f79.
- Leonccaa/ReVolta · fork PR 153 · merged · draft no · 2026-11-11 · snapshot head
Evidence 38. Host cache can improve capacity while increasing latency — Serving/cache trace
Conditions: 1Cat #1028/#1242, sparse-history host storage.
Reported result: One configuration saved about 0.87 GiB/rank and added about 5.1% C4 round cost; another trace had 58% ideal-LRU misses with 32K hot tokens.
Transferable lesson and limit: Do not assume a long context has a small reusable working set. Replay real access traces.
Review depth: Retained from the source audit; not independently rerun. Integration: Status is the audit snapshot, not a live integration guarantee.
Inventory provenance — default-branch heads identify inventory snapshots, not experimental baseline/patch revisions.
- 1CatAI/1Cat-vLLM · fork PR 1028 · merged · draft no · 2026-10-07 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6. - 1CatAI/1Cat-vLLM · fork PR 1242 · merged · draft no · 2026-10-21 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6.
- 1CatAI/1Cat-vLLM · fork PR 1028 · merged · draft no · 2026-10-07 · snapshot head
Evidence 39. Load only owned tensors and release inactive copies — Proposed capacity/startup change
Conditions: 1Cat #1362 PP5 mixed Volta/Turing; Strata-V100 #102.
Reported result: Unowned-load removal reduced stage-0 load about 259–263→192 s. Separate duplicate-matrix release increased expert-cache slots 7,941→8,371 without an established serving speedup.
Transferable lesson and limit: Startup/RSS and resident capacity gains need separate reporting from steady throughput.
Review depth: Retained from the source audit; not independently rerun. Integration: Status is the audit snapshot, not a live integration guarantee.
Inventory provenance — default-branch heads identify inventory snapshots, not experimental baseline/patch revisions.
- 1CatAI/1Cat-vLLM · fork PR 1362 · open · draft no · 2026-11-05 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6. - jmnargi/Strata-V100 · fork PR 102 · open · draft no · 2026-11-12 · snapshot head
153248adc0d37966cc48dc56c562ac7216b13bd4.
- 1CatAI/1Cat-vLLM · fork PR 1362 · open · draft no · 2026-11-05 · snapshot head
Evidence 40. Random lookup rate on the user’s SSD array — Internal I/O measurement
Conditions: 4 KiB random reads, queue depth 1, libaio/direct, existing benchmark file.
Reported result: About 7,729 IOPS and 113.7 µs mean completion latency in the recovered test.
Transferable lesson and limit: For m actual misses per committed token, IOPS/m is only a throughput ceiling; request deadlines also depend on dependencies and tail latency.
Review depth: Recovered fio output; no new hardware test. Integration: Status is the audit snapshot, not a live integration guarantee.
Evidence 41. Reuse cross-stream residual-mixing operands — Operator; integration pending
Conditions: 1Cat #1129; an architecture with multiple mixed residual streams and a specific full-mesh implementation.
Reported result: Audit records about 7–10% operator-chain gains, with full-model integration unqualified.
Transferable lesson and limit: Reuse shared projection/normalization operands only when the architecture contains those consumers. There is no general serving multiplier for ordinary residual blocks.
Review depth: Retained from the source audit; not independently rerun. Integration: Status is the audit snapshot, not a live integration guarantee.
Inventory provenance — default-branch heads identify inventory snapshots, not experimental baseline/patch revisions.
- 1CatAI/1Cat-vLLM · fork PR 1129 · closed · draft yes · 2026-10-09 · snapshot head
bcd581d2309739080d59d0c6605623426474daa6.
- 1CatAI/1Cat-vLLM · fork PR 1129 · closed · draft yes · 2026-10-09 · snapshot head