Slides · Inference engineering

Model and kernel optimization

Model and kernel optimization

Moving fewer bytes and wasting less time around the arithmetic: FlashAttention, quantization, CUDA graphs and the numerics underneath them.

By the end you can say why FlashAttention stays exact, pick a quantization scheme from the roofline and the hardware, build a validation gate, and explain why temperature 0 can still vary.

Concept

Two ideas organise the toolbox

  • Move fewer bytes. Store numbers in fewer bits (quantization) and keep intermediate results out of slow memory (fused, tiled kernels such as FlashAttention).
  • Waste less time around the arithmetic. Remove launch and scheduling overhead (CUDA graphs, fusion) and understand the numerics those changes touch.
  • A kernel is one function that runs on the GPU. A decode step runs many of them, one or more per operation per layer.
  • Every change must pass two tests: the output is the same or the loss is measured, and the time saved is time that was actually being spent.

Diagram

Standard attention against FlashAttention

Diagram: Standard attention writes the whole score matrix to the GPU’s main memory (HBM) and reads it back more than once.

FlashAttention

Load a tile of Q, K, V

Scores, running softmax

Next tile, no full matrix

Standard attention

Compute n x n scores

Write scores to HBM

Read back for softmax

Write, read for values

Diagram summary: Standard attention writes the whole score matrix to the GPU’s main memory (HBM) and reads it back more than once. FlashAttention works tile by tile in fast on-chip memory with a running softmax, so the matrix is never written out, and the result is the same exact attention.

Source1 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness

Worked example

How big is the score matrix?

Per head and per layer, if the scores were stored in 16 bits (2 bytes each):

CaseScore entriesSize if materialized
Prefill, 4,096-token prompt4,096×4,096=16,777,2164{,}096 \times 4{,}096 = 16{,}777{,}216about 33.6 MB
Decode, 4,096 cached keys, one new query4,096about 8 KB
  • Prefill grows with the square of the prompt, so tiling saves a great deal of traffic.
  • Decode has one row. What dominates there is reading the cached keys and values and the weights, which tiling does not avoid.

Code

The online softmax in about ten lines

Excerpt for one query; the comparison below is against a standard softmax over all scores. Python 3.14, NumPy 2.5.

Python

def tiled(q, K, V, tile):
    m, l, acc = -np.inf, 0.0, np.zeros(V.shape[1])
    for i in range(0, len(K), tile):
        s = K[i:i+tile] @ q                      # scores for this tile only
        m_new = max(m, s.max())
        corr = 0.0 if m == -np.inf else np.exp(m - m_new)   # rescale old totals
        p = np.exp(s - m_new)
        l = l * corr + p.sum()                   # running softmax denominator
        acc = acc * corr + p @ V[i:i+tile]       # running weighted sum
        m = m_new
    return acc / l
Test (37 keys, 8 dimensions, float64; q, K, V drawn in that order from default_rng(2))Largest difference from standard attention
tiles of 1, 5, 16, 37 or 100at most 6e-16 (rounding noise)
tile 5 with the corr rescale removedabout 1.06, order 1 (wrong)
  • Each tile updates a running maximum, sum and output, so the full row of scores never exists at once.
  • The failure row shows why the rescale step matters: dropping it gives a different answer, not a slightly noisy one. The digits at the 1e-16 level change with the random draw; only the gap between rounding noise and an order-1 error matters. With a single tile there is nothing to rescale, so the broken version only fails when the maximum changes between tiles.

Source1 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness

Compare

Three versions of FlashAttention

