LLM Inference at Scale on AMD Instinct: Multi-Node MoE, 64M-Token Context, and 4-bit KV Offloading

Three recent AMD ROCm blogs tackle the same infrastructure problem from different angles: how do you actually serve large language models at scale when the KV cache becomes the bottleneck?
Together they form a practical guide for anyone building production inference on AMD Instinct hardware.

Blog Hardware Model What it solves Key result
DI Series: Scaling GLM-5.1-FP8 to 64 MI300X GPUs 8 nodes, 64× MI300X GLM-5.1-FP8 (MoE, 256 experts) Multi-node PD disaggregation + WideEP 16,525 tok/s peak; KV capacity formula predicts when to scale out
Serving 64M-Token Contexts on One MI355X Node 1 node, 8× MI355X Kimi Linear 48B-A3B KV footprint at extreme context lengths FP8 KV fits 64M-token context on one node (504 GiB BF16 → 252 GiB FP8)
4-bit KV Caching with LMCache on MI355X 2× MI355X MiniMax-M2.5 (FP8 MoE) KV overflow beyond HBM into CPU DRAM ~2× goodput, ~2.6× lower p95 TTFT vs BF16 at equal memory

:link: DI Series: Scaling GLM-5.1-FP8 to 64 MI300X GPUs

The first post in AMD’s Disaggregated Inference (DI) Series. It takes GLM-5.1-FP8 - a 256-expert MoE with a novel attention family (MLA + DeepSeek Sparse Attention) - from a single-node demo to production serving across 8 nodes (64 MI300X GPUs) using prefill-decode disaggregation and wide expert parallelism (WideEP).

The engineering story is the interesting part. Two production-blocking bugs only appeared after disaggregating and scaling out:

  • Long-context accuracy collapse past ~30k tokens - caused by a metadata collision in the persistent sparse-MLA kernel under chunked prefill. Fixed in vLLM #47766.
  • 8k-prefill crash - GLM-5.1’s DSA attention maintains a second KV cache per layer (the “indexer” cache) that the existing MoRI-IO connector never transferred. Fix: ship all 156 caches (78 main + 78 indexer) via RDMA.

With both fixes in place, correctness holds across the full 2k-35k token range and all four topologies tested (EP8 through EP32). Peak throughput: 16,525 tokens/s at 2P/4D, 28k input, concurrency 256.

The post also derives a closed-form KV-capacity formula. At 28k input and concurrency 256, a single decode node (1P/1D) drops to 1,405 tok/s - 11.8× slower than multi-decode topologies - precisely because its KV pool is exhausted. The formula turns “how many nodes do I need?” into arithmetic, not guesswork. To serve the model’s full 202k context at concurrency 256 requires ~10 decode instances (~80 GPUs).

Fully reproducible: Dockerfile + benchmark scripts in ROCm/MAD #176.


:link:Serving 64Mi-Token Contexts on One AMD Instinct™ MI355X Node

A direct capacity measurement: how far can you push context length on a single 8-GPU MI355X node? The answer is 64 million tokens (67,108,864) - 64× beyond the model’s advertised 1M-token limit.

The enabling change is simple: FP8 KV storage. Kimi Linear 48B-A3B’s 7 MLA layers grow the KV cache linearly with context length. At 64M tokens, BF16 KV requires ~504 GiB per rank - more than the 288 GiB HBM on each MI355X GPU. FP8 halves the per-element size, bringing the footprint to ~252 GiB and making it fit.

Measured results across a full 1Ki-to-64Mi sweep (17 powers of 2, 3 runs each):

  • Prefill TTFT: 0.08s at 1Ki → 18.44s at 1Mi → 11.2 hours at 64Mi
  • Decode throughput: 275.9 tok/s at 1Ki → 16.6 tok/s at 64Mi

The practical implication: at 64M tokens, a 1Ki-token response takes ~1 minute - or 0.15% of the 11.2-hour prefill that produced it. Useful operating points at extreme lengths require amortizing that prefill across many requests sharing a resident prefix (prompt caching). The blog is explicit about this trade-off.

One command to reproduce the full sweep: make run from the AMDLongContextServing repository. Requires AITER release v0.1.19.post2 for 64-bit KV addressing beyond 16M tokens.


:link: 4-bit KV Caching in LMCache: Offloading Quantized KV Beyond HBM for Context-Heavy Agents on AMD MI355X

The third blog attacks the same HBM pressure from the other direction: rather than fitting context into HBM, spill the overflow to CPU DRAM efficiently using 4-bit quantization (TurboQuant) and LMCache’s tiered KV store.

The core mechanism: TurboQuant compresses most KV layers to 4-bit (keeping boundary layers in BF16 for accuracy), which keeps ~3.2× more context in fast HBM. When context still overflows, LMCache handles the DRAM tier. The layout-aware connector understands the mixed BF16 + 4-bit format and moves every byte back exactly.

Measured on a 20-minute agentic workload (739 Claude Code sessions, 32 users, ~100k context each):

  • ~2× goodput (385 vs 189 requests completed in 20 min)
  • ~2.6× lower p95 TTFT (53s vs 140s, below a 60s SLO that BF16 fails)
  • Cache hit rate: 86.8% (TurboQuant) vs 75.2% (BF16) at equal memory
  • ~1.7× less data moved between HBM and DRAM (1.94 TB vs 3.30 TB)

Accuracy is unchanged: RULER long-context scores match to ≤0.4 pts across 16k/64k/128k whether KV is served from HBM or reloaded from DRAM.

One gotcha for ROCm users: PYTHONHASHSEED=0 is mandatory at TP>1, or bit-identical prompts hash to different keys and cache hit rate drops to 0%.

Fully reproducible: docker pull rocm/vllm-dev:quark-ultraquant-lmcache-mi355


These three posts together cover the main levers for production LLM inference at scale: disaggregate prefill and decode to remove head-of-line blocking, use FP8 KV to extend how far one node can reach, and add tiered 4-bit KV offloading to stretch what that node can serve concurrently.