AMD details ATOMesh prefill/decode disaggregation for coding agents on Instinct MI355X
ATOMesh splits prefill and decode onto separate ATOM engines so long agent prefills stop stalling running decodes, reaching up to 42.1K tokens/s per GPU on InferenceX AgentX with GLM-5.2.
Summary
AMD's ROCm blog describes ATOMesh, the prefill/decode disaggregation layer in the ATOM serving stack, and how it is tuned for coding-agent traffic on AMD Instinct MI355X GPUs. The workload is characterized with InferenceX AgentX, SemiAnalysis's open benchmark that replays 393 recorded Claude Code sessions totaling 98,827 model calls; the median request carries 142K input tokens, of which a perfect prefix cache leaves roughly 1.7K to compute, and the median answer is 444 tokens. The authors use GLM-5.2 and GLM-5.3 as the example models, with InferenceX numbers measured on GLM-5.2.
Running prefill and decode on the same GPUs creates three problems: new sessions and subagent spawns bring 100K-token prefills that interrupt every running decode, no single parallelism suits both roles, and paused session histories get evicted from HBM under load and must be recomputed. ATOMesh separates the two roles into independently sized and parallelized ATOM engines behind a Rust router, with a pluggable KV connector that saves histories to a prefix pool and moves each request's KV from prefill to decode. On InferenceX AgentX the deployment reaches up to 42.1K total tokens/s per GPU with one decode per prefill (1P1D) and up to 150 tokens/s per user at p90 with three decodes per prefill (1P3D).
How ATOMesh splits prefill and decode on MI355X
- Router (atom/mesh): A Rust service in front of the workers selects one prefill and one decode per request, using a cache-aware policy that routes a session's next turn to the worker already holding most of its prefix, and also provides retries, rate limiting and metrics.
- Separate worker pools: Prefill and decode are independent ATOM engines sized and parallelized separately; both can run tensor or decode context parallelism, prefill can additionally run chunked pipeline parallelism, and either can add data-parallel attention with expert parallelism for MoE models.
- KV connector: Moves KV along two paths, saving histories to a prefix pool and loading them back on the next turn, and transferring each request's KV from prefill to decode with re-layout when the two sides' parallelism differs; the pool is pluggable between Mooncake Store and LMCache, with a MoRI-UMBP connector in progress, and transport via Mooncake Transfer Engine or MoRI-IO.
- Parallelism trade-offs: Tensor parallelism gives the lowest per-step latency but, because MLA has a single KV head, every GPU holds the full KV and an all-reduce runs in every layer; data-parallel attention gives about N times the KV in N private pools but balances requests rather than work or bytes; decode context parallelism splits each context by token across GPUs for about N times the KV in one evenly filled pool, at the cost of repeated work and a per-layer data exchange.
- History spill: Paused histories spill from prefill HBM into a Mooncake Store pool in host DRAM, which can also draw on the decode side's idle host DRAM, and each request's KV reaches its decode in a few large writes.
Why it matters
Coding agents are a fast-growing inference workload, and this post documents a concrete ROCm-side serving design for it rather than a model release: the value for operators is that prefill-to-decode ratio and per-role parallelism become deployment knobs instead of stack constraints. Because the KV pool and transport are pluggable (Mooncake Store or LMCache, Mooncake Transfer Engine or MoRI-IO), the approach can be adapted to existing caching infrastructure. The reliance on InferenceX AgentX, an open benchmark with a public session corpus, also gives AMD a vendor-neutral way to compare disaggregated serving against same-GPU prefill/decode baselines.
Original reference: rocm.blogs.amd.com →