VersionWhat changedReported by the authors
FlashAttention (NeurIPS 2022)Tiling to cut reads and writes between HBM and on-chip memory; called IO-awarePer the arXiv abstract, 15 percent end-to-end speedup on BERT-large training over the MLPerf 1.1 record, 3 times on GPT-2, 2.4 times on Long-range Arena
FlashAttention-2 (ICLR 2024)Better parallelism and work partitioning on the GPUAround 2 times the speed of the first version, 50 to 73 percent of the theoretical peak FLOPs per second on A100
FlashAttention-3 (NeurIPS 2024)Uses asynchrony and low precision on Hopper GPUsUp to 840 TFLOPs per second in BF16 on H100 (85 percent utilization), 1.3 PFLOPs per second in FP8
  • The FlashAttention-3 abstract says FlashAttention-2 reached only 35 percent utilization on the H100.
  • The original paper’s abstract calls the method exact, not an approximation. FlashAttention-3 also has an FP8 variant, where low-precision numerics apply; its abstract reports 2.6 times lower numerical error than a baseline FP8 attention, so error there is measured rather than assumed zero.
  • All figures are the authors’ benchmark results, not serving-engine measurements.

Sources1 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness2 FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning3 FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision

Concept

Where FlashAttention pays off

  • Prefill: n queries meet n keys, the score matrix is large, and the saved traffic is large.
  • Small-batch decode: one query row per head, so the traffic is the cache and weights. Expect little from swapping the attention kernel alone.
  • This split is a reasoning step from the roofline, not a claim from the papers.
  • Decode attention is a separate kernel problem: it reads a long cache for one query row.

Check yourself

Check: size the traffic

A 12,000-token prompt is prefilled. Per head and per layer, how many score entries would a standard kernel materialize, and how many megabytes in 16 bits? Then find the prompt length at which one head’s matrix would reach 1 GB (10910^{9} bytes), and say what doubling the prompt does to the size.

Answer

Prefill: 12,000×12,000=144,000,00012{,}000 \times 12{,}000 = 144{,}000{,}000 entries, 288 MB at 2 bytes each. For 1 GB, 2n2=1092n^{2} = 10^{9} gives nn of about 22,400 tokens. The size grows with the square of the length, so doubling the prompt quadruples it.

Concept

Quantization stores a small number and a scale

x≈scale×qx \approx \text{scale} \times q

Here qq is a small integer or float.

  • The scale can be one per tensor, one per channel, or one per group of weights (128 is a common group size).
  • A per-group scale costs a little: 4-bit weights with a 16-bit scale for every 128 values average 4+16/128=4.1254 + 16/128 = 4.125 bits each.
  • GPTQ (the ICLR 2023 paper is titled OPTQ) reports quantizing GPT models with 175 billion parameters to 3 or 4 bits with negligible accuracy degradation, in about four GPU hours.

Source4 OPTQ: Accurate Quantization for Generative Pre-trained Transformers

Compare

What you can quantize, and the notation

TargetBenefitMain risk
WeightsFewer bytes read per decode step, smaller memoryAccuracy loss at 4 bits and below without care
ActivationsLow-precision matrix multiplies, which help compute-bound workActivation outliers
KV-cacheMore concurrent sequences (lesson 2)Long-context accuracy
  • W4A16: 4-bit weights, 16-bit activations. Weights are unpacked before the multiply, so bytes are saved but arithmetic is not.
  • W8A8: 8 bits for both, and the multiply itself runs in 8-bit.
  • FP8: an 8-bit float. The FP8 paper (a preprint) proposes E4M3 (4 exponent bits, 3 mantissa bits) and E5M2.

Source5 FP8 Formats for Deep Learning

Worked example

Weight bytes and the decode floor

An 8B model on the H100 figures of lesson 1 (3.35 TB/s). Floor = weight bytes divided by bandwidth.

FormatBits per weightWeight bytesDecode step floor
BF161616 GB4.8 ms
INT888 GB2.4 ms
4-bit with group scales4.125about 4.1 GBabout 1.2 ms
  • These are ceilings on the gain. KV reads, unpacking and kernel efficiency pull real results below them.
  • “4 bits is 4 times faster” is wrong twice: the scales add bits, and the floor ignores everything else.

