AMD engineers report that GLM-5.2 FP8 inference on eight Instinct MI355X GPUs reaches 629K tok/s at a 64K input length and 553K tok/s at 128K, up from 163K and 137K respectively, using a stack of prefill, KV-cache, MoE, and speculative-decoding optimizations. The work, published November 11, 2026, uses EvalScope benchmarks with a 90% shared-prefix configuration to model prefix-cache-heavy serving, and extends evaluation to a 1M-token input where throughput rises from 22K to 157K tok/s, a 7.16x improvement, with average time to first token dropping from 45,660 ms to 6,340 ms. GSM8K validation shows no accuracy regression, with the optimized run scoring 94.92% versus 94.16% baseline.
Prefill and Attention Changes
The baseline uses tensor parallelism with eight attention heads per rank, but the Lightning Indexer shares one set of KV indices across all heads, forcing every rank to load the same KV entries and requiring head replication to 16 for the AITER kernels. The optimized configuration switches prefill to context parallelism (CP8), partitioning query tokens instead of attention heads. Each rank keeps all 64 heads and processes one-eighth of the tokens, which removes redundant KV loads and lets the MI355X use its native gqa:64 MLA kernel directly. The team added SGLang support for CP metadata, KV reconstruction and gathering, tensor layouts, and numerical edge cases.
The KV cache uses fp8_e4m3 to cut memory footprint and enable FP8 attention kernels. The query projection still outputs BF16, so the query tensor is quantized before attention. The original dynamic quantization path launched multiple operators and materialized intermediate tensors; the optimized path fuses quantization into a single Triton kernel with a persistent device buffer, reducing kernel launches, temporary allocations, and memory traffic. AITER handles the 64-head FP8 MLA shape through its persistent implementation, with scheduling metadata and buffer lifecycle management provided.
MoE and Communication
With CP8, each GPU initially holds one-eighth of the tokens. The standard MoE path gathers BF16 hidden states and repeats router and top-k computation over the full token set on every GPU. The optimized PyHIP path moves router, top-k, and activation quantization before the collective operation, gathering FP8 hidden states, scales, and routing results instead of BF16 hidden states. This reduces the communication payload per token from 12,288 bytes to 6,408 bytes and avoids repeated routing work for non-local tokens. Unsupported shapes fall back to the standard path. The MoE path also uses AITER's block-scale FP8 kernel and a custom collective implementation.
GEMM shapes are tuned offline for block-scaled FP8 A8W8 and BF16 paths separately, with best configurations stored in AITER's tuning table. At runtime, AITER selects the tuned kernel based on matrix shape and quantization type. EAGLE multi-token prediction runs with request-level data parallelism and expert parallelism, with CUDA Graph replay and eager execution decisions synchronized across ranks, idle-rank metadata generation skipped, and draft-token buffers sized to active rows.
Benchmark Results
At 64K input, throughput scales from 167,839 tok/s at concurrency 1 to 628,866 tok/s at concurrency 50, with speedups from 1.71x to 3.97x over baseline. The baseline flattens after concurrency 4, while the optimized stack keeps scaling. At 128K, peak throughput reaches 553,018 tok/s at concurrency 32, a 4.22x speedup, with similar scaling patterns. The 1M-token case at concurrency 1 shows 156,598 tok/s total throughput. All cases report zero request failures. The launch and benchmark scripts are published alongside the blog for reproduction, using ROCm 7.2.4 and SGLang images for baseline and optimized stacks.
Sources & references
AMD: Accelerating GLM-5.2 on AMD Instinct MI355X: EvalScope Benchmarks with Prefix Caching ↗Source consulted: 2026-11-16