Source6 NVIDIA H100 Tensor Core GPU

Code

One outlier sets the scale for everyone

Excerpt of the per-tensor version. Signed 8-bit, one scale from the largest absolute value.

Python

def per_tensor(x):
    scale = np.abs(x).max() / 127
    q = np.clip(np.round(x / scale), -127, 127).astype(int)
    return q, q * scale

Input 0.2, 0.8, -0.5, 1.4, 19.05, 0.7, scale 19.05/127=0.1519.05 / 127 = 0.15:

ValuePer tensor: storedDequantizedError
0.210.1525.0%
0.850.756.3%
-0.5-3-0.4510.0%
1.491.353.6%
19.0512719.050%
0.750.757.1%
  • With a separate scale for each group of three values, the first group’s errors fall to 0.8, 0 and 0.5 percent. The second group still holds the outlier, so its errors stay at 3.6 and 7.1 percent.
  • Edge case: an all-zero tensor gives a scale of 0, so x/scalex / \text{scale} is 0/00/0. NumPy warns about the invalid value, and casting the resulting NaN to an integer is platform-dependent (it gave zeros on one machine), so real code guards that case.

Concept

Why activations are harder than weights

  • The LLM.int8 paper traces the difficulty to what it calls emergent outlier feature dimensions in transformer activations, and handles them with a mixed-precision split.
  • The SmoothQuant abstract starts from the observation that activations are much harder to quantize than weights.
  • The activation-side methods on the next slide each take a different route: LLM.int8() isolates the outliers, SmoothQuant moves the difficulty into the weights, and FP8 uses a number format with a wider range. GPTQ and AWQ quantize only the weights, so activation outliers are not their target, though both use sample inputs during calibration (AWQ picks its salient channels from activation statistics).

Sources7 GPT3.int8(): 8-bit Matrix Multiplication for Transformers at Scale8 SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models

Compare

Five methods, one idea each

MethodTypeCore idea
LLM.int8()W8A8Multiply the outlier feature dimensions in 16-bit and everything else, over 99.9 percent of values, in 8-bit
GPTQWeight-only, one-shotGo layer by layer, using approximate second-order information to compensate rounding error
AWQWeight-onlyProtect the roughly 1 percent of salient weights, picked from activation statistics, by scaling those channels
SmoothQuantW8A8Move part of the quantization difficulty out of the activations and into the weights with a per-channel rescale that leaves the layer output unchanged
FP8W8A8An 8-bit float format with a wider dynamic range; needs hardware support
  • “Weight-only” means the activations stay in 16 bits.

Sources7 GPT3.int8(): 8-bit Matrix Multiplication for Transformers at Scale4 OPTQ: Accurate Quantization for Generative Pre-trained Transformers9 AWQ: Activation-aware Weight Quantization for On-Device LLM Compression and Acceleration8 SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models5 FP8 Formats for Deep Learning

Concept

Treat headline speedups as upper-end results

  • GPTQ reports end-to-end speedups over FP16 of about 3.25 times on an A100 and 4.5 times on an A6000.
  • SmoothQuant reports up to 1.56 times speedup and 2 times memory reduction.
  • AWQ reports its TinyChat framework running more than 3 times faster than the Hugging Face FP16 implementation on desktop and mobile GPUs.
  • Each number comes from the authors’ models, hardware and kernels. Measure on your own engine and traffic before planning around them.

Sources4 OPTQ: Accurate Quantization for Generative Pre-trained Transformers8 SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models9 AWQ: Activation-aware Weight Quantization for On-Device LLM Compression and Acceleration

Diagram

Pick the scheme from the regime

Diagram: Below the ridge bytes limit decode, so cut weight bytes with weight-only schemes; above it arithmetic limits, so use 8-bit math.

Yes: small batch decode

No: prefill, big batch

Near the ridge

Where is the work
against the ridge?

Below the ridge?

Weight-only W4A16
or W8A16

W8A8 or FP8
if hardware allows

Test both

Diagram summary: Below the ridge bytes limit decode, so cut weight bytes with weight-only schemes; above it arithmetic limits, so use 8-bit math. Near the ridge, or between two schemes’ crossings, measure.

Worked example

The crossing batch for three schemes

A made-up GPU for round numbers: 600 TFLOPS dense BF16, 1,200 in FP8, 1.5 TB/s. The ridge is 600/1.5=400600 / 1.5 = 400 FLOP per byte for BF16 and 800 for FP8. The batch where decode reaches the ridge is B∗=ridge×bytes per weight/2B^{*} = \text{ridge} \times \text{bytes per weight} / 2.

SchemeBytes per weightRidge usedCrossing batch
BF16 weights and math2400400
W4A16 (scales ignored)0.5400100
FP8 weights and math1800400
  • Weight-only 4-bit pulls the crossing down to 100: past it arithmetic limits and fewer bytes add nothing more. Below 400 it is still faster than BF16, which stays memory-bound until 400.
  • FP8 math raises both the ridge and the intensity, so the crossing stays where it was. The saving is cost on each side of it.

Compare

Hardware support is part of the answer

vLLM’s quantization page, read on 24 October 2026 (no version is shown; the Intel GPU column is omitted, where both rows are unsupported):

SchemeNot supportedSupported
FP8 W8A8 (llm-compressor)Volta, Turing, AmpereAda, Hopper, AMD GPU
INT8 W8A8 (llm-compressor)Volta, AMD GPUTuring, Ampere, Ada, Hopper
  • An Ampere fleet therefore uses INT8 W8A8 or a weight-only scheme, not FP8 W8A8.
  • The page says its chart is subject to change as vLLM evolves, so check the version you run.

Source10 Quantization (vLLM documentation)

Check yourself

Check: price each scheme at three batch sizes

On the made-up GPU of the earlier slide, a decode step takes the larger of two times: weight bytes divided by 1.5 TB/s, and 2×batch2 \times \text{batch} FLOPs per weight divided by the math rate (600 TFLOPS for BF16 and for W4A16, whose 4.125-bit weights are unpacked and multiplied in BF16, and 1,200 TFLOPS for FP8). Take 2 bytes per weight for BF16, 0.5156 for W4A16 and 1 for FP8. Give each scheme’s step time per weight, in picoseconds, at batch 24, 180 and 600, and name the fastest at each.

Answer

Memory times are 1.333 (BF16), 0.344 (W4A16) and 0.667 (FP8). Compute times are 2×batch/rate2 \times \text{batch} / \text{rate}. At batch 24: BF16 1.33, W4A16 0.34, FP8 0.67, so W4A16 wins. At batch 180: BF16 1.33 (compute 0.60), W4A16 0.60 (now compute-bound, above its crossing of about 103), FP8 0.67 (still memory-bound, crossing 400), so W4A16 still wins, narrowly over FP8. At batch 600: BF16 2.00, W4A16 2.00, FP8 1.00, so FP8 wins by 2 times. Passing a scheme’s own crossing does not make it lose; it stops improving, and the winner changes only when another scheme’s step time drops below it.

Process

A validation gate for a quantized model

  1. Run perplexity on held-out text. It is quick and coarse and catches only large breakage.
  2. Run task evaluations: your golden set, tool-call accuracy, JSON validity, long-context retrieval.
  3. Compare against the 16-bit baseline on the same prompts, with confidence intervals and slices by task, language and length.
  4. Calibrate on data that looks like production. The AWQ abstract credits its lack of backpropagation and reconstruction for generalizing beyond the calibration set, which shows calibration data is a design concern; whichever method you use, check how its sample was chosen.
  5. Canary a share of traffic, watch output length, refusal rate and tool-error rate, and keep a rollback.

Source9 AWQ: Activation-aware Weight Quantization for On-Device LLM Compression and Acceleration

Worked example

Is a one-point drop real?

A JSON-validity check on 2,000 prompts: the BF16 baseline fails 16 (99.2 percent valid), the 4-bit build fails 38 (98.1 percent valid).

QuantityValue
Drop in validity1.1 points
Approximate 95% interval for the drop (unpaired)0.39 to 1.81 points
Approximate z statistic3.0
  • The interval excludes zero, so the loss is probably real, and failures more than doubled (16 to 38) while the average barely moved.
  • With only 200 prompts at the same rates, the interval would run from about -1.2 to +3.4 points. Too small a sample cannot show a regression.
  • A paired comparison on the same prompts is sharper; the unpaired figures are a conservative approximation.

Check yourself

Check: name the method

Name the method from this deck for each description. (a) It multiplies a few outlier feature dimensions in 16-bit and everything else in 8-bit. (b) It is a one-shot, weight-only method that goes layer by layer. (c) On a Hopper fleet, does the vLLM table on the earlier slide allow FP8 W8A8?

Answer

(a) LLM.int8(), a W8A8 method. (b) GPTQ. (c) Yes. The table lists FP8 W8A8 as supported on Hopper (and Ada), though the table is a snapshot, so check the version you run.

Sources7 GPT3.int8(): 8-bit Matrix Multiplication for Transformers at Scale4 OPTQ: Accurate Quantization for Generative Pre-trained Transformers10 Quantization (vLLM documentation)

Worked example

What a CUDA graph saves per kernel

NVIDIA’s 2019 post measured a short kernel on a V100 with CUDA 10.1. The kernel itself takes 2.9 µs. Subtracting it from each total gives the overhead (this deck’s arithmetic):

Launch styleTime per kernelOverheadFor 500 kernels
Synchronize after each kernel9.6 µs6.7 µs3.35 ms
Overlapped launches3.8 µs0.9 µs0.45 ms
Replayed through a CUDA graph3.4 µs0.5 µs0.25 ms
  • This is a microbenchmark on old hardware, not an LLM engine. The point is the shape: launch cost is paid per kernel, and a graph cuts the per-kernel cost from 3.8 or 9.6 µs to about 3.4 µs.
  • A decode step runs many kernels (500 is a round example here), so the saving adds up. Compare it with the memory floor of the weight-bytes slide (about 1.2 to 4.8 ms) before deciding it matters.

Source11 Getting Started with CUDA Graphs

Diagram

Record once, replay many times

Diagram: Without a graph the CPU submits each small kernel separately and pays launch overhead each time.

With a graph

Record the sequence once

Replay with one launch

Without a graph

CPU launches kernel 1

Launches kernel 2

Many launches, each
with overhead

Diagram summary: Without a graph the CPU submits each small kernel separately and pays launch overhead each time. A CUDA graph records the sequence once and replays the whole step with one launch.

Source11 Getting Started with CUDA Graphs

Concept

What an engine has to decide about graphs

  • A graph replays a fixed sequence, so the engine captures graphs for a set of batch sizes in advance.
  • vLLM’s design page (a developer preview, read 24 October 2026) names modes: PIECEWISE, FULL, FULL_DECODE_ONLY, FULL_AND_PIECEWISE and NONE. It calls FULL_AND_PIECEWISE generally the most performant, and says that mode needs the most memory and the longest capture time.
  • It mentions capture sizes and a padded token count in its batch descriptor, but does not spell out the padding rule, so check your own engine for how a live batch maps to a captured size.
  • Practical consequences: warm up before benchmarking, and plan for a cold-start cost.
  • Kernel fusion merges adjacent operations so intermediate results stay in fast memory, the same trick as FlashAttention on a smaller scale.

Source12 CUDA Graphs (vLLM design documentation)

Code

Addition order changes the answer

Excerpt; the table lists the results. float32 values, NumPy 2.5, seed 0.

Python

a, b, c = np.float32(1e8), np.float32(-1e8), np.float32(1.0)
print((a + b) + c, a + (b + c))             # grouping changes the result

rng = np.random.default_rng(0)
v = rng.normal(size=100_000).astype(np.float32)
print(v.sum(), v.reshape(10, -1).sum(axis=1).sum(), np.sort(v).sum())
TestResult
(1e8 + -1e8) + 1.01.0
1e8 + (-1e8 + 1.0)0.0
100,000 values summed in one pass-90.82513
Same values in 10 partial sums, then added-90.82510
Same values sorted first-90.82422
Same values in float64-90.82508
  • The three float32 sums differ in the fifth decimal place or earlier, and the float64 sum differs from all of them.
  • A kernel that splits a reduction differently at different batch sizes can return different numbers for the same request.

Concept

Batch invariance and temperature 0

  • A September 2025 write-up from Thinking Machines argues that the main cause is that kernels are not batch invariant while load, and so batch size, varies from run to run. It calls the usual explanation of concurrency plus floating point incomplete, and notes that the forward pass uses no atomic adds, so a run on a fixed batch is deterministic.
  • Its experiment: 1,000 temperature-0 completions of one prompt on Qwen3-235B-A22B-Instruct-2507 gave 80 unique outputs, first diverging at the 103rd token. With batch-invariant kernels all 1,000 were identical.
  • The cost on Qwen3-8B, one GPU, 1,000 sequences: 26 seconds with default vLLM, 55 seconds for an unoptimized deterministic version, 42 seconds with an improved attention kernel.
  • These are the authors’ measurements on their setup.

Source13 Defeating Nondeterminism in LLM Inference

Check yourself

Check: what did the experiment show?

In the Thinking Machines experiment on the earlier slide, 1,000 temperature-0 completions of one prompt were generated. How many unique outputs appeared with ordinary kernels, and how many with batch-invariant kernels?

Answer

80 unique outputs with ordinary kernels, and 1 (all 1,000 identical) with batch-invariant kernels. These are the authors’ measurements on one model and setup.

Source13 Defeating Nondeterminism in LLM Inference

Diagram

Which optimization first?

Diagram: Measure first, then follow the limit: bytes point to weight-only quantization, arithmetic to W8A8 or FP8, cache size to a smaller cache,...

Bytes

Arithmetic

Cache size

None

Measure first:
TTFT, ITL, GPU use

What limits it?

Weight-only
quantization

W8A8 or FP8

Smaller cache

Profile overhead

Diagram summary: Measure first, then follow the limit: bytes point to weight-only quantization, arithmetic to W8A8 or FP8, cache size to a smaller cache, and none of these to profiling overhead.

Summary

Recap

  • FlashAttention is exact: tiles plus an online softmax keep the n by n matrix out of HBM. It helps prefill most.
  • Quantization stores a scale and small numbers; outliers make per-tensor 8-bit lossy, and each method handles them differently.
  • Memory-bound decode: weight-only low-bit. Compute-bound work: W8A8 or FP8. Check hardware support in the engine’s table.
  • Validate on task metrics against the baseline with enough samples, not on perplexity alone.
  • CUDA graphs and fusion remove launch overhead; profile before and after.
  • Temperature 0 is greedy decoding, not bit-reproducible; batch invariance costs speed.

References

References & Sources (1 of 3)

  1. FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness (opens in a new tab)

    Tri Dao, Daniel Y. Fu, Stefano Ermon, Atri Rudra, et al.2022NeurIPS 2022Paper

    Used for FlashAttention as exact, IO-aware attention that uses tiling to reduce reads and writes between HBM and on-chip memory, with the abstract's training speedups (the 15 percent BERT-large figure is from the arXiv abstract, 2205.14135).

  2. FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning (opens in a new tab)

    Tri Dao2024ICLR 2024Paper

    Used for FlashAttention-2: around 2 times the speed of the first version and 50 to 73 percent of theoretical peak FLOPs per second on A100.

  3. FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision (opens in a new tab)

    Jay Shah, Ganesh Bikshandi, Ying Zhang, Vijay Thakkar, et al.2024NeurIPS 2024Paper

    Used for FlashAttention-3 on Hopper GPUs: up to 840 TFLOPs per second in BF16 (85 percent utilization), 1.3 PFLOPs per second in FP8, FlashAttention-2 at 35 percent utilization on H100, and 2.6 times lower FP8 error than a baseline, as shown on the NeurIPS 2024 abstract page.

  4. OPTQ: Accurate Quantization for Generative Pre-trained Transformers (opens in a new tab)

    Elias Frantar, Saleh Ashkboos, Torsten Hoefler, Dan Alistarh2023ICLR 2023Paper

    Used for GPTQ as one-shot weight quantization to 3 or 4 bits, the four-GPU-hour figure for 175B-parameter models, and the reported A100 and A6000 speedups.

  5. FP8 Formats for Deep Learning (opens in a new tab)

    Paulius Micikevicius, Dusan Stosic, Neil Burgess, Marius Cornea, et al.2022Preprint

    Used for The FP8 formats E4M3 and E5M2, defined by exponent and mantissa bits.

References

References & Sources (2 of 3)

  1. NVIDIA H100 Tensor Core GPU (opens in a new tab)

    NVIDIA2026Documentation

    Used for The H100 SXM memory bandwidth of 3.35 TB/s used for the weight-byte floors.

  2. GPT3.int8(): 8-bit Matrix Multiplication for Transformers at Scale (opens in a new tab)

    Tim Dettmers, Mike Lewis, Younes Belkada, Luke Zettlemoyer2022NeurIPS 2022Paper

    Used for Emergent outlier features in transformer activations, and the mixed-precision split that multiplies them in 16-bit while over 99.9 percent of values stay in 8-bit.

  3. SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models (opens in a new tab)

    Guangxuan Xiao, Ji Lin, Mickael Seznec, Hao Wu, et al.2023ICML 2023 (PMLR 202)Paper

    Used for SmoothQuant's reported speedup of up to 1.56 times and 2 times memory reduction, and the observation that weights are easy to quantize while activations are not.

  4. AWQ: Activation-aware Weight Quantization for On-Device LLM Compression and Acceleration (opens in a new tab)

    Ji Lin, Jiaming Tang, Haotian Tang, Shang Yang, et al.2024MLSys 2024Paper

    Used for AWQ protects roughly 1 percent of salient weights chosen from activation statistics by scaling those channels, and does not rely on reconstruction; the TinyChat speedup claim.

  5. Quantization (vLLM documentation) (opens in a new tab)

    vLLM project2026Documentation

    Used for The hardware compatibility table for FP8 W8A8 and INT8 W8A8, read 24 October 2026; the page says the chart is subject to change.

References

References & Sources (3 of 3)

  1. Getting Started with CUDA Graphs (opens in a new tab)

    Alan Gray2019Article

    Used for Per-kernel times of 9.6, 3.8 and 3.4 microseconds against a 2.9 microsecond kernel on a V100 with CUDA 10.1, and the capture-instantiate-relaunch model of CUDA graphs.

  2. CUDA Graphs (vLLM design documentation) (opens in a new tab)

    vLLM project2026Documentation

    Used for vLLM's graph modes, the note that the most capable mode needs the most memory and capture time, and the mention of capture sizes (read 24 October 2026, developer preview).

  3. Defeating Nondeterminism in LLM Inference (opens in a new tab)

    Horace He2025Article

    Used for The batch-invariance explanation of temperature-0 variation, the 1,000-completion experiment on Qwen3-235B-A22B-Instruct-2507 and the 26, 42 and 55 second timings